I was searching for a pluguin that can match a message every time that read ^%{LOGLEVEL} %{TIMESTAMP_ISO8601}. I tried multiline pluguin but it dosn't worked for me, i think is because it needs a pattern in every line of the log. Any ideas???
Sorry for my english level and thanks for your time.
Oh well, I misunderstood it. I thought that the path referred to the origin of the logs. Now i have and the logs arrive:
path => "/home/administrator/foo.txt"
sincedb_path => "/dev/null"
but the messages keep coming apart and the multiline codec dont work. I don't know if is important but the logstash also recive Winlogbeat messages to.
I raise a more complete example (the line starts at the log level). I hope you can help me.
ERROR 2019-06-29 09:36:42,548 [pool-2-thread-975] com.mirth.connect.server.userutil.MessageObject: The messageObject.getRawData() method is deprecated and will soon be removed. Please use connectorMessage.getRawData() instead.
ERROR 2019-06-29 09:36:42,548 [pool-2-thread-975] com.mirth.connect.server.userutil.ResponseFactory: The getSuccessResponse(message) method is deprecated and will soon be removed. Please use getSentResponse(message) instead.
ERROR 2019-06-29 09:39:17,620 [pool-2-thread-985] transformer: TypeError: Cannot read property "CX.1" from undefined
ERROR 2019-06-29 09:39:18,937 [pool-2-thread-975] com.mirth.connect.server.userutil.ResponseFactory: The getSuccessResponse(message) method is deprecated and will soon be removed. Please use getSentResponse(message) instead.
ERROR 2019-06-29 09:39:19,844 [pool-2-thread-975] com.mirth.connect.server.controllers.DonkeyEngineController: Could not find channel to route to: 1cf4c805-3cfc-4676-3e93-8b39b2d6464567
com.mirth.connect.donkey.server.channel.ChannelException
at com.mirth.connect.server.controllers.DonkeyEngineController.dispatchRawMessage(DonkeyEngineController.java:511)
at com.mirth.connect.server.userutil.VMRouter.routeMessageByChannelId(VMRouter.java:164)
at com.mirth.connect.server.userutil.VMRouter.routeMessageByChannelId(VMRouter.java:149)
at com.mirth.connect.server.transformers.JavaScriptResponseTransformer$ResponseTransformerTask.call(JavaScriptResponseTransformer.java:110)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
ERROR 2019-06-29 09:39:19,844 [pool-2-thread-975] com.mirth.connect.server.userutil.VMRouter: Error routing message to channel id: 1cf4c80f-3cfc-4486-8e93-8b39b2d65313123b537
com.mirth.connect.donkey.server.channel.ChannelException
You have left something out. With that input, and that multiline codec I get
"message" => "ERROR 2019-06-29 09:36:42,548 [pool-2-thread-975] com.mirth.connect.server.userutil.MessageObject: The messageObject.getRawData() method is deprecated and will soon be removed. Please use connectorMessage.getRawData() instead.",
"message" => "ERROR 2019-06-29 09:36:42,548 [pool-2-thread-975] com.mirth.connect.server.userutil.ResponseFactory: The getSuccessResponse(message) method is deprecated and will soon be removed. Please use getSentResponse(message) instead.",
"message" => "ERROR 2019-06-29 09:39:17,620 [pool-2-thread-985] transformer: TypeError: Cannot read property \"CX.1\" from undefined",
"message" => "ERROR 2019-06-29 09:39:18,937 [pool-2-thread-975] com.mirth.connect.server.userutil.ResponseFactory: The getSuccessResponse(message) method is deprecated and will soon be removed. Please use getSentResponse(message) instead.",
"message" => "ERROR 2019-06-29 09:39:19,844 [pool-2-thread-975] com.mirth.connect.server.controllers.DonkeyEngineController: Could not find channel to route to: 1cf4c805-3cfc-4676-3e93-8b39b2d6464567\ncom.mirth.connect.donkey.server.channel.ChannelException\n at com.mirth.connect.server.controllers.DonkeyEngineController.dispatchRawMessage(DonkeyEngineController.java:511)\n at com.mirth.connect.server.userutil.VMRouter.routeMessageByChannelId(VMRouter.java:164)\n at com.mirth.connect.server.userutil.VMRouter.routeMessageByChannelId(VMRouter.java:149)\n at com.mirth.connect.server.transformers.JavaScriptResponseTransformer$ResponseTransformerTask.call(JavaScriptResponseTransformer.java:110)\n at java.util.concurrent.FutureTask.run(Unknown Source)\n at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\n at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\n at java.lang.Thread.run(Unknown Source)",
Which means the multiline codec works if the messages have the format that you say they do.
I'm really trying to find my fault but I do not see it, I pass the filter again in case you see it. Can it be a filebeat problem? Can the filter fail with the logs of other servers? Thank you for your answers
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.