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 ingest token to avoid the need to specify the org-id header.

Learn more about ingest 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 forward
port 24224
</source>
<match *.**>
@type http
endpoint https://cloud.axiom.co/api/v1/datasets/$DATASET_NAME/ingest
# Authorixation Bearer should be an ingest token
headers {"Authorization": "Bearer <your-token>"}
json_array false
open_timeout 3
<format>
@type json
</format>
<buffer>
flush_interval 5s
</buffer>
</match>