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!

Join Us at the Builder Bar at .conf24 – Empowering Innovation and Collaboration

What is the Builder Bar? The Builder Bar is more than just a place; it's a hub of creativity, collaboration, ...

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...