Popular search commands
Contents
Popular search commands
The following tables lists the more frequently used Splunk search commands. Some of these commands share functions -- you can see a list of these functions with descriptions and examples on the following pages: Functions for eval and where and Functions for stats, chart, and timechart.
| Command | Alias(es) | Description | See also |
|---|---|---|---|
bucket
| bin, discretize | Puts continuous numerical values into discrete sets. | chart, timechart
|
chart
| Returns results in a tabular output for charting. See also, Functions for stats, chart, and timechart. | bucket, sichart, timechart
| |
dedup
| Removes subsequent results that match a specified criteria. | uniq
| |
eval
| Calculates an expression and puts the value into a field. See also, Functions for eval and where. | where
| |
extract
| kv | Extracts field-value pairs from search results. | kvform, multikv, xmlkv, rex
|
fields
| Removes fields from search results. | ||
head
| Returns the first number n of specified results. | reverse, tail
| |
lookup
| Explicitly invokes field value lookups. | ||
multikv
| Extracts field-values from table-formatted events. | ||
rangemap
| Sets RANGE field to the name of the ranges that match. | ||
rare
| Displays the least common values of a field. | sirare, stats, top
| |
rename
| Renames a specified field; wildcards can be used to specify multiple fields. | ||
replace
| Replaces values of specified fields with a specified new value. | ||
rex
| Specify a Perl regular expression named groups to extract fields while you search. | extract, kvform, multikv, xmlkv, regex
| |
search
| Searches Splunk indexes for matching events. | ||
sort
| Sorts search results by the specified fields. | reverse
| |
stats
| Provides statistics, grouped optionally by fields. See also, Functions for stats, chart, and timechart. | eventstats, top, rare
| |
tail
| Returns the last number n of specified results. | head, reverse
| |
timechart
| Create a time series chart and corresponding table of statistics. See also, Functions for stats, chart, and timechart. | chart, bucket
| |
top
| common | Displays the most common values of a field. | rare, stats
|
transaction
| transam | Groups search results into transactions. | |
where
| Performs arbitrary filtering on your data. See also, Functions for eval and where. | eval
| |
xmlkv
| Extracts XML key-value pairs. | extract, kvform, multikv, rex
|
Answers
Have questions about search commands? Check out Splunk Answers to see what questions and answers other Splunk users had about the search language.
This documentation applies to the following versions of Splunk: 4.1 , 4.1.1 , 4.1.2 , 4.1.3 , 4.1.4 , 4.1.5 , 4.1.6 , 4.1.7 , 4.1.8 , 4.2 , 4.2.1 , 4.2.2 , 4.2.3 , 4.2.4 , 4.2.5 , 4.3 , 4.3.1 , 4.3.2 View the Article History for its revisions.