Hi Ryan.
Thank you for using Wazuh!
The error that you are having surely is because the agent buffer is getting flooded. This means that the module in charge of collecting logs is generating more events than what the agent can deliver to the manager.
You can increase the value of the events queue by modifying the
client_buffer section of the agent
ossec.conf. i.e.
<client_buffer>
<disabled>no</disabled>
<queue_size>100000</queue_size>
<events_per_second>500</events_per_second>
</client_buffer>
If the queue is still getting flooded (Logs like "Agent buffer is full" are still visible), you can even disable the client_buffer with
<client_buffer>
<disabled>yes</disabled>
<queue_size>100000</queue_size>
<events_per_second>500</events_per_second>
</client_buffer>
but, as this is a manager antiflooding mechanism this last option isn´t recommended, otherwise, an agent can generate as many events to flood the manager with them, which will lead to a similar error on the manager side.
On the other hand, the log ERROR "Large message size from file" must be related to a unique log line that is so big that can´t be dispatched to the manager. It should be a line bigger than 65,279 bytes.
The complete log should look something like "Large message size from file 'FILE' (length = LENGTH(...)"
- Can you share with me ossec.log to identify if these two errors are isolated?
- Also, can you check in the file of "Large message size from file 'FILE' (length = LENGTH(...)" if there is, in fact, a log line as big as it is reported?
I suggest you try the first approach of increasing the buffer queue size first, and then, try to reproduce the issue again.
If you have further doubts, please don´t hesitate to ask. And let me know how the tests go.
Best regards.