Unable to push data from file to elastic search

639 views Asked by At

I am trying to read a son file data and visualize it in Kibana.The following is my stack.

read json file --> logstash --> elastic search -> Kibana (UI)

I tried the following simple configuration and it works fine till it reaches kibana.

input { stdin { } }
output {
elasticsearch { host => localhost }
}

When I tried to read the data from file and push it to elastic.I am not able to see the output .

input {
stdin {
type => "stdin-type"
}

file {
type => "jsonlog"

# Wildcards work, here :)
path => [ "/Users/path/logstash-1.5.0/sample.json" ]
codec => json
}
}
output {
stdout { }
elasticsearch { embedded => true }
}

Output : It says "logstash started".But I could not see the results in elastic nor the stdout

Jun 10, 2015 4:32:10 PM org.elasticsearch.node.internal.InternalNode start
INFO: [logstash-MacBook-Pro.local-12298-9782] started
Logstash startup completed

Software Version :

Logstash -> 1.5.0 Elasticsearch -> 1.5.2

Thanks in advance !

0

There are 0 answers