Hi Brandon!
I got it. I am sorry I misunderstood you.
The wazuh-regex tool is used to test regular expressions against log messages.
I tested in a lab environment.
Example:
[root@wazuh-manager-master-0 /]# /var/ossec/bin/wazuh-regex '^(\d\d\d\d-\d\d-\d\d)'
2023-04-26T15:37:25.115608Z 21 Query SELECT * FROM users where username='' or 123=123 -- ' and password='a'
+OSRegex_Execute: 2023-04-26T15:37:25.115608Z 21 Query SELECT * FROM users where username='' or 123=123 -- ' and password='a'
-Substring: 2023-04-26
+OS_Regex : 2023-04-26T15:37:25.115608Z 21 Query SELECT * FROM users where username='' or 123=123 -- ' and password='a'
The tool will output whether the regular expression matches the log message or not.