Hi Jacky,
First of all, sorry for the late response. Concerning your question, Wazuh ensure that the Log File cannot be altered by anyone by performing Log Analysis and File Integrity Checking. In order to configure Log Analysis to monitor a specific file on the server, we may add the following lines to ossec.conf:
<localfile>
<location>/file/path/to/be/monitored</location>
<log_format>syslog</log_format>
</localfile>
On the other hand, to configure File Integrity Checking (in order to detect changes in a desired file), we may add the next lines to the agent.conf:
<syscheck>
<directories check_all="yes" >/file/path/to/detect/changes</directories>
</syscheck>
I will leave you some useful links:
Do not hesitate to contact if you have any doubt!