Splunk allows you to navigate search results by following links and using interactive field filters. Filtering is an efficient method to organize the results of a search.
Events and fieldsYour search results appear below the timeline as a list of events ordered by timestamp. A field is a name/value pair distinguished from the free-form indexed segments that you see in an event.

You can add and remove field filters, extract new fields from the results, and tag fields to group results.
Filter on fieldsSearch for all the sampledata index events:
Splunk includes three default filters in your search results: host, source, and sourcetype. These interactive field filters are drop-down menus located below the timeline.
Each field's filter menu lists (up to) 10 values, ordered by the frequency at which they occur in the search results.
HostThe host field, which lists the originating hosts of events, lets you target one specific host in the filter. The host field is stored and indexed with each raw event.
Click on the host menu.

From the list, select the first host value, http2. The search results filter to show only results for the selected host.
Let's look at another host value and add it to our search:
The search bar and search results update to include the host value restriction you applied, http1:
The source field lists the location where an event is accessed; a file, network port, script, etc.

The sourcetype field characterizes all sources that have similar formats. For example, all Apache access logs in W3C common format have the sourcetype value access_common. The sample data contains four distinct sourcetypes - syslog, access_common, db2 and websphere_activity.

You can include many more field filters in addition to host, source, and sourcetype, in your searches. The fields are listed in the Fields... drop-down menu.
Search for all the sampledata index events:
Let's add a couple more field filters to our search:
The interactive field filters list updates to include eventtype and punct menus. You can use these field filters exactly the same way you used host.

To remove a field filter menu:
The eventtype and punct fields are discussed further in Event types.
Define custom fieldsSplunk lets you interactively define and extract fields from your search results. Let's define a field to extract the IP addresses from our search for all events in sampledata.
You may need to scroll through the results or use the timeline to find events that contain an IP address.
Below the timestamp of every event is a drop-down menu. Click the down-arrow and select Extract field.

The Extract fields window opens.

Notice the panel at the top of this window:
To define the IP address field for extraction:

In the Rules panel:
Splunk also provides a preview of other events that contain your custom field. Use this Preview panel to validate the results of your field definition.
To save your custom field definition, click Save. The Save FIeld Definition dialog box opens.

Now, your custom field (ipaddress) is listed in the Fields menu. You can activate and apply your field filter in exactly the same way you used host.

You can tag fields to group together results that share field values. Use tagging to attach a name, or tag, to a group of results that share the same value of a field, event type, host, or source. You can apply as many tags as you want to a single field, event type, host, or source. A tag cannot contain spaces.
Note: Tags that you create for a field are displayed in italics next to that field name in your search results.
Collect snapshotsSplunk allows you to save your results in a "Snapshot Container" that houses your collection. Each snapshot includes an image of the time graph and your search string.
You can add and remove snapshots from your collection. However, after adding a snapshot, you cannot modify the time graph within the container.
If you want to modify a snapshot in your collection:
Your modified graph has been added to your snapshot collection.
Comments
No comments have been submitted.