Send data from Splunk to Axiom
Integrate Axiom in your existing Splunk app with minimal effort and without breaking any of your existing Splunk stack.
This page explains how to send data from Splunk forwarders and Splunk logging libraries to Axiom.
Axiom provides a Splunk HEC compatible API on your edge deployment. Any tool that sends data to a Splunk HTTP Event Collector (HEC) can send the same data to Axiom without changes to its code.
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.
Configure Splunk clients
In your Splunk forwarder or HEC client, specify the following:
- The HEC URL is
https://hec.AXIOM_DOMAIN/services/collector/event?index=DATASET_NAME. For raw text payloads, usehttps://hec.AXIOM_DOMAIN/services/collector/raw?index=DATASET_NAME. - The HEC token is your Axiom API token. The API accepts
Authorization: Splunk API_TOKEN,Authorization: Bearer API_TOKEN, and HTTP basic authentication. - Optional: If your client sets the
indexfield on events instead of in the URL, Axiom sends each event to the dataset with that name.
For the full description of the API, including envelope fields and response codes, see Send data to Axiom using the Splunk HEC API.
Examples
Send logs from JavaScript using splunk-logging
javascript
Send logs from Python using splunk_handler
python
Send logs from Go using net/http
go