Getting Data In

Command to filter out repeated item.

Kai191
New Member

I would like to know what is the command filter out repeat source port if I wanna analyse my log based on number of port being access per min.

Current command is: sourcetype="Lv30814" | stats count(Source_Port)

Tags (1)
0 Karma
1 Solution

kristian_kolb
Ultra Champion

If you want to find the number of different ports seen in 1 minute spans - regardless of how many times each port occurs;

your base search | timechart span=1m dc(Source_Port)

/K

View solution in original post

0 Karma

kristian_kolb
Ultra Champion

If you want to find the number of different ports seen in 1 minute spans - regardless of how many times each port occurs;

your base search | timechart span=1m dc(Source_Port)

/K

0 Karma

Kai191
New Member

Thank You!

0 Karma
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...