November 2018
Beginner
298 pages
7h 51m
English
The top command displays the X most common values for the fields in the given field list, and calculates a count and a percentage for the frequency that the values occur. The default is the top/rare 10 events, but you can specify the count. You can also group the results by field by specifying <by-clause>:
index = weblogs_90d_eidx sourcetype=access_combined | top clientip...| top 5 uri, uri_path by clientip...| rare 3 status
The rare command returns the least-common values for the specified field – the opposite of top.
Read now
Unlock full access