User Manual

 


Basic Tutorial

This documentation does not apply to the most recent version of Splunk. Click here for the latest version.

Basic Tutorial

Demo Server

You can practice Splunking real IT data on our demo servers:


To take this tutorial, login to prodemo.splunk.com and type along with the examples below.


Prodemo Home Page




The Splunk Box

At the top of the Splunk interface is a text entry box, the Splunk box. Use it the same way you do a Web search engine: Start with a simple keyword or two, then refine your search terms to find the information you seek.


Try these examples on prodemo:


Search Results




Typing more than one keyword performs a logical AND search for both terms. Putting a NOT between terms filters the second one from search results, just like piping Unix output through grep -v.


You can use shortcuts to quickly refine your search.


Control-click on a term in the search result will add the term to the search. (Use command-click on a mac).


Control-alt-click will exclude the term from the search. (Use cmd-option-click on a mac).


Search Results

Search for "http" on prodemo.splunk.com and look at the results page. You'll see that each search result represents an individual log file event, and contains these fields:




single result




Tabs

Splunk's results page has five tabs that present alternate views of your search results grouped by Events , Event Types , Source Types , Hosts, Sources and sometimes Servers. Click through the tabs to see how each view presents the same information summarized in different ways.


[1]




Typeahead

As you type into the Splunk box, you'll see a drop-down list of typeahead options. Each entry lists a possible completion for your search, plus the number of matches for it. Typeahead includes both events in the index and meta data such as source::/home/demo/trade6/db2diag.log .


TypeAhead feature




Try the up and down arrows, Tab key, and Enter key to select typeahead entries.


Timerange Selector

Click the clock icon to the left of the Splunk box to pop open an interactive widget for setting start and end times for your search. You can use your keyboard, arrow keys or your mouse to adjust time values. Click the calendar icon to pop up a widget for browsing dates.


Calendar view




Events by Time

The Events by Time chart is a plot of the events in your Splunk results mapped by their timestamps. The chart is interactive. Mouse over each bar to see more details on that time slice. Click the magnifying glass icons to zoom in and out.. Click on one time bar to narrow your Splunk to that time range. Shift-click on another to extend the time range further.


Histogram




Saved Splunks

A Saved Splunk is a bookmarked search you can run again to get the latest results.


Create a Saved Splunk

To create a Saved Splunk, browse to the menu option Splunks -> Save.


[2]




Run a Saved Splunk

To run a Saved Splunk, choose it from the Splunks -> Saved Splunks menu, or type savedsplunk::stmperrors into the Splunk box to run the Saved Splunk named smtperrors.




Special commands

Search for all events

Type meta::all into the Splunk box, or choose the menu option Splunks -> Saved Splunks -> all.


Cancel a search

Hit the Esc key on your keyboard to terminate a search you don't want to wait for.


Reset the web interface

Click the Splunk logo in the upper left of the interface to return to the server's home page and start over.

This documentation applies to the following versions of Splunk: 2.1 , 2.2 , 2.2.1 , 2.2.3 , 2.2.6 View the Article History for its revisions.


You must be logged into splunk.com in order to post comments. Log in now.

Was this documentation topic helpful?

If you'd like to hear back from us, please provide your email address:

We'd love to hear what you think about this topic or the documentation as a whole. Feedback you enter here will be delivered to the documentation team.

Feedback submitted, thanks!