Hi i am trying to move my application logs to kibana through logstash.
1.This is my logstash.conf file:
input {
file {
path => "/home/ubuntu/*"
}
}
filter {
json {
source => "message"
}
}
output {
amazon_es {
hosts => ["*****************************************"]
region => "us-east-1"
index => "stash"
#user => "elastic"
#password => "changeme"
}
}
- when i try to run the config file this what the output i get:
[WARN ] 2020-03-24 11:15:34.878 [[main]>worker1] json - Error parsing json {:source=>"message", :raw=>"[2020-03-24 11:15:33] file_db_logger.INFO: {\"Code\":\"BGDRIF947\",\"Message\":\"Total items backup today\",\"time\":1585048533,\"userId\":\"*************\",\"businessUserId\":\"**********\",\"cloudId\":1,\"domainId\":\"****\",\"additionalInfo\":\"389,395,0\"} [] []", :exception=>#<LogStash::Json::ParserError: Unexpected character ('-' (code 45)): was expecting comma to separate Array entries
kindly help me out with this