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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...