Send logs to Better Stack with RSyslog
Start logging in 5 minutes
Send your system logs to Better Stack using RSyslog.
1. Install
Install RSyslog TLS package:
2. Setup
Set up RSyslog using the provided script:
Curious about what the script does?
- Detects whether
rsyslogis installed on your system. - Creates configuration for your Better Stack source.
3. Restart
Restart the RSyslog service to reload configuration:
You should see your logs in Better Stack → Live tail.
Need help?
Please let us know at hello@betterstack.com.
We're happy to help! 🙏
Manual RSyslog setup
Our Syslog server listens for TCP connections on port 6514, allowing only encrypted traffic. It also listens on port 6517 for unencrypted UDP connections.
Please use the Ingesting host from your source settings as the hostname.
To authenticate the incoming logs, we utilize Syslog's structured data. Every Syslog message must include [logtail@11993 source_token="$SOURCE_TOKEN"].
1. Install
Install RSyslog TLS package:
2. Setup
Do you want to log over TCP or UDP?
Log using TCP
Configure RSyslog to log over TCP:
Not using Ubuntu or Debian?
You might need to adjust the certificate path in the config based on your operating system.
For example, use /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem on CentOS.
Log using UDP
Configure RSyslog to log over UDP:
3. Restart
Restart the RSyslog service:
4. Start logging 🎉
Test the logger:
You should see your logs in Better Stack → Live tail.
Need help?
Please let us know at hello@betterstack.com.
We're happy to help! 🙏