Hi ,
I worked with logstash-1.4.2 and now I'm upgrading to logstash 2.2.
My conf file in version 1.4.2 is:
input {
file{
path => ["/tmp/31.json"]
type => "json"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter{
json {
source => "message"
}
}
filter{
date {
match => ["startTime", "UNIX_MS"]
target => "@timestamp"
}
}
output {
stdout {
codec => rubydebug
}
elasticsearch {
host => "ilautomation"
protocol => "http"
index => "index_client"
}
}
In logstash 2.2 I can run this file like this:
input {
file{
path => ["/tmp/31.json"]
type => "json"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter{
json {
source => "message"
}
}
filter{
date {
match => ["startTime", "UNIX_MS"]
target => "@timestamp"
}
}
output {
stdout {
codec => rubydebug
}
elasticsearch {
}
How I can define to which index to upload my data ?
BR,
Chen