Installation

What is the difference between netstat and stats?

keldridge1
Explorer

What is the main difference between a netstat command a stats commands as feel like one is associated with tables?

Labels (3)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

The chief difference is stats aggregates results using statistical functions whereas netstat is not a Splunk command.  Neither is associated with tables, although both can display output in a tabular fashion.

What problem are you trying to solve?

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

The chief difference is stats aggregates results using statistical functions whereas netstat is not a Splunk command.  Neither is associated with tables, although both can display output in a tabular fashion.

What problem are you trying to solve?

---
If this reply helps you, Karma would be appreciated.

keldridge1
Explorer

What I am trying to solve is with botsv1 with the command index=botsv1 | stats count by http.http_method, http.hostname, http.url | sort -count in trying to identify malicious IP addresses.

0 Karma
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf24, and Community Connections

Thank you to everyone in the Splunk Community who joined us for .conf24 – starting with Splunk University and ...

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...