General log forwarding via Fluentd
Deliver raw logs from files to S3 using Fluentd
Last updated
Was this helpful?
Deliver raw logs from files to S3 using Fluentd
Last updated
Was this helpful?
Consider using instead of Fluentd to forward logs to Panther. Fluent Bit is easier to set up and less resource intensive than Fluentd.
This is a guide for delivering raw logs from files to Panther via S3 and Fluentd. The Fluentd configurations below do not pre-process the data, instead they forward the contents of the file(s) as-is. This guide will walk you through how to do the following:
Install Fluentd on your device.
Edit your Fluentd configuration via an AWS Firehose or an S3 plugin.
Launch and verify your Fluentd instance is running correctly.
An S3 bucket or AWS Firehose is required. If you need to create either of these resources, please see the Getting Started with Fluentd guide. You can also adapt the guide below to fit your needs if you already have the resources provisioned.
Follow the for the server environment you want to collect syslog messages from. Once installed, you may proceed with the terminal configurations below to properly configure Fluentd.
Be aware of the below plugin configurations with Fluentd:
The <source>
section uses the tail plugin to read from a log file.
The <parse>
section instructs the Fluentd to not perform any parsing with @type none
.
Within the match format
section, the single_value
type is used.
The combination of none
parsing and single_value
format tells Fluentd to output the data as-is.
The Firehose plugin for Fluentd must be installed to leverage the @type kinesis plugin
.
Edit the Fluentd configuration located at /etc/td-agent/td-agent.conf
with the configuration below. Make sure to update the region
, delivery_stream_name
, and role_arn
:
Edit the Fluentd configuration located at /etc/td-agent/td-agent.conf,
with the configuration below. Make sure to update the s3_bucket
, s3_region
, aws_key_id
, and aws_sec_key
:
After configuring Fluentd, run the below command in your terminal:
To verify that Fluentd is running correctly, run the below command in your terminal:
Install the following with the command below.
If systemctl
is not available in your Fluentd environment, see the .