Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconnect time does not work when system time changed #8580

Open
Rebits opened this issue May 7, 2021 · 0 comments
Open

Reconnect time does not work when system time changed #8580

Rebits opened this issue May 7, 2021 · 0 comments
Labels
module/logcollector qa_known Issues that are already known by the QA team type/bug Something isn't working type/test

Comments

@Rebits
Copy link
Member

Rebits commented May 7, 2021

Wazuh version Component Install type Install method Platform
4.3.0 Logcollector Manager/Agent Packages Windows

Reconnect time option does not work correctly when system time changed. If Windows event log service is down and Wazuh is monitoring a channel with a specified reconnect_time, this will not be reconnected if system time changed making Wazuh always ignore that channel

How to replicate:

  • Set the following configuration:
  <localfile>
    <location>System</location>
    <log_format>eventchannel</log_format>
    <reconnect_time>1d</reconnect_time>
  </localfile>
  • Restart wazuh agent
  • Disable Windows event log service:
sc config eventlog start= disabled
net stop eventlog /y
  • Enable again Windows event log service:
sc config eventlog start= auto
net start eventlog /y
  • Check that Wazuh does not reconnect to the event log specified with reconnect_time

Video

logcollector_reconnect_age_bug.mp4
@mauromalara mauromalara added the qa_known Issues that are already known by the QA team label Aug 31, 2023
This was referenced Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/logcollector qa_known Issues that are already known by the QA team type/bug Something isn't working type/test
Projects
None yet
Development

No branches or pull requests

2 participants