-
Notifications
You must be signed in to change notification settings - Fork 69
Description
Hi,
I have django in a gke pod emitting exceptions that do not get detected by this plugin. The plugin is active on my cluster. The entire exception comes into log viewer as separate lines, and error reporting view does not pick up the error. This leads me to think the exception is not picked up.
The start line of the log looks as follows:
textPayload: "[Wed Sep 11 10:46:24.519502 2019] [wsgi:error] [pid 8] [client 10.28.2.1:42946] Traceback (most recent call last):, referer: https://x.x.x.x/login?next=/
Looking at the python rules (I don't know ruby) at first glance it looked like this line has the ^$ markers to match line start and end.
https://github.com/GoogleCloudPlatform/fluent-plugin-detect-exceptions/blob/master/lib/fluent/plugin/exception_detector.rb#L81
Since the sample log has a bunch of things on the line before the "Traceback" word, the regex is not matching the line. Django also puts the refer at the end of the line, so $ in the regex also stops the match.
I can provide any other info needed as well. Any assistance appreciated.