Linux

Prev Next

Linux is a family of open-source, Unix-like operating systems based on the Linux kernel. It is widely used in servers, desktops, embedded systems, and cloud environments due to its flexibility, stability, and security. A Linux OS machine refers to any computer or device running a Linux-based operating system.

Integration Method: Data Collector (syslog)

Tables: Account Change (3001), Authentication (3002), Group Management (3006), SSH Activity (4007)

This integration supports the following events.

Event

Description

Authentication logs

user authentication attempts, including successful logins, failed logins, user account changes etc.,

This integration supports the following versions.

Linux Version Tested

Ubuntu 22.04 LTS, RHEL 8.8

Data Collector API version

0.6-62-d2aa70a

Prerequisites

  • The user should have a compatible version of the system in which the Data Collector is installed. For installation steps, please follow the steps mentioned here.

  • The user should have access to DataBee console.

Configuration Overview

A diagram of a computer network  AI-generated content may be incorrect.

Client machine – Machine in which end user activities are performed and those logs need to be processed in DataBee.

Data Collector – This host has the DataBee Data Collector installed. It receives logs from client machines and forwards the events to DataBee via HTTPS.

  1. Configure syslog in Data Collector machine.

  2. Configure syslog on client machines.

  3. Configure Linux feed in DataBee console.

Configure syslog on Data Collector

In this configuration, logs will be received from client machines on port 51442. Rsyslog is configured to forward all of it to port 51441. Those logs will be sent to DataBee via HTTPS.

  1. Login to the Linux host machine.

  2. Edit rsyslog.conf as a super user. Run the command sudo nano /etc/rsyslog.conf with admin privileges.

  3. Enable following highlighted UDP lines with port that you want to expose to client machines to forward logs. For e.g, port 51442 is opened here for clients to forward logs.

  4. Add auth,authpriv.* @0.0.0.0:51441 at the end of the file to expose auth logs to 51441 port. This port will be used for Linux feed configuration in DataBee UI.

  5. Save and close the file.
     

  6. Run the following command to restart syslog service sudo service rsyslog restart.

Configure syslog on client machines

  1. Login to Linux client machine from where you want to forward the authentication logs to DataBee.

  2. Run command sudo nano /etc/rsyslog.conf with admin privileges.

  3. Add auth,authpriv.* @<host-ip>:51442 at the end of the file to send auth logs to Data Collector machine 51442 port.

  4. Save and close the file.
     

  5. Run the following command to restart syslog service sudo service rsyslog restart.

DataBee Configuration

  1. Login to the DataBee UI, navigate to Data > Data Feeds and click the Add New Data Feed button.
     

  2. Search for the Linux and click it as shown below.
     

  3. Click on the Data Collector for collection method.
     

  4. Click on the Syslog.

     

  5. Enter feed contact information and select data collector created from the previous step.

  6. Click Next.
     

  7. In the configuration page, confirm the following:

    • Select the mode as UDP from the dropdown.

    • Fill the port field with port configured during syslog configuration in host machine.

    • Click Next.

  8. If you don’t want to filter logs based on syslog messages from host/clients then click on Submit.

    • If you want to filter the message then click on Add.
       

    • You will see filters dropdown with two options i.e., Inclusion and Exclusion

      1. Inclusion: provide keywords that you want to apply on syslog messages to filter which need to be processed in DataBee.

      2. Exclusion: provide keywords that you want to apply on syslog messages to filter which need not to be processed in DataBee.

    • Click on Submit.
       

Troubleshooting Tips