Describe the bug
When using MariaDB plug-in within Guardium, the reports show the source program as "MARIADB", no matter what, instead of defaulting to empty field, when no info exists in the MariaDB audit logs.
To Reproduce
Steps to reproduce the behavior on developer machine:
- Download the plug-in zip and Install it in Logstash (follow README > setup dev environment, first)
- Run Logstash with this plugin and the test configuration that resides within the plug-in's folder (see README > Run on local Logstash). This will generate an event you can test. Alternatively, run the Java code and add a unit test.
- Check the source program field within the POJO of the Logstash dummy output plugin
- sourceProgram contains "mariadb", instead of being empty.
Expected behavior
Correct source program, or if not available in audit log, empty field, as source program is not a mandatory field within the Guardium Record object.
Environment (please complete the following information):
- Product: Guardium Data Protection
- Version 11.4
Additional context
Looks like a minor fix could solve this by not filling the source program parameter here, instead of putting a constant