We recently upgraded from 2.5 to 3.0.2
We have four inputs configured based on Syslog UDP, AWS CloudTrail Input, Beats, and Beats (deprecated)
We have no extractors configured for any of these. We are getting a message identical to that below every few seconds. Can anyone tell me how to dig further into what is generating these errors?
{“type”:“mapper_parsing_exception”,“reason”:“failed to parse [level]”,“caused_by”:{“type”:“number_format_exception”,“reason”:“For input string: “Information””}}
no - the only I can tell that you might want to rotate your indices to not loose any more messages.
plus create a processing pipeline that checks if the field level contains a number or a string and create a field called level_string if that happens (not storing the content in the field level after that you can see what source is sending now words and not numbers anymore.
I traced the source of the errors by shutting off all inputs and then collectors for the new Beats input. The messages are coming from winlogbeats which is just using the out-of-the box collector. I’ve kept the collector shutdown since it wasn’t logging any messages anyway.
Here is the configuration:
More information:
I have Collectors (legacy) running winlogbeat on the same system with no problem. The difference is how the messages are parsed. Here are the field mappings for the Level field on the legacy collector and the new sidecar:
{“graylog_40”:{“mappings”:{“message”:{“winlogbeat_level”:{“full_name”:“winlogbeat_level”,“mapping”:{“winlogbeat_level”:{“type”:“keyword”}}}}}}}
At this point I am totally unclear on where the mappings are set for winlogbeat on the new sidecar (or the legacy collector for that matter). Can anybody help me?
Thanks
what beats version did you use in one or the other setup? what input did you use?
The mapping is nowhere stored and Elasticsearch creates it based on the first ingested data. If you want to force something specific, create a custom mapping in elasticsearch.
The server is running newly upgraded graylog 3.0.2 with elastic search 5.6.16
winlogbeat.exe on the problem client running sidecar was installed by graylog_sidecar_installer_1.0.1-1.exe
It is version 6.4.2.
The winlogbeat version on systems successfully using collector-sidecar is 6.1.2
I just copied and ran winlogbeat 6.1.2 on the system using the new beats and get the same bad parsing results.
(BTW winlogbeat and graylog are working their little hearts out: In the couple of seconds winlogbeat was running before I stopped it 12,316 messages failed to index.)