Hi all
i have a json file and im trying to parse this thru logstash and into elasticsearch and kibana.
I have the following config.
input {
file {
path => "/appdir/logs/batch-timing.json"
type => "dbatch" } }
filter {
if [type] == "dbatch" {
json {
source => "message" } }
output {
if [type] == "dbatch" {
elasticsearch {
index => "app-dbatch"
hosts => [ "11.111.21.374:9200" ]
user => "logstash-USER"
password => "PASS123" } } }
i tried to parse in the json file but it doesnt read it so i added a new line after the json message, and kibana only shows the new line which results in a jsonparsefailure. i then proceeded to append the same json message into the log file but still kibana does not show anything except the new line.
I think something is wrong with the way im configuring the output?
Help would be greatly appreciated.
thanks