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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...