Good idea i've tried it. I've upgraded my wazuh manager and my agent in 3.9 but i'm facing an issue, the log format 'eventchannel' seems to not send logs with the same structure than Agents in 3.2, example:
2019/05/07 13:51:43 ossec-agent[9524] win_agent.c:498 at SendMSG(): DEBUG: Sending message to server: '{"Message":"Source: test, Line: 50","Event":"<Event xmlns='
http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='test'/><EventID Qualifiers='0'>0</EventID><Level>4</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2019-05-07T11:51:43.000000000Z'/><EventRecordID>104486783</EventRecordID><Channel>test</Channel><Computer>computer</Computer><Security/></System><EventData><Data>Source: test, Line: 500 Data change event</Data></EventDaa></Event>"}'
Wazuh Agent 3.2.* is sending:
2019/05/07 13:43:08 ossec-agent: DEBUG: Sending message to server: '2019 May 07 13:40:57 WinEvtLog: test: INFORMATION(0): test: (no user): no domain: domain: Source: test.ReadData, Line: 543 Data read issued for group 12'
In both case i'm using this:
<localfile>
<location>test</location>
<log_format>eventchannel</log_format>
</localfile>
So the 3.9 is sending something with a structure like JSON and the 3.2 is sending just a line of text. My decoders and rules are made for analyzing logs of 3.2, how can i use 3.9 with sending 3.2's type of logs ?
Thank you