2023/01/07 00:01:33 wazuh-agent: INFO: (1904): File not available, ignoring it: 'C:\inetpub\logs\LogFiles\W3SVC1\u_ex230107.log'. |
# Force file handler reloading: close and reopen monitored files
# 0: Disabled
# 1: Enabled
logcollector.force_reload=1
# File reloading interval, in seconds, if force_reload=1 [1..86400]
# This interval must be greater or equal than vcheck_files.
logcollector.reload_interval=3600
logcollector.open_attempts = 0
I will report back tommorow if this helps.
Regards.
Domagoj
logcollector.open_attempts = 0
logcollector.open_attempts = 0
logcollector.open_attempts = 0
Hi Domagoj,
Using the given option in the agent's /var/ossec/etc/internal_options.conf,
it should eventually analyse the file, but every time it tries
until it exists, an error will show, telling you it has looked for
it but hasn't found it. This error is expected as the file doesn't
exist yet, you can see the log is from 00:09 and the file
is expected to be created at 01:00.
To test it is found at some moment, change option logcollector.debug to value 2 (No message will be shown when it is found, but there will be a message for every time it has looked previously). If it doesn't work, you could also set logcollector.open_attempts=100, or even bigger, and it will retry to open the file 100 times, once each 64 seconds, which you can change with option logcollector.vcheck_files.
Best regards,
Miguel
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/a3dec32e-da03-48bd-ae23-3ffc5f5c1e8cn%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Wazuh mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wazuh/y2De_tsy4pQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/e7222ba5-e4c6-1908-e40c-5ad017c0a827%40wazuh.com.