Skip to main content

How to troubleshoot logging issues with Auditbeat on Linux

In this guide, we'll take you through troubleshooting logging issues with Auditbeat on Linux.

Alan Butcher avatar
Written by Alan Butcher
Updated yesterday

Check Auditbeat Service Status

The first step is to ensure that the Auditbeat service is running properly.

1. Open the Terminal on your device.

2. Type the command sudo systemctl status auditbeat and press Enter.

3. Look for a message indicating that the service is active and running. If it's not, proceed to the next step.

Restart Auditbeat Service

Sometimes, a simple restart can resolve the logging issue.

1. In the Command Prompt or Terminal, type sudo systemctl restart auditbeat and press Enter.

2. Wait for a few moments to allow the service to restart completely.

3. Check if the logging issue persists. If it does, let's move on to the next step.

Verify Auditbeat Configuration

If restarting the service doesn't work, it may indicate a problem with the Auditbeat configuration.

1. Locate the Auditbeat configuration file. Typically, it is located at /etc/auditbeat/auditbeat.yml

2. Open the file using a text editor of your choice, e.g. nano /etc/auditbeat/auditbeat.yml

3. Find the Logstash output section of the file and change the below line, replacing 192.168.0.1 with the IP address of your collector as shown in the example below:
​hosts: ["192.168.0.1:5044"]

4. Save the changes and close the file.

5. Restart the Auditbeat service using the steps mentioned in Step 2.

6. Check if the logging issue has been resolved. If not, let's proceed to the next step.

Check System Audit Rules

Auditbeat relies on system audit rules to capture events.

1. Open a Terminal window.

2. Type the command sudo auditctl -l and press Enter.

3. Verify that the list of audit rules includes the events you want to log.

4. If the necessary rules are missing, you can add them using the sudo auditctl -a command followed by the appropriate rule.

5. Restart the Auditbeat service using the steps mentioned in Step 2.

6. Check if the logging issue has been resolved. If not, move on to the next step.

If you've followed all the steps above and are still experiencing logging issues, don't worry! Feel free to reach out to us via a ticket within the portal or via the Livechat bubble in the bottom right, providing us with the details of the problem you're facing.

And that's it! You now know how to troubleshoot issues with Auditbeat. πŸŽ‰

Did this answer your question?