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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...