Hi at all, i use graylog with mikrotik to monitor network traffic. I have configured a netflow and for 2 weeks it has worked fine. From last week i have a lot of index failure like this
|an hour ago|graylog_1|396cc270-0b23-11e8-8761-00155d039716|{"type":"mapper_parsing_exception","reason":"failed to parse [date_time]","caused_by":{"type":"illegal_argument_exception","reason":"Invalid format: \"2018-02-06 10:50:53\" is malformed at \" 10:50:53\""}}|
|---|---|---|---|
|an hour ago|graylog_1|38d27e40-0b23-11e8-8761-00155d039716|{"type":"mapper_parsing_exception","reason":"failed to parse [date_time]","caused_by":{"type":"illegal_argument_exception","reason":"Invalid format: \"2018-02-06 10:50:53\" is malformed at \" 10:50:53\""}}|
|an hour ago|graylog_1|37f2a590-0b23-11e8-8761-00155d039716|{"type":"mapper_parsing_exception","reason":"failed to parse [date_time]","caused_by":{"type":"illegal_argument_exception","reason":"Invalid format: \"2018-02-06 10:50:51\" is malformed at \" 10:50:51\""}}|
|an hour ago|graylog_1|34d9ccd0-0b23-11e8-8761-00155d039716|{"type":"mapper_parsing_exception","reason":"failed to parse [date_time]","caused_by":{"type":"illegal_argument_exception","reason":"Invalid format: \"2018-02-06 10:50:45\" is malformed at \" 10:50:45\""}}|
the index failures are maybe 5000 every 24 hours. What’s the problem? i don’t know if is related to the index
changed (from graylog_0 to graylog_1)
And now it doesn’t because the dynamic mapping in Elasticsearch recognized the field as a different type. Maybe it was a string before, now it’s a date.
That’s why you have to create a custom index mapping specifying the data type of that (and any other important) field.