[microsoft_sqlserver,system] Add ECS error.code mapping#6868
[microsoft_sqlserver,system] Add ECS error.code mapping#6868ishleenk17 merged 3 commits intoelastic:mainfrom
Conversation
|
@ishleenk17 - What happens to the existing user who faces the field conflicts ? |
They will have to upgrade to this version if they think it's a deal breaker for them. |
Does it requires removing the conflicting field and re-indexing the existing data ? Are we considering this as a breaking change ? Otherwise the changes looks good ! |
Yes, I think this would be categorized as a breaking change since it's going to be a mapping change. |
|
I would categorize this as a bug. ECS was not adhered here and the default ES dynamic mappings prevailed. When the new package version is installed Fleet will |
Thanks for the clarity @andrewkroh |
|
@andrewkroh - I am trying to understand what happens when we try to search or perform aggregations against the data after the new change. Will the type conflict still exists ? Observations :
Correct me if I am wrong,
|
|
That is correct. Any functions that require knowing the type can have issues. Queries without aggs (like Discover) should work. The options for resolution are reindexing, deleting, closing, or adding a runtime field in the old indices to shadow the field with the correct type. |
|
If we go by this document, I think we should consider this as a bug fix and not a breaking change. |
🌐 Coverage report
|
|
Package microsoft_sqlserver - 2.1.1 containing this change is available at https://epr.elastic.co/search?package=microsoft_sqlserver |
|
Package system - 1.36.2 containing this change is available at https://epr.elastic.co/search?package=system |

What does this PR do?
This PR fixes the type conflicts for error.message and error.code for datastreams in system and mssql package
Checklist
changelog.ymlfile.Related issues