Hi All ,
i have configured logstash to use tcp protocol for give the json message.
input { tcp {
port => 9001
codec => json
type => "test-tcp-1"
}}
output {
elasticsearch {
hosts => ["127.0.0.1:9200"]
index => "logstash-%{type}-%{+YYYY.MM.dd}"
}
}
filter{
json { source => "message" }
}
The message has been received from loghstash with successfully but elasticsearch not create a index ! Why ?
Many thanks.