Send data from syslog to Axiom
This page explains how to send data from a syslog logging system to Axiom.
The Axiom Syslog Proxy acts as a syslog server to send data to Axiom.
Syslog limitations and recommended alternatives
Syslog is an outdated protocol. Some of the limitations are the following:
- Lack of error reporting and feedback mechanisms when issues occur.
- Inability to gracefully end the connection. This can result in missing data.
Prerequisites
- Create an Axiom account.
- Create a dataset in Axiom where you send your data.
- Create an API token in Axiom with permissions to ingest data to the dataset you have created.
Other requirements:
- No TLS: The proxy accepts plaintext TCP and UDP traffic. Run it only on trusted networks. For syslog over TLS, see Send syslog data over TLS to Axiom.
- Port requirements: UDP log messages are sent on UDP port
514, and TCP log messages are sent on TCP port601. - TCP message size limit: TCP expects one newline-delimited message per line, with a maximum line size of 64 KiB. A line larger than 64 KiB closes the connection.
- UDP datagram size limit: UDP reads up to 8,960 bytes per datagram and truncates longer packets.
Axiom highlights Syslog events by severity. For supported fields and levels, see Log level detection.
Install Axiom Syslog Proxy
To install the Axiom Syslog Proxy, choose one of the following options:
- Install using a pre-compiled binary file
- Install using Homebrew
- Install using Go command
- Install from the GitHub source
- Install using a Docker image
Install using pre-compiled binary file
To install the Axiom Syslog Proxy using a pre-compiled binary file, download one of the releases in GitHub.
Install using Homebrew
Run the following to install the Axiom Syslog Proxy using Homebrew:
Install using Go command
Run the following to install the Axiom Syslog Proxy using go get:
Install from GitHub source
Run the following to install the Axiom Syslog Proxy from the GitHub source:
Install using Docker image
To install the Axiom Syslog Proxy using a Docker image, use a Docker image from DockerHub
Configure Axiom Syslog Proxy
Set the following environment variables to connect to Axiom:
AXIOM_TOKENis the Axiom API token you have generated.AXIOM_DATASETis the name of the Axiom dataset where you want to send data.
Run Axiom Syslog Proxy
To run Axiom Syslog Proxy, run the following in your terminal.
If you use Docker, run the following:
Test configuration
To test that the Axiom Syslog Proxy configuration:
-
Run the following in your terminal to send two messages:
shell -
In Axiom, click Stream in the sidebar.
-
Click your dataset.
-
Check whether Axiom displays the messages you have sent.