-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: None
-
Tags:
-
Team:PLATFORM
-
Sprint:nxplatform #83, nxplatform #84
-
Story Points:3
The following section is for 10.10 it is not working for LTS 2021
https://doc.nuxeo.com/nxdoc/purging-audit-logs-nxp_logs/#purging-audit-with-elasticsearch-backend
reported error is:
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [entry : {dynamic_templates=[{strings={mapping={ignore_above=256, type=keyword}, match_mapping_type=string}}], properties={logDate={type=date}, comment={type=text, fields={fulltext={analyzer=fulltext, type=text}}}, id={type=long}, extended={properties={dueDate={type=date}}}, docPath={type=keyword, fields={children={analyzer=path_analyzer, type=text}}}, eventDate={type=date}}}]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [entry : {dynamic_templates=[{strings={mapping={ignore_above=256, type=keyword}, match_mapping_type=string}}], properties={logDate={type=date}, comment={type=text, fields={fulltext={analyzer=fulltext, type=text}}}, id={type=long}, extended={properties={dueDate={type=date}}}, docPath={type=keyword, fields={children={analyzer=path_analyzer, type=text}}}, eventDate={type=date}}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [entry : {dynamic_templates=[{strings={mapping={ignore_above=256, type=keyword}, match_mapping_type=string}}], properties={logDate={type=date}, comment={type=text, fields={fulltext={analyzer=fulltext, type=text}}}, id={type=long}, extended={properties={dueDate={type=date}}}, docPath={type=keyword, fields={children={analyzer=path_analyzer, type=text}}}, eventDate={type=date}}}]"}},"status":400}%
The schema must be updated, would be better to extract the schema from the source index instead of using a new one.