You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Wazuh mailing list
Hai all,
I have been trying to fetch Mysql error logs and Mysql query to show it on my wazuh dashboard. I added the location (/var/log/mysql) of the logs created in the ossec.config in both server and agent. Then also the issue is not fixed.Please help me out. Thanks in advance.
Cedrick Foko
unread,
Feb 16, 2023, 2:26:28 AM2/16/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Wazuh mailing list
Hi Muhammad,
Thank you for using Wazuh!
I'll be glad to help you with this.
You don't have to add the location (var/log/mysql) in the server, but just in the agent configuration. More information about log data collection here:
How it works - Log data collection · Wazuh documentation Make sure to add the location of your log file, not a directory.
To generate Mysql query logs, you should enable general logging in mysql using the following command: set global general_log='on';
Mysql query logs will be saved in a log file in /var/lib/mysql directory (the file name can change depending on the system).
To make sure your logs are sent to the manager, you need to enable log_all option in manager's ossec.conf file and restart your wazuh-manager service: systemctl restart wazuh-manager Then check mysql logs in your manager's /var/ossec/logs/archives/archives.log file.
Make sure to disable the log_all option in your manager's ossec.conf file at the end of debugging otherwise, it could cause a lot of disk usage on the manager.