Incident:
I’m currently working on a log pipeline which forwards the logs from an API - of our Anti-Virus solution - to Graylog and therefore ElasticSearch behind that. However, I encouter a very strange mapper-parsing exception (which means that ElasticSearch couldn’t parse the input to the expected datatype). I’ll attach two examples of the same problem right here:
ElasticsearchException[Elasticsearch exception [type=mapper_parsing_exception, reason=failed to parse field [file_attribute_ids] of type [long] in document with id ‘e34ccd28-2a22-11ee-90d7-0242ac100112’. Preview of field’s value: ‘[5, 12]’]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=For input string: “[5, 12]”]];
ElasticsearchException[Elasticsearch exception [type=mapper_parsing_exception, reason=failed to parse field [connection_src_port] of type [long] in document with id ‘e1582915-2a22-11ee-90d7-0242ac100112’. Preview of field’s value: ‘63318, 63320’]]; nested: ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=For input string: “63318, 63320”]];
So somehow ElasticSearch has a problem parsing these lists to longs. As far as I understood, ElasticSearch also supports multiple values in a field from the ground up, so this list of longs shouldn’t be a problem at all …
Environment:
- OS Information: Linux 5.15.0-73-generic
- Package Version: Graylog 5.1.1+ef1b993 on graylog (Eclipse Adoptium 17.0.7)
What steps have you already taken to try and solve the problem?
- Tried to parse every value in both fields as explicit integers. No success.
- Transformed the datatype of these fields to String. Works until now without any more exceptions.
4. How can the community help?
Please clarify whether this is a bug by ElasticSearch / Graylog or I’m just using these products in an inappropriate way. Thank you very much for your time!