in_winlog: increase the buffer size for ReadEventLogW() (#3028)
in_winlog: increase the buffer size for ReadEventLogW() (#3028)

It is possible that a Windows event can contain data large
than 32kb. On such occations, in_winlog fails on `ReadEventLogW()`
with error code 122.

Fix that issue by expanding the event buffer to 512kb. This is
the maximum size allowed for Event Log API, so the bug should
never occur again with this patch applied.

Signed-off-by: Fujimoto Seiji <ef879192bb1e41d519c82cf76440dc8e9a530806@ceptord.net>
fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit