Uploaded image for project: 'Nuxeo Documentation'
  1. Nuxeo Documentation
  2. NXDOC-2538

Fix Elastic purging audit procedure on LTS 2021

    XMLWordPrintable

    Details

    • 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

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              bdelbosc Benoit Delbosc
              Reporter:
              bdelbosc Benoit Delbosc
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: