An open API service indexing awesome lists of open source software.

https://github.com/blend/fluent-plugin-cloudtrail

Fluentd input plugin for AWS CloudTrail
https://github.com/blend/fluent-plugin-cloudtrail

Last synced: 8 months ago
JSON representation

Fluentd input plugin for AWS CloudTrail

Awesome Lists containing this project

README

          

# fluent-plugin-cloudtrail

*Deprecated: Consider using fluent-plugin-s3.*

Fluentd input plugin for AWS CloudTrail

## Install

### RubyGems

```
$ gem install fluent-plugin-cloudtrail
```

### td-agent

```
$ td-agent-gem install fluent-plugin-cloudtrail
```

## Example config

```
# Get events from CloudTrail

type cloudtrail
sqs_url
role_arn
tag cloudtrail

# Filter CloudTrail logs

type grep
regexp1 eventSource ^signin\.amazonaws\.com$

# Store CloudTrail data in Elasticsearch

@type copy

@type elasticsearch
hosts https://:443/
type_name cloudtrail
include_tag_key true
tag_key @log_name
logstash_format true
flush_interval 10s
time_key eventTime


@type stdout

```

## IAM Policy

```
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"sqs:GetQueueUrl",
"sqs:ReceiveMessage",
"sqs:DeleteMessage"
],
"Resource": "arn:aws:sqs:us-east-1:123456789012:cloudtrail-sqs-queue-name",
"Effect": "Allow",
"Sid": "AllowReadSqs"
},
{
"Action": [
"s3:GetObject"
],
"Resource": "arn:aws:s3:::cloudtrail-bucket-name/*",
"Effect": "Allow",
"Sid": "AllowReadS3Objects"
}
]
}
```