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
Install the latest package from the runtime releases tag 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
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.
Replace AXIOM_DOMAIN
with api.axiom.co
if your organization uses the US region, and with api.eu.axiom.co
if your organization uses the EU region. For more information, see Regions.
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 you send the data.
In the code below, replace url
with the URL of your Syslog endpoint.