[MXS-4353] /maxscale/logs/data endpoint doesn't filter syslog contents correctly Created: 2022-10-14  Updated: 2022-10-17  Resolved: 2022-10-17

Status: Closed
Project: MariaDB MaxScale
Component/s: REST-API
Affects Version/s: 6.4.2, 22.08.1
Fix Version/s: 6.4.4, 22.08.2

Type: Bug Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None


 Description   

The contents of the log are not filtered correctly and the response payload may contain either messages from older MaxScale versions with a different log message structure or from the audit daemon if MaxScale has crashed or hits a debug assertion.

Currently the matching is done by filtering with _COMM=maxscale but this will also include any auditing messages logged for the MaxScale process. The correct thing would be to also filter on the SYSLOG_IDENTIFIER field to make sure only matching messages are logged. Matching both _COMM and SYSLOG_IDENTIGIER avoids the problem where something other than MaxScale is using the maxscale syslog identifier.


Generated at Thu Feb 08 04:28:01 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.