
Upload the tutorial data
This tutorial uses a set of data that is designed to show you the features in the product. Using the tutorial data ensures that your search results are consistent with the steps in the tutorial.
Prerequisite
You must have the tutorial data files on your computer.
Use the Add Data wizard
- If you are not on the Splunk Home page, click the Splunk logo on the Splunk bar to go to Splunk Home.
- Locate the Add Data icon.
- Splunk Enterprise
- a. In the Explore Splunk Enterprise panel, click Add Data.
- Splunk Cloud
- a. If the Welcome to the Splunk Free Cloud Trial! window is displayed, close the window.
- b. Click Settings > Add Data.
- Click Upload.
- Under Select Source, click Select File to browse for the
tutorialdata.zip
file. - Select the file and click Open.
- Note: Because you specified a compressed file, a data source that the Splunk software recognizes, the wizards steps change. The step Set Source Type is skipped. When you load data that is not in a compressed file, you will set the data source type.
- Click Next to continue to Input Settings.
- Under Input Settings, you can override the default settings for Host, Source type, and Index.
- Modify the Host settings to assign the host names using a portion of the path name. The settings that you select depend on the operating system on which you are installing the Splunk software.
- Linux or Mac OS X
- a. Select Segment in path.
- b. Type
1
for the segment number. - Windows
- a. Select Regular expression on path.
- b. Type
\\(.*)\/
for the regex to extract the host from the path. - Click Review and review your input settings.
- Click Submit to add the data.
- To see the data in the Search app, click Start Searching.
- You might see a screen asking if you want to take a tour. You can take the tour or click Skip.
- The Search app opens and a search is automatically run on the tutorial data source.
- Success! The results confirm that the data in the
tutorialdata.zip
file was indexed and that events were created. - Click the Splunk logo to return to Splunk Home.
Next step
You have completed Part 2 of the Search Tutorial.
Now you know how to add data to your Splunk platform. Next, you will begin to learn how to search that data. Continue to Part 3: Using the Splunk Search App.
PREVIOUS What is in the tutorial data? |
NEXT Exploring the Search views |
This documentation applies to the following versions of Splunk® Enterprise: 6.4.0, 6.4.1, 6.4.2, 6.4.3, 6.4.4, 6.4.5, 6.4.6, 6.4.7, 6.4.8, 6.4.9, 6.4.10, 6.4.11
Comments
Hi Splunk:
I have the same problem as Raymond, in windows 10
When I look at your screenshot in step 10 I see under "Event" this:
host = vendor_sales | source = tutorialdata.zip:./vendor_sales/vendor_sales.log | sourcetype = vendor_sales
But in my Splunk I see this:
host = 127.0.0.1 | source = tutorialdata.zip:.\vendor_sales/vendor_sales.log sourcetype = vendor_sales/vendor_sales
I am now in SPLUNK page, how can i do if I want to go back to see the data again, or suppose i make a mistake and want to delete it, and do the same process again.
Istvan - Thank you for your comment. Your regex is a good workaround on Windows for uploading the tutorialdata.zip file to Splunk.
a possible workaround until issue gets fixed for Splunk Enterprise:
in step Input Settings chose Regular expression on path instead of Segment in path and put the following regex: \\(.*)\/
this will extract the host from path.
worked for me
Cwwee2014
We are aware of this issue on Windows and are actively working on resolving this issue.
In the meantime, might I suggest that you setup a free 15 day trial of Splunk Cloud.
The majority of the steps are identical for Splunk Enterprise and Splunk Cloud.
Only a few differences, which are documented in the first few topics in the tutorial.
The searches that you will perform are identical.
Start here
http://docs.splunk.com/Documentation/Splunk/6.4.0/SearchTutorial/Systemrequirements#Access_the_trial_version_of_the_Splunk_software
and follow the steps for Splunk Cloud.
By using Splunk Cloud, you will be able to explore the Splunk search features that are described in the Search Tutorial.
I am reading the tutorial on http://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/GetthetutorialdataintoSplunk
When I import the tutorialdata.zip file, I expect that after the import I see different hosts in the "search and reporting view". However, I only see host = 127.0.0.1
I am using Splunk 6.4.0 on my windows 10 laptop.
Am I doing something wrong? I have tried this tutorial twice.
Unfortunately I still have the same problem as I mentioned on April 23th, 2016.
Maybe this provides some more information:
When I look at your screenshot in step 10 I see under "Event" this:
host = vendor_sales | source = tutorialdata.zip:./vendor_sales/vendor_sales.log | sourcetype = vendor_sales
But in my Splunk I see this:
host = 127.0.0.1 | source = tutorialdata.zip:.\vendor_sales/vendor_sales.log sourcetype = vendor_sales/vendor_sales
Note the difference in forward vs. backward slashes just after "tutorialdata.zip:." and the differences in "sourcetype"
Raymond
I am still facing this issue - (SPL-109362). Unable to upload Tutorialdata.zip on Windows 7/other windows.
Any resolution plan ?
Nicholas
Thank you for your comment and letting us know that Raymond is not alone in this issue. We are investigating this problem with loading data in Windows.
Hi Splunk,
I encountered the same problem as Raymond.
Nicholas
May 3, 2016
Raymond
Thank you for your comment. We are investigating this issue with loading data in Windows.
I am reading the tutorial on http://docs.splunk.com/Documentation/Splunk/latest/SearchTutorial/GetthetutorialdataintoSplunk
When I import the tutorialdata.zip file, I expect that after the import I see different hosts in the "search and reporting view". However, I only see host = 127.0.0.1
I am using Splunk 6.4.0 on my windows 10 laptop.
Am I doning something wrong?
Thanks,
Raymond
The File is not getting uploaded. As i am using Splunk cloud, I added 1 in the segment field with all other fields unchanged. The upload failes without giving any error. The upload pop up momentarily and then goes away with the review screen still showing