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.
The Axiom Syslog Proxy is an open-source project and welcomes your contributions. For more information, see the GitHub repository.
Syslog is an outdated protocol. Some of the limitations are the following:
For a more reliable and modern logging experience, consider using tools like Vector to receive syslog messages and forward them to Axiom. This approach bypasses many of syslog’s limitations.
Other requirements:
514
to the Syslog server. TCP log messages are sent on TCP port 601
to the Syslog server.Ensure your messages conform to the size limit and TLS requirements. If the connection is frequently re-established and messages are rejected, the issue can be the size of the messages or other formatting issues.
To install the Axiom Syslog Proxy, choose one of the following options:
To install the Axiom Syslog Proxy using a pre-compiled binary file, download one of the releases in GitHub.
Run the following to install the Axiom Syslog Proxy using Homebrew:
Run the following to install the Axiom Syslog Proxy using go get
:
Run the following to install the Axiom Syslog Proxy from the GitHub source:
To install the Axiom Syslog Proxy using a Docker image, use a Docker image from DockerHub
Set the following environment variables to connect to Axiom:
AXIOM_TOKEN
is the Axiom API token you have generated.AXIOM_DATASET
is the name of the Axiom dataset where you want to send data.AXIOM_URL
is the URL of the Axiom API. By default, it uses the US region. Change the default value if your organization uses another region. For more information, see Regions.To run Axiom Syslog Proxy, run the following in your terminal.
If you use Docker, run the following:
Replace API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.
Replace DATASET_NAME
with the name of the Axiom dataset where you want to send data.
To test that the Axiom Syslog Proxy configuration:
Run the following in your terminal to send two messages:
In Axiom, click the Stream tab.
Click your dataset.
Check whether Axiom displays the messages you have sent.