Splunk Search

searching TOP query

rootadmin
New Member

Hi Folks, First time using splunk, i've managed to get my draytek router chucking the logs to splunk.

id like to perform a search so i can create a dashboard panel that shows me the TOP DNS queries, im not sure of the best way to do this, perhaps some one can point me in the right direction and provide me some code if needs be.

I would be really very qreatful for any help i can get.

Below is a log extract showing a dns lookup - raw data from the draytek

Jun 24 16:22:06 192.168.y.x Jun 24 16:20:51 Router: Local User (MAC=AA-BB-CC-DD-EE-FF): 192.168.y.x DNS -> 212.159.6.10 inquire orcart.facebook.com
Tags (2)
0 Karma

MHibbin
Influencer

You will firstly need to extract the fields you require..

http://docs.splunk.com/Documentation/Splunk/5.0.3/Knowledge/Addfieldsatsearchtime

You will then need to pipe your search to the top command on that field.

http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Top

0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...