Skip to content

Instantly share code, notes, and snippets.

@lozadaOmr
Last active May 17, 2016 09:18
Show Gist options
  • Save lozadaOmr/129f0cbabd18053c6e0af54e4bb2b8c4 to your computer and use it in GitHub Desktop.
Save lozadaOmr/129f0cbabd18053c6e0af54e4bb2b8c4 to your computer and use it in GitHub Desktop.
Hourly Stats Loader
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