Hi,
We’re encountering an issue with json extractor, it’s giving us the following errors.
2018-02-13_14:57:48.40168 WARN [Messages] Failed to index message: index=<graylog_616> id=<3a91c820-10ce-11e8-8b55-0eeefea68770> error=<{"type":"mapper_parsing_exception","reason":"failed to parse [e_request_pickUpDates]","caused_by":{"type":"illegal_argument_exception","reason":"Invalid format: \"2018-02-13T00:00:00-0500, 2018-02-14T00:00:00-0500, 2018...\" is malformed at \", 2018-02-14T00:00:00-0500, 2018...\""}}>
2018-02-13_14:57:48.40250 ERROR [Messages] Failed to index [1] messages. Please check the index error log in your web interface for the reason. Error: One or more of the items in the Bulk request failed, check BulkResult.getItems() for more information.
2018-02-13_14:57:54.28800 WARN [Messages] Failed to index message: index=<graylog_616> id=<40552771-10ce-11e8-8b55-0eeefea68770> error=<{"type":"mapper_parsing_exception","reason":"failed to parse [e_request_pickUpDates]","caused_by":{"type":"illegal_argument_exception","reason":"Invalid format: \"2018-02-13T00:00:00-0500, 2018-02-14T00:00:00-0500\" is malformed at \", 2018-02-14T00:00:00-0500\""}}>
2018-02-13_14:57:54.29061 ERROR [Messages] Failed to index [1] messages. Please check the index error log in your web interface for the reason. Error: One or more of the items in the Bulk request failed, check BulkResult.getItems() for more information.
2018-02-13_14:57:55.56865 WARN [Messages] Failed to index message: index=<graylog_616> id=<43a40451-10ce-11e8-8b55-0eeefea68770> error=<{"type":"mapper_parsing_exception","reason":"failed to parse [e_request_pickUpDates]","caused_by":{"type":"illegal_argument_exception","reason":"Invalid format: \"2018-02-13T00:00:00-0500, 2018-02-14T00:00:00-0500, 2018...\" is malformed at \", 2018-02-14T00:00:00-0500, 2018...\""}}>
2018-02-13_14:57:55.56925 ERROR [Messages] Failed to index [1] messages. Please check the index error log in your web interface for the reason. Error: One or more of the items in the Bulk request failed, check BulkResult.getItems() for more information.
2018-02-13_14:57:55.62012 WARN [Messages] Failed to index message: index=<graylog_616> id=<4477f622-10ce-11e8-8b55-0eeefea68770> error=<{"type":"mapper_parsing_exception","reason":"failed to parse [e_request_pickUpDates]","caused_by":{"type":"illegal_argument_exception","reason":"Invalid format: \"02-13-2018\" is malformed at \"-13-2018\""}}>
2018-02-13_14:57:55.62052 ERROR [Messages] Failed to index [1] messages. Please check the index error log in your web interface for the reason. Error: One or more of the items in the Bulk request failed, check BulkResult.getItems() for more information.
2018-02-13_14:58:00.30708 WARN [Messages] Failed to index message: index=<graylog_616> id=<458fcec1-10ce-11e8-8b55-0eeefea68770> error=<{"type":"mapper_parsing_exception","reason":"failed to parse [e_request_pickUpDates]","caused_by":{"type":"illegal_argument_exception","reason":"Invalid format: \"2018-02-14T00:00:00-0500, 2018-02-15T00:00:00-0500\" is malformed at \", 2018-02-15T00:00:00-0500\""}}>
2018-02-13_14:58:00.30843 ERROR [Messages] Failed to index [1] messages. Please check the index error log in your web interface for the reason. Error: One or more of the items in the Bulk request failed, check BulkResult.getItems() for more information.
2018-02-13_14:58:01.36052 WARN [Messages] Failed to index message: index=<graylog_616> id=<46d63170-10ce-11e8-8b55-0eeefea68770> error=<{"type":"mapper_parsing_exception","reason":"failed to parse [e_request_pickUpDates]","caused_by":{"type":"illegal_argument_exception","reason":"Invalid format: \"02-13-2018\" is malformed at \"-13-2018\""}}>
2018-02-13_14:58:01.36375 WARN [Messages] Failed to index message: index=<graylog_616> id=<4706b751-10ce-11e8-8b55-0eeefea68770> error=<{"type":"mapper_parsing_exception","reason":"failed to parse [e_request_pickUpDates]","caused_by":{"type":"illegal_argument_exception","reason":"Invalid format: \"02-13-2018\" is malformed at \"-13-2018\""}}>
2018-02-13_14:58:01.36420 ERROR [Messages] Failed to index [2] messages. Please check the index error log in your web interface for the reason. Error: One or more of the items in the Bulk request failed, check BulkResult.getItems() for more information.
The field we’re trying to extract from has a valid json message, with an entry similar to this.
"pickUpDates": ["2018-02-13T00:00:00-0500", "2018-02-14T00:00:00-0500"],
Is it the case that it’s seeing the word date in the field / entry name it’s trying to set the type to date?
If this is the issue do we have to create custom mappings for each possible field that could ever receive in the payload? That would be quite cumbersome.
Is this a bug or are we doing something wrong?
When we try a message in json extractor creation screen, it parses properly and shows the following.
Thanks