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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...