Last active
July 4, 2016 01:30
-
-
Save hotakasaito/005733c445d11e4b24f0 to your computer and use it in GitHub Desktop.
fluentdからAmazon Elasticsearch ServiceにPOSTする ref: http://qiita.com/hotakasaito/items/b59c28ca032b45b9ae49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo td-agent-gem install fluent-plugin-aws-elasticsearch-service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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