Windows Event Logs to S3 via Fluentd (Legacy)
The process outlined in this guide is no longer the recommended approach to onboarding Windows Event Logs. Instead, follow the instructions in Windows Event Logs, which leverage Fluent Bit. The Fluent Bit setup process is less complex than Fluentd, and requires no additional infrastructure.
Overview
This guide provides a method to deliver Windows Event Logs to S3 using Fluentd. There are two different pipeline flows: via an AWS Firehose delivery stream and directly to an AWS S3 bucket.
Prerequisites
This guide assumes that an S3 bucket or Firehose has already been created. If you need to create either of these resources, please see the Fluentd Onboarding Guide. If you have already provisioned the resources, you can adapt the guide below to fit your needs.
Setup Fluentd
Step 1. Install Fluentd
Follow the Fluentd installation instructions for the Windows server from which you want to collect Windows Event Logs. See the installation instructions to make sure that Fluentd is running as a service.
Step 2. Edit Fluentd Configuration
Edit the Fluentd configuration with the below configuration. This will configure Fluentd to use the windows_eventlog2
plugin to read the events and output to S3. Update the s3_bucket
, s3_region
, aws_key_id
, and aws_sec_key
in the configuration below:
You can read more about the windows_eventlog2
plugin here.
Step 3. Start Fluentd
From the command prompt, start or restart the service with the below commands. You may need to stop/start the service if it had been previously running.
Check to make sure the service is running with the following command:
Expected output of the service running:
You can check for Fluentd runtime logs under C:\opt\td-agent\td-agent.log
To troubleshoot, you can also run td-agent from the command line and review the realtime output for issues via C:\opt\td-agent\bin\td-agent -vv
. Stop the Fluentd service before running it manually.
Step 4. Verify Logging
After a few minutes have passed, verify that events are being logged to the S3 bucket. Logs should be showing up under the winevent/
prefix within the bucket.
Panther Console
Step 1. Create a Custom Schema
Go to Configure > Schemas. Click +New Schema then enter the values below into the schema fields:
Name: Custom.WindowsEventLogs2 Description: Windows Event Logs for Application, Security, System
The above schema was generated using logs from the Fluentd source directive config provided earlier in this guide.
Step 2. Onboard the S3 bucket
Follow the S3 source onboarding documentation and use the S3 Bucket used in the previous setup.
Select the log type Custom.WindowsEventLogs2
and prefix winevent/
in the onboarding steps. After completing the bucket onboarding, data should now be flowing into Panther!
Last updated