Monitor Your Ubuntu 16.04 with Sysdig

Sysdig is open source, system-level exploration: capture system state and activity from a running Linux instance, then save, filter and analyze. A scriptable in Lua and includes a command line interface and a powerful interactive UI, csysdig, that runs in your terminal.

Think of it as strace + tcpdump + htop + iftop + lsof + transaction tracing + awesome sauce. With state of the art container visibility on top.

In this tutorial, you will learn “How to install and configure the Sysdig “, it is an open-source activity monitoring tool which used to capture and analyze application logs which have powerful filtering features with customizable outputs.

1. As usual of every Linux tutorial we need to update our packages, run the below command on Terminal.

sudo apt-get update

2. Once the update process is complete, download the installation script by “Curl” using the below command.

curl -o install-sysdig

3. The installation script is now downloaded, let’s install it using the below command.

cat ./install-sysdig | sudo bash

4. Sysdig is now successfully installed, you can run the below command to check live events of your Linux, also note that it will keep dig for events till the end of life end the process by pressing “CTRL + C”

sudo sysdig

5. By using the command “sudo sysdig -l“, it will only display one page of filters.

Capture System Activity

Sysdig is able to capture the output to a file where you can use it for analyzing the errors using the “–w” option with “sysdig” command.

1. To save output to file, use the command below.

sudo sysdig -w sysdig_capture.scap

2. To save only the first 300 line to the output file, use the command below.

sudo sysdig -n 300 -w sysdig_capture.scap

3. To divide the file into many parts, use the command below.

sudo sysdig -C 1 -w sysdig_capture.scap

Csydig for System Monitoring and Analysis

Is the tool which comes with the sysdig packages, which has an interface where you can use its features which are available with “sysdig” package.

1. Use the below command to monitor all your system services.

sudo sys csysdig


At the end of this tutorial, you have learn “how to read the system information using the sysdig-tool” which helps us to read and analyze the system information.

Recommended For You

Leave a Reply

Your email address will not be published. Required fields are marked *