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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...