Sysdig Agent
Use the Quick Start Wizard
This option provides a bash script for installing the agent and is appropriate for quick trial installations to get Sysdig up and running.
Log in to Sysdig Secure as an administrator and select Integrations > Data Sources|Sysdig Agent.
Click +Add Agent and select Linux.
As prompted by the Wizard screen, enter:
- Tags: Enter any tags you like, so you can identify this specific agent later.
The Wizard will auto-populate a code snippet with any tags, as well as autodetected Sysdig Secure endpoint and agent access key information.
Copy and run the script. This will install the Sysdig agent and give you runtime threat detection.
Customized Deployments
Prerequisites
- Review
- Collect the following:
- Ensure that you have admin permissions to perform the operations.
Supported Distributions
Installing agent as a package is supported on the following :
- Debian, Ubuntu
- CentOS, RHEL, Fedora, Amazon AMI, Amazon Linux 2
Starting with agent version 13.1.0, separate packages will have to be installed depending on the driver to be used. See the table below.
Package Reference
Driver | Main Package | Dependency Packages |
---|---|---|
kmod (compatibility mode) | draios-agent | draios-agent-slim, draios-agent-kmodule |
kmod (recommended) | draios-agent-kmodule | draios-agent-slim |
legacy_ebpf | draios-agent-legacy-ebpf | draios-agent-slim |
universal_ebpf | draios-agent-slim |
For Debian and Ubuntu
Trust the Sysdig GNU Privacy Guard (GPG) key, configure the apt repository, and update the package list by running the following commands:
curl -s https://download.sysdig.com/DRAIOS-GPG-KEY.public -o /usr/share/keyrings/sysdig-keyring.asc echo 'deb [signed-by=/usr/share/keyrings/sysdig-keyring.asc] https://download.sysdig.com/stable/deb stable-$(ARCH)/' | tee /etc/apt/sources.list.d/sysdig.list > /dev/null apt-get update
Install kernel development files, (kernel module and eBPF drivers, only):
sudo apt-get -y install linux-headers-$(uname -r)
Install, configure, and restart the Sysdig agent:
Install the agent:
sudo apt-get -y install draios-agent
Specify the agent driver:
- To select the eBPF driver:
cat > /etc/default/dragent <<< 'export SYSDIG_BPF_PROBE=""' cat >> /etc/default/dragent <<< "SYSDIG_AGENT_DRIVER=legacy_ebpf"
- To select the Universal eBPF driver:
cat > /etc/default/dragent <<< "SYSDIG_AGENT_DRIVER=universal_ebpf"
- To select the kernel module driver:Note: On new installations, the kernel module driver is selected by default, and specifying it explicitly in
cat > /etc/default/dragent <<< "SYSDIG_AGENT_DRIVER=kmod"
/etc/default/dragent
is optional.
- To select the eBPF driver:
Configure
dragent.yaml
:sudo bash -c `echo customerid: ACCESS_KEY >> /opt/draios/etc/dragent.yaml` sudo bash -c `echo tags: [TAGS] >> /opt/draios/etc/dragent.yaml` sudo bash -c `echo collector: COLLECTOR_ADDRESS >> /opt/draios/etc/dragent.yaml`
Replace
ACCESS_KEY
andCOLLECTOR_ADDRESS
with the access key and collector address associated with your account.<TAGS>
is optional and can be used to add custom tags to your metrics.Restart the agent:
sudo service dragent restart
For CentOS, RHEL, Fedora, Amazon AMI, Amazon Linux 2
Trust the Sysdig GPG key and configure the yum repository:
sudo rpm --import https://download.sysdig.com/DRAIOS-GPG-KEY.public && sudo curl -s -o /etc/yum.repos.d/draios.repo https://download.sysdig.com/stable/rpm/draios.repo
Install the EPEL repository, (kernel module and eBPF drivers, only):
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
This command is required only if DKMS is not available in the base distribution.
Install the kernel development files, (kernel module and eBPF drivers, only):
sudo yum -y install kernel-devel-$(uname -r)
Install, configure, and start the Sysdig Agent:
- Install the agent:
yum -y install draios-agent
- Specify the agent driver:
- To select the kernel module driver:Note: On new installations, the kernel module driver is selected by default, and specifying it explicitly in
cat > /etc/sysconfig/dragent <<< "SYSDIG_AGENT_DRIVER=kmod"
/etc/sysconfig/dragent
is optional. - To select the eBPF driver
cat > /etc/sysconfig/dragent <<< 'export SYSDIG_BPF_PROBE=""' cat >> /etc/sysconfig/dragent <<< "SYSDIG_AGENT_DRIVER=legacy_ebpf"
- To select the Universal eBPF driver:
cat > /etc/sysconfig/dragent <<< "SYSDIG_AGENT_DRIVER=universal_ebpf"
- To select the kernel module driver:
- Configure
dragent.yaml
:Replaceecho customerid: ACCESS_KEY >> /opt/draios/etc/dragent.yaml echo tags: [TAGS] >> /opt/draios/etc/dragent.yaml echo collector: COLLECTOR_ADDRESS >> /opt/draios/etc/dragent.yaml
ACCESS_KEY
andCOLLECTOR_ADDRESS
with your own configuration parameters.[TAGS]
is optional and can be used to add custom tags to the agent’s metrics. For example,env:production
,cluster:east-cluster-a
. - Start the agent:
sudo systemctl enable dragent sudo systemctl start dragent
- Install the agent:
Next Steps
Install the Host Scanner using a package
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.