Ingest using Logstash

NOTE: Currently, you can only ship logs to Axiom using the Logstash versions 7.12 and lower.


Logstash is an open source log aggregation, transformation tool and server-side data processing pipeline that ingests data from a multitude of sources simultaneously. With Logstash, you can collect, parse, ingest and store logs for future use on Axiom.

Logstash works as a Data pipeline tool with Axiom, where from one end the data is input from your servers and system and from the other end Axiom takes out the data and converts it into useful information.

It can read data from various input sources , filter data for the specified configuration and eventually stores the data. Logstash sits between your data and where you want to store it.


Visit the Logstash download page to install Logstash on your system.

You'd need to specify the org-id header if you are using personal token, it's best to use an ingest token to avoid the need to specify the org-id header.

Learn more about ingest and personal token


To configure the logstash.conf file, you have to define the source, set the rules to format your data and also set Axiom as the destination where the data will be forwarded to.

The Logstash Pipeline has three stages:

  • Input stage: which generates the event & Ingest Data of all volumes, Sizes, forms and Sources
  • Filter stage: modifies the event as you specify in the filter component
  • Output stage: shifts and sends the event into Axiom.

In logstash.conf, configure your logstash pipeline to collect and send data logs to Axiom

The example below shows Logstash configuration that sends data to Axiom:

command => "date"
interval => "1"
hosts => ["$DATASET_NAME/elastic"]
# api_key should be your ingest token
api_key => 'axiom:$TOKEN'
ssl => true