slogkey command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
slogkey: command not found
or when using sudo you get the following error message
sudo: slogkey: command not found
Solutions to slogkey: command not found
How To Fix slogkey: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu slogkey 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 slogkey command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.