Send your system logs to Better Stack using syslog-ng.
Set up syslog-ng using the provided script:
Curious about what the script does?
syslog-ng is installed on your system.syslog-ng.conf, usually s_src.SYSLOG_NG_SOURCE to change if needed.Restart the syslog-ng service to reload configuration:
You should see your logs in Better Stack β Live tail.
Please let us know at hello@betterstack.com.
We're happy to help! π
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"].
Download CA certificates (Let's Encrypt) to enable TLS:
The certificate links are taken from the Let's Encrypt website.
Read more about the setup in the syslog-ng documentation.
Do you want to log over TCP or UDP?
s_src is the system source that Ubuntu and Debian define in /etc/syslog-ng/syslog-ng.conf. Replace it in the config below with the source your distribution defines there, for example s_sys on RHEL, Fedora and Alpine or src on openSUSE.
Configure syslog-ng to log over TCP:
Configure syslog-ng to log over UDP:
Restart the syslog-ng service:
Test the logger:
You should see your logs in Better Stack β Live tail.
Please let us know at hello@betterstack.com.
We're happy to help! π
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.