Restore bookmark storage in Windows Eventchannel collector#3485
Merged
Restore bookmark storage in Windows Eventchannel collector#3485
Conversation
Allow and apply both values "yes" and "no".
Member
Author
|
The configuration parser code (localfile-config.c:92) suggests that setting <only-future-events>no</only-future-events>On the other hand, the current documentation does not state the default value of this option, that is |
Member
Author
|
PR wazuh/wazuh-documentation#1273 documents the default option of |
snaow
suggested changes
Jun 14, 2019
Member
snaow
left a comment
There was a problem hiding this comment.
Please, set the only-future-events option to default yes.
It won't appear on the default ossec.conf template.
Remember to update Wazuh docs.
Thanks.
snaow
approved these changes
Jun 17, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fix
Since that function was removed accidentally in Wazuh 3.8.0, the solution is copying that function and its call exactly from v3.7.2:
update_bookmark(): https://github.com/wazuh/wazuh/blob/v3.7.2/src/logcollector/read_win_event_channel.c#L361-L468send_channel_event(): https://github.com/wazuh/wazuh/blob/v3.7.2/src/logcollector/read_win_event_channel.c#L669-L671Tests
Functional requirement test
Settings
Steps
Expected result
The result of those actions depend on the option
<only-future-events>: the log-off and log-in alerts must appear in the manager if and only if<only-future-events>isno.Notes
Since we have only copied the lost code back into the Eventchannel collector, the bookmarking feature shall work wherever it worked until v3.7.2.
Standard tests