Splunk Search

Need Help to pull the logs in the below format

Path Finder

Hi Community,

I was trying to pull the logs  in the following format _time, src, dest, src_port, dest_port by using stats command. but i could not able to get the source port and the destination port details in the results. Please help me out with the query.


Used Query EX : index="notable" search_name="XXXXXXXXXXXXXX" | stats count by _time app src dest src_port dest_port |

Labels (2)
0 Karma


When you run the search without the stats command do you get values for the app, src, dest, src_port, and dest_port fields? If any are null then stats will not return results. Use fillnull as necessary.

If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk Training for All: Meet Aspiring Cybersecurity Analyst, Marc Alicea

Splunk Education believes in the value of training and certification in today’s rapidly-changing data-driven ...

Investigate Security and Threat Detection with VirusTotal and Splunk Integration

As security threats and their complexities surge, security analysts deal with increased challenges and ...

Observability Highlights | January 2023 Newsletter

 January 2023New Product Releases Splunk Network Explorer for Infrastructure MonitoringSplunk unveils Network ...