This is my logstash code
input {
file {
path => "C:/Users/Rajaraman/Documents/logstashfiles/demo.txt"
start_position => "beginning"
}
}
filter {}
output {
elasticsearch {
hosts => ["localhost:9200"]
}
}
Logstash is running fine but index not created in elastic search
To check if your logstash is doing anything do:
$ curl -XGET 'localhost:9600/_node/stats/events?pretty'
{
"events" : {
"in" : 293658,
"filtered" : 293658,
"out" : 293658,
"duration_in_millis" : 2324391,
"queue_push_duration_in_millis" : 343816
}