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!

How to Monitor Google Kubernetes Engine (GKE)

We’ve looked at how to integrate Kubernetes environments with Splunk Observability Cloud, but what about ...

Index This | How can you make 45 using only 4?

October 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

Splunk Education Goes to Washington | Splunk GovSummit 2024

If you’re in the Washington, D.C. area, this is your opportunity to take your career and Splunk skills to the ...