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!

Introducing the Splunk Community Dashboard Challenge!

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

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...