Ingest using FluentD
FluentD
FluentD is an open-source log collector that allows you to collect, aggregate, process, analyze and route log files.
With FluentD you can collect logs from multiple sources and ship it instantly into Axiom
Installation
Visit the FluentD download page to install FluentD on your system.
You'd need to specify the org-id header if you are using Personal Token, it's best to use an API Token to avoid the need to specify the org-id header.
Learn more about API and Personal Token
Configuration
FluentD lifecycle consist of five different components which are:
- Setup: Configure your
fluent.conf
file. - Inputs: Define your input listeners.
- Filters: Create a rule to allow or disallow an event.
- Matches: Send output to Axiom when input data match and pair specific data from your data input within your configuration.
- Labels: Groups filters and simplifies tag handling.
When setting up fluentD, the configuration file .conf
is used to connect its components.
The example below shows a FluentD configuration that sends data to Axiom using the http output plugin:
<source>@type forwardport 24224</source><match *.**>@type httpendpoint https://cloud.axiom.co/api/v1/datasets/$DATASET_NAME/ingest# Authorixation Bearer should be an ingest tokenheaders {"Authorization": "Bearer <your-token>"}json_array falseopen_timeout 3<format>@type json</format><buffer>flush_interval 5s</buffer></match>