Send data from Tremor to Axiom
This step-by-step guide will help you configure Tremor connectors and events components to interact with your databases, APIs, and ingest data from these sources into Axiom.
Axiom provides a unique way of ingesting Tremor logs into Axiom. With your connector definitions, you can configure Tremor connectors and events components to interact with your external systems, such as databases, message queues, or APIs, and eventually ingest data from these sources into Axiom.
Installation
To install tremor grab the latest package from the runtime releases tag, and install it on your local machine.
Configuration using HTTP
To send logs via Tremor to Axiom, you need to create a configuration file. For example, create axiom-http.troy
with the following content (using a file as example data source):
This assumes you have set TREMOR_PATH
in your environment pointing to tremor-runtime/tremor-script/lib
if you are using a src
clone then you can execute it as follows tremor server run axiom-http.troy
The$DATASET_NAME
dataset you want to send logs to in Axiom, and the $API_TOKEN
is your Axiom API token for ingesting and quering your Tremor logs.
Configuration using Syslog
You can also send logs via Tremor to the Syslog endpoint using a file as an example data source.
- Click Settings > Endpoints.
- Click New endpoint.
- Click .
- Name the endpoint.
- Select the dataset where you want to send data.
- Copy the URL displayed for the newly created endpoint. This is the target URL where sends data.
In the code below, replace url
with the URL of your Syslog endpoint.