Linux Server Logs
Configure syslog log forwarding for Ubuntu servers.
In this guide, you'll configure Ubuntu Linux servers to forward system logs to Radiant Security using the Radiant Agent. By leveraging rsyslog, a reliable and high-performance logging system built into most Linux distributions, you'll establish a direct connection between your servers and the Radiant Agent.
Prerequisites
Add the data connector in Radiant Security
Log in to Radiant Security.
From the navigation menu, click Settings > Data Connectors and click + Add Connector.
Search for and select the Radiant Agent option and then click Data Feeds.
Under Select your data feeds, select Linux Server Logs and click Credentials.
Under Credential Name, give your Radiant Agent integration an identifiable name (e.g.
Radiant Agent Integration).Click Add Connector.
Configure a local Radiant Security Agent
Refer to the Install the Radiant Security Agent guide to set up a local agent to collect the logs.
Before you begin the Configure log forwarding in Linux section, ensure you have the following information from your agent installation:
The IP address or hostname of the server on which the agent is installed.
The port configured for receiving Linux server logs.
Configure log forwarding in Linux
These steps assume you're familiar with basic command-line operations. Remember to press Enter after each command to execute it.
Prerequisites check and installation
Access your Ubuntu Linux server.
Log in to your Ubuntu Linux system and switch to root privileges:
Enter your password when prompted.
Verify rsyslog installation
Check if rsyslog is already installed:
The expected output if ryslog is installed should be:
If you see a blank line, then rsyslog is not installed. Install it with:
Create the rsyslog configuration
Navigate to the rsyslog configuration directory:
In the
/etc/rsyslog.d/folder, create a new configuration file in the nano text editor:
Within the nano text editor window, copy and paste the following configuration into the
100-radiant-agent.conffile.
Then, replace the following placeholder values with your actual Radiant Agent details:
RADIANT_AGENT_IP_ADDRESS OR RADIANT_AGENT_DNS_NAME- The IP address or DNS name of your Radiant Agent server.RADIANT_AGENT_LINUX_SERVER_LOGS_PORT- The port configured for receiving Linux server logs.
After pasting in the configuration and editing the placeholder values, save the file by pressing
Ctrl + O, then the enter key.After saving the file, exit the nano text editor by pressing
Ctrl + X.Verify that the
100-radiant-agent.conffile was created:
You should see the filename displayed. If not, repeat steps 4-6.
Restart rsyslog:
Verify rsyslog successfully restarted by entering the following command:
Look for the line beginning with Active: - it should show active (running).
Last updated