discogrok command not found

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

Introduction

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

discogrok: command not found

or when using sudo you get the following error message

sudo: discogrok: command not found

Solutions to discogrok: command not found

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

In Ubuntu discogrok is provided by grok package.

grok is:

The grok program can parse log data and program output. You can match any number of complex patterns on any number of inputs (processes and files) and have custom reactions.

Grok is simple software that allows you to easily parse logs and other files. With grok, you can turn unstructured log and event data into structured data.

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

sudo apt-get -y install grok

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

You can also use apt command to install grok.

sudo apt -y install grok

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

sudo aptitude install grok

Summary

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