rsyslogd command not found

In this troubleshooting guide we learn how to fix rsyslogd command not found error message

Introduction

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

rsyslogd: command not found

or when using sudo you get the following error message

sudo: rsyslogd: command not found

Solutions to rsyslogd: command not found

How To Fix rsyslogd: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu rsyslogd is provided by rsyslog package.

rsyslog is:

Rsyslog is a multi-threaded implementation of syslogd (a system utility providing support for message logging), with features that include:

  • reliable syslog over TCP, SSL/TLS and RELP
  • on-demand disk buffering
  • email alerting
  • writing to MySQL or PostgreSQL databases (via separate output plugins)
  • permitted sender lists
  • filtering on any part of the syslog message
  • on-the-wire message compression
  • fine-grained output format control
  • failover to backup destinations
  • enterprise-class encrypted syslog relaying

It is the default syslogd on Debian systems.

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

sudo apt-get -y install rsyslog

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

You can also use apt command to install rsyslog.

sudo apt -y install rsyslog

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

sudo aptitude install rsyslog

Summary

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