bin/elasticsearch
bin/logstash web
bin/logstash -f s3.conf -vv
| input { | |
| s3 { | |
| bucket => "planet-ec2-data" | |
| prefix => "workers/" | |
| region_endpoint => "us-west-2" | |
| credentials => ["XXX", "YYY"] | |
| interval => 600 | |
| } | |
| #stdin { } | |
| } | |
| filter { | |
| # UsageType Operation InstanceID MyBidID MyMaxPrice MarketPrice Charge Version | |
| grok { | |
| pattern => "%{TIMESTAMP_ISO8601:timestamp}\s*UTC\s*%{NOTSPACE:UsageType}\s*%{NOTSPACE:Operation}\s*%{NOTSPACE:InstanceID}\s*%{NOTSPACE:MyBidID}\s*%{BASE10NUM:MyMaxPrice} USD\s*%{BASE10NUM:MarketPrice} USD\s*%{BASE10NUM:Charge} USD\s*1" | |
| } | |
| date { | |
| match => [ "timestamp", "yy-MM-dd HH:mm:ss" ] | |
| } | |
| } | |
| output { | |
| elasticsearch { host => localhost } | |
| stdout { codec => rubydebug } | |
| } |