Skip to content

Instantly share code, notes, and snippets.

@hotakasaito
Last active July 4, 2016 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hotakasaito/005733c445d11e4b24f0 to your computer and use it in GitHub Desktop.
Save hotakasaito/005733c445d11e4b24f0 to your computer and use it in GitHub Desktop.
fluentdからAmazon Elasticsearch ServiceにPOSTする ref: http://qiita.com/hotakasaito/items/b59c28ca032b45b9ae49
sudo td-agent-gem install fluent-plugin-aws-elasticsearch-service
<match **.**>
type copy
<store>
type aws-elasticsearch-service
type_name access_log
logstash_format true
include_tag_key true
tag_key @log_name
flush_interval 10s
<endpoint>
url https://search-***.ap-northeast-1.es.amazonaws.com
region ap-northeast-1
access_key_id ***
secret_access_key ***
</endpoint>
</store>
</match>
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"arn:aws:iam::***:user/***"
]
},
"Action": "es:*",
"Resource": "arn:aws:es:ap-northeast-1:***:domain/***/*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment