- yes (default): Read logs since the moment Wazuh was started
- no: Read the logs since the last bookmark (when Wazuh was stopped).
As you can see, if you configure with "no", you will not get the logs before the agent installation.
That said, there is a workaround that you can test (I don't recommend it in production environments):
- Start the agent with your log configuration. In this way, the proper bookmark will be created (folder bookmark)
- Modify the bookmark and set the value to 0 (keep in mind the file is in UTF-16)
- Set only-future-events to no
- Restart the agent
In this way, the agent will send events from the beginning of the source (bookmark = 0).
You could potentially have two issues:
- Send duplicated events
- The agent could be flooded (see leaky bucket)
I hope it helps.