I have an issue. My winlogbeat sends duplicate and even in one event I found x150 same messages in graylog where in windows event logs there is only 1 message. Anyone is facing the same issue?
Three related error messages (graylog side for beats input):
WARN [AbstractTcpTransport] TLS key file or certificate file does not exist, creating a self-signed certificate for input [Beats/59ba13e50f1d6c6ef11fdac4].
INFO [AbstractTcpTransport] Enabled TLS for input [Beats/59ba13e50f1d6c6ef11fdac4]. key-file="/tmp/keyutil_GraylogIP:null_5406919365084177135.key" cert-file="/tmp/keyutil_GraylogIP:null_936516737847671089.crt"
WARN [NettyTransport] receiveBufferSize (SO_RCVBUF) for input BeatsInput{title=Windows Events, type=org.graylog.plugins.beats.BeatsInput, nodeId=c6457b59-c9e9-4557-8690-79ec22e7f5bd} should be 1048576 but is 212992.
Winglogbeat settings:
winlogbeat.event_logs:
name: ForwardedEvents
ignore_older: 24h
output.logstash: # used by Graylog
hosts: [âgraylogIP:5044â]
ssl.enabled: true
ssl.verification_mode: none
compression_level: 4
worker: 2
I am confident that only 1 winlogbeat instance is running. Also I have double checked it now - 1 service enabled and 1 process is running. The point is that not all messages gets duplicated. Some does not, some gets quadrupled.
I have only default index with no streams associated to windows events. I had the same experience with nxlog.
Testing a workaround, played around the settings on winlogbeat. Seems like as if it has fixed the issue. Added batch read size and bulk max size. I have a suspicion that batch read size by default is low and is not coping well with forwardedevents which are not very structure by nature. Will update once more time will pass.
winlogbeat.event_logs:
name: ForwardedEvents
batch_read_size: 512
output.logstash: # used by Graylog
hosts: [âGraylogIP:5044â]
ssl.enabled: true
ssl.verification_mode: none
compression_level: 3
bulk_max_size: 512
Same issue persists, now I have noticed something else. There can be 100x events with the same âwinlogbeat_record_numberâ however different graylog message code. All those 100x messages are identical. There is a bug wither in winlogbeat or graylog beats plugin.
Do you have a way to see metrics/debug logs of beats plugin in graylog? I need to debug this in some way as on winlogbeat side seems all good according to logs.
when you go to âSystem > Nodesâ you are able to access all metrics of each node. So you are able to find the metrics of you input and so you are able to write them somewhere else.