Application Management
Mapping Conflict Notification - Loggly
This article helps to point out the cause and resolve the Mapping Conflict notification from the Events in their Loggly account.
First published date
Last published date
Overview
Product section
Cause
1. If you first sent the field "message" as string-
{"message":"hello world"}
2. Then something like below:
{"message":{"0":"config: unknown configuration option: foo"},"timestamp":"2015-05-22T13:22:34.538Z","sessionId":"b69e156b-66b8-446e-ada4-a0bc7013657c"}
Going from a string to a nested object will cause the Mapping Conflict.
Resolution
Currently, we do not have an easy way to automatically expose which field is causing a conflict, you can use our search tools to pinpoint the time conflicts started happening and do some manual comparison to pinpoint the change that may be the root cause.
Below are some tips that should help:
- Start off by doing a search for "LogglyNotifications.type:MappingConflict" (ignore the outer quotes) across your retention period. This will show you all the events that have the mapping conflict notification.
- Next, change the sorting to "Ascending" and you will find the first mapping conflict. Now the key question is how is this event different from what you sent previously.
- Click the "View Surrounding Events" button to take a look at 5 minutes before and 5 minutes after this event. In case you have very little events, manually tweak the From time in the search to look a bit further back.
- Now, it's a matter of doing the manual analysis. Manually compare your JSON messages and see what changed (usually it's a field being an integer and changing to JSON or vice versa or some other change of value type). Depending on how much data you have it may be comparing with the event right before the first mapping conflict or something earlier.