snort-stat command not found

In this troubleshooting guide we learn how to fix snort-stat command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

snort-stat: command not found

or when using sudo you get the following error message

sudo: snort-stat: command not found

Solutions to snort-stat: command not found

How To Fix snort-stat: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu snort-stat is provided by snort-common package.

snort-common is:

Snort is a libpcap-based packet sniffer/logger which can be used as a lightweight network intrusion detection system. It features rules-based logging and can perform content searching/matching in addition to detecting a variety of other attacks and probes, such as buffer overflows, stealth port scans, CGI attacks, SMB probes, and much more. Snort has a real-time alerting capability, with alerts being sent to syslog, a separate “alert” file, or even to a Windows computer via Samba.

This is a common package which holds cron jobs, tools, and config files used by all the different package flavors.

To fix this problem, we can install more using the command below.

sudo apt-get -y install snort-common

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install snort-common.

sudo apt -y install snort-common

Or if you have aptitude installed you can use the following command.

sudo aptitude install snort-common

Summary

In this tutorial we learn how to fix snort-stat command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.