I apologize in that I may have missed the correct part in the documentation on this but have been getting nowhere so far this week.
I have a device which I believe is writing fairly simple JSON entries to a log.
Filebeat configuration:
- type: log
# Change to true to enable this input configuration.
enabled: true
# Paths that should be crawled and fetched. Glob based paths.
paths:
- /var/log/gateway*
json:
message_key: message
keys_under_root: true
And I have this on Logstash:
filter {
json {
source => "message"
target => "parsedJson"
}
}
The messages from the logs look something like:
Jun 11 10:48:56 device01 ssg: {"package":"com.bench.server.transport.http.HttpTransportModule","level":"INFO","log":{"message":"2401: Stopping HTTPS listener: Node HTTPS (2124) (#699e156f7fc4df052c4af880a521f730,v0) on port 2124"},"time":"2019-06-11T10:48:56.680-0700"}
However, I am only getting _jsonparsefailure in Kibana when viewing. I have a feeling I'm missing something simple here.