I’m looking for help for an issue I have with Logsatsh 1.5.4. I’m using Logstash to read a number of log files from various Java services. The filenames are like this:
I’m using the following input:
input {
file {
type => "mos-service"
path => [ "/opt/mos/logs/.log" ]
codec => multiline {
pattern => "(^\d+\serror)|(^.+Exception: .+)|(^\s+at .+)|(^\s+... \d+ more)|(^\sCaused by:.+)"
what => "previous"
}
}
}
The problem is that when I query the data using Kibana, the "path" field does not relate to the path of the input file. For example, I get messages relating to DocumentGeneration with a path of “AvailabilityAndFulfilment.log”. I’ve checked the logs and all entries are in the correct files. I need to use multiline as some entries contain Java stack traces.
I would like to attempt to reproduce this issue, as this is a fairly common configuration. It is always reproducible? How often is the path incorrect? Only on stack traces / multiline ?
I performed a test using 3 separate catalina.out files, and the path was correct in each of the ~7000 events (was not able to reproduce).
Are you able to provide me with some sample input via S3 or Dropbox? If so, you can private message me the URL.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.