Send data from Fluentd to Axiom
This step-by-step guide will help you collect, aggregate, analyze, and route log files from multiple Fluentd sources into Axiom
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.
Configuring Fluentd using the HTTP output plugin
The example below shows a Fluentd configuration that sends data to Axiom using the HTTP output plugin:
Configuring Fluentd using the OpenSearch output plugin
The example below shows a Fluentd configuration that sends data to Axiom using the OpenSearch plugin:
Configure buffer interval with filter patterns
The example below shows a Fluentd configuration to hold logs in memory with specific flush intervals, size limits, and how to exclude specific logs based on patterns.
Collect and send PHP logs to Axiom
The example below shows a Fluentd configuration that sends PHP data to Axiom.
Collect and send Scala logs to Axiom
The example below shows a Fluentd configuration that sends Scala data to Axiom
Send virtual machine logs to Axiom using the HTTP output plugin
The example below shows a Fluentd configuration that sends data from your virtual machine to Axiom using the apache
source type.
The example below shows a Fluentd configuration that sends data from your virtual machine to Axiom using the nginx
source type.
Was this page helpful?