GoogleCloudPlatform / fluent-plugin-detect-exceptions

A fluentd plugin that scans line-oriented log streams and combines exceptions stacks into a single log entry.
Apache License 2.0
192 stars 69 forks source link

Is available to concat stack trace and previous line with error message #79

Open abhinav-vikash opened 4 years ago

abhinav-vikash commented 4 years ago

fluentd-config image

facing the issue with logs having following issues:

image

Plugin combine stacktrace in one message without error text: {"log":"\u001b[1;31m2018-04-14 08:15:30 ERROR [c3ec14179bdb0a79/c3ec14179bdb0a79] --- [nio-8080-exec-9] c.a.h.GlobalControllerAdvice.java\u001b[0;39m: User:35 Cannot to get customer link-client information \n","stream":"stdout","time":"2018-04-14T08:15:30.795970999Z"} and send two messages to elasticsearch. The first message is message with error text and the second message is stacktrace. But, I want to have only one message: error text with stacktrace. In error text I have additional information to resolve problem. Is any solution to add custom java rules to combine error text message and stacktrace message

gyoetam commented 3 years ago

duplicate of #73 , no?