SPL
Top 10 Most Active Hosts in a Linux Environment
Description
The following splunk query example will return the top 10 most active hosts in a given time range. Active in this instance is determined simply the number of log entries.
*NOTE* if the host field is being autoextracted (for instance if you are using a universal forwarder) you will not need the regex command and can call upon the auto extracted fieldname of "host"
1 0
sourcetype=linux_secure |rex ".*:\d{2}\s(?<hostname>\S+)" | top limit=10 hostname
Comments
0 total
Be the first to comment on this SPL.
Leave a comment
You must log in to post a comment.