Last active
May 17, 2016 09:18
-
-
Save lozadaOmr/129f0cbabd18053c6e0af54e4bb2b8c4 to your computer and use it in GitHub Desktop.
Hourly Stats Loader
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
input { | |
file { | |
path => "/data/hourly_stats/*.csv" | |
type => "hourly-stats" | |
start_position => "beginning" | |
} | |
} | |
filter { | |
csv { | |
columns => ["date", "start", "end", "success","error"] | |
separator => "," | |
} | |
} | |
output { | |
elasticsearch { | |
action => "index" | |
hosts => ["localhost:9200"] | |
index => "hourlystats-%{+YYYY.MM.dd}" | |
workers => 4 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment