Splunk Enterprise Security

How to present my search results as a table of selected fields?

gordone
Explorer

So, I am not clear whether this has been asked before, but I'll ask it directly.

I want to present the results of my search as a table of selected fields, without having to invoke the stats count by {Field1},{Field 2}, etc. I suspect there is going to be some use of the eval command.

sourcetype=firewall dest_port>=3500 dest_port<=3800 | stats count by srcip,dest,dest_port

also, I would like to be able to aggregate the source IPs and/or the port as you might see in the Threat Activity dashboard.

Thanks beforehand for any help.

somesoni2
Revered Legend

You need to use table command, like this (display table without aggregation)

sourcetype=firewall dest_port>=3500 dest_port<=3800 | table srcip,dest,dest_port
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...