Splunk Search

Need Help to pull the logs in the below format

mputtam
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

richgalloway
SplunkTrust
SplunkTrust

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!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...