Hello Felipe,
this is Fran Gonzalez, from Wazuh support team, and I'll be pleased to shed some light on your questions.
If I'm not wrong (please correct me if I am), your question is about why is that alert triggered, and where comes that information from.
If you take a look at your ossec.conf file (Wazuh configuration file, present in /var/ossec/etc/ossec.conf), you'll see the following lines (and some similar ones):
<localfile>
<log_format>syslog</log_format>
<location>/var/log/messages</location>
</localfile>
<localfile>
<log_format>syslog</log_format>
<location>/var/log/secure</location>
</localfile>
<localfile>
<log_format>syslog</log_format>
<location>/var/log/maillog</location>
</localfile>
This means that, by default, the daemon ossec-logcollector monitors these files in order to read the log messages contained in them and sends it to ossec-analysisd to analyze them and compare with the existent rules/decoders to see if it triggers an alert. You can check this if you take a look at the logs generated by Wazuh when is started /var/ossec/logs/ossec.log:
...
2018/08/24 17:34:20 ossec-logcollector: INFO: (1950): Analyzing file: '/var/log/messages'.
2018/08/24 17:34:20 ossec-logcollector: INFO: (1950): Analyzing file: '/var/log/secure'.
2018/08/24 17:34:20 ossec-logcollector: INFO: (1950): Analyzing file: '/var/log/maillog'.
...
To ensure that these logs will be read no matter if any of these files are rotated or reduced, the inode is monitored: When a file is rotated, the inode changes, so ossec-logcollector will take note of this new inode to keep reading the new logs stored in the "new" file.
When this inode change is detected, ossec-logcollector itself will send a message directly to ossec-analisysd, as you marked in your screenshot: ossec: File rotated (inode changed): '/var/log/secure'.
This message is sent directly from one daemon to another, so it's not being dumped in any log file and the location appears to be ossec-logcollector.
I hope I answered your question, and please don't hesitate to reply to this thread or open a new one if you have further questions.
Best regards,
Fran G.