
| stats distinct_count(file) as "Total files" by productId | stats distinct_count(file) as "Total files" index=main sourcetype=access_combined_wcookie | stats count(file) as "Total files", count as "Total events"Ĭount of unique values for a field.
SPLUNK STATS LIST VS VALUES PLUS
The default order is ascending, the plus sign (+) also causes ascending sort. sourcetype=access_combinedĪscending or descending order of the results. Removes duplicate events that share common values. In subsequent components, we need to use the new name of the field, because that is passed forward by the pipe separator.Wrap the name in quotes if the name contains space,.Renames table fields fo display. Use space to separate the fields. Sourcetype=access_combined | table status, clientip Field names are the table column headers.Sourcetype=access_combined | fields - status, clientip It only affects the displayed result, no benefit to performance. Exclude fields (use negative sign after the word fields).

Sourcetype=access_combined | fields status, clientip Happens before field extraction, can improve performance. Include and exclude fields from the search result. Move each pipe to a new line: ⌘-\ (Mac), ctrl-\ (Windows).If the cursor id behind a parenthesis, the matching parenthesis is highlighted.orange: Boolean operators and command modifiers.sourcetype=access_combined | top age | fields name Editor features The result of the component on the left is passed to the next component, no more data is read. Use pipes (|) to separate the components of the search language. Commands: tell Splunk what we want to do with the search resultįunctions: explain how we want to chart, compute and evaluate the resultsĪrguments: variables we apply to the functionsĬlauses: grouping and definition of results Separator
