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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...