slogencrypt command not found

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

Introduction

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

slogencrypt: command not found

or when using sudo you get the following error message

sudo: slogencrypt: command not found

Solutions to slogencrypt: command not found

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

In Ubuntu slogencrypt is provided by syslog-ng-mod-slog package.

syslog-ng-mod-slog is:

syslog-ng is an enhanced log daemon, supporting a wide range of input and output methods: syslog, unstructured text, message queues, databases (SQL and NoSQL alike) and more.

Key features:

  • receive and send RFC3164 and RFC5424 style syslog messages
  • work with any kind of unstructured data
  • receive and send JSON formatted messages
  • classify and structure logs with builtin parsers (csv-parser(), db-parser(), etc.)
  • normalize, crunch and process logs as they flow through the system
  • hand on messages for further processing using message queues (like AMQP), files or databases (like PostgreSQL or MongoDB).

This package provides the $(slog) template functions and command line utilities (slogencrypt, slogverify, slogkey).

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

sudo apt-get -y install syslog-ng-mod-slog

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

You can also use apt command to install syslog-ng-mod-slog.

sudo apt -y install syslog-ng-mod-slog

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

sudo aptitude install syslog-ng-mod-slog

Summary

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