You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When i use the multiline parser the matched log field is escaped and cannot be parsed furthermore as a struct by the docker parser. I tried escaped, escaped_utf8, json nothing works. Because of that kubernetes filter cannot merge the log to the root level of the struct. Is there something that i am missing here?
(this is not longer an issue, but posting our new Multiline updates)
Multiline Update
As part of Fluent Bit v1.8, we have released a new Multiline core functionality. This new big feature allows you to configure new [MULTILINE_PARSER]s that support multi formats/auto-detection, new multiline mode on Tail plugin, and also on v1.8.2 (to be released on July 20th, 2021) a new Multiline Filter.
For now, you can take at the following documentation resources:
Bug Report
Describe the bug
When i use the multiline parser the matched log field is escaped and cannot be parsed furthermore as a struct by the docker parser. I tried escaped, escaped_utf8, json nothing works. Because of that kubernetes filter cannot merge the log to the root level of the struct. Is there something that i am missing here?
To Reproduce
https://rubular.com/r/0vjruc4o6AG8la
Expected behavior
Named regex must return a JSON not an escaped string.
JSON Parser should be able to parse the matched string.
Your Environment
Additional context
Generated log:
{"date":1572435032.302837,"log":"{\\\"@timestamp\\\":\\\"2019-10-30T09:00:55.591Z\\\",\\\"application\\\":\\\"ADADADADADA\\\",\\\"build_number\\\":\\\"1.1.25\\\",\\\"build_timestamp\\\":\\\"20191025-105856\\\",\\\"certificate_name\\\":\\\"\\\",\\\"correlation_id\\\":\\\"ADADADADADADADA\\\",\\\"cte\\\":{\\\"category\\\":\\\"External\\\",\\\"subcategory\\\":\\\"Request\\\"},\\\"data_version\\\":2,\\\"description\\\":\\\"\\\",\\\"endpoint\\\":\\\"/v1/ADADDADAA\\\",\\\"host\\\":\\\"ADADADADADAAD\\\",\\\"level\\\":\\\"TRACE\\\",\\\"login_id\\\":\\\"ADADADADADADAD\\\",\\\"method\\\":\\\"ADADADADADAD\\\",\\\"name\\\":\\\"v1/ADADDADAD\\\",\\\"request_obj\\\":{\\\"body\\\":\\\"\\\",\\\"method\\\":\\\"v1/ADADADADADAD\\\",\\\"path\\\":\\\"ADADADADADA/v1/ADADADADA\\\",\\\"query\\\":\\\"\\\"},\\\"roletype\\\":\\\"airtf\\\",\\\"type\\\":\\\"log\\\"}\\n","type":"log","data_version":"2","roletype":"k8s","application":"kubernetes","cluster":"XXXXX"}
The text was updated successfully, but these errors were encountered: