This is part 1 of a 2 part article set in which I will show you how to download, parse and save a Red Hat Enterprise Linux (RHEL) Audit Log File to a Corner Bowl Server Manager 2023 Log Database.
Ok so let's show you how this is accomplished but first a note about RHEL, Linux and other Unix based flavors.
Important |
Just about every RHEL installation is unique in it's configuration. My installation of RHEL is no different. Corner Bowl Server Manager includes 3 sample templates that support the default RHEL image Microsoft offers on Azure. Regardless of your environment, you will likely need to modify each of these templates to implement the audit log consolidation and backup in your environment. |
Note |
Note: The test function uses SFTP to test the connection. To test the SSH Shell, click the SSH Shell button. |
sudo su \cp /var/log/audit/audit.log /tmp/audit.log chmod +r /tmp/audit.log
Note |
Note: Use the response field to insert any required passwords. The value is masked in the viewer and saved using FIPS compliant AES encryption. |
sudo su rm -f /tmp/audit.log
Important |
Note: When rolling files the best implementation saves current log entries to a dated filename. For a proper implementation, take a look at how Microsoft saves IIS logs files then reproduce the configuration on your RHEL server. Once implemented, use the date and time search criteria tags, for example: audit_<yyyyMMdd>.log. In this scenario, Server Manager reads the previous day's file after each file is rolled prior to reading the current file eliminating any possibility of lost entries. |
Important |
Note: Each RHEL audit.log file is likely configured differently so your regular expressions may need to be altered. This is just a sample and this article is not a tutorial on regular expressions so I'm going to skip past explanations of each regular expression. |
Last Updated: March, 3rd 2024