Hi Atulchadha,
logcollector seems to be detecting the changes, hence the "Analizing /var/log/wazuh-kernel-check' messages, but is not reading any lines. I would try to put logcollector in debug mode, to make sure it is reading the logs.When it reads a line and tries to decode it, you get something like this:
2022/11/07 20:30:09 wazuh-logcollector[6874] read_syslog.c:104 at read_syslog(): DEBUG: Reading syslog message: 'Feb 14 12:19:04 localhost sshd[25474]:'
2022/11/07 20:30:09 wazuh-logcollector[6874] read_syslog.c:150 at read_syslog(): DEBUG: Read 1 lines from /test.log
You can put logcollector in debug mode by adding logcollector.debug=2 to /var/ossec/etc/local_internal_options.conf.
A possible cause is that you have a new empty line at the end of your logfile, when you add the new logs, that causes logcollector to not detect lines properly.
What method are you using to insert the logs? I would try with an empty logfile, restart the manager and use:
echo log-message >> file-path
This way it adds it to the end of the file in a new line, with no new empty lines in the end. If this works, you may need to check how you are injecting the logs.
I hope this helps you resolve your question. In case of any further doubt do not hesitate to ask.
Cheers,
Andrés