B.19 Mapping Conflict Warning in the OpenSearch dashboard Search

Issue: OpenSearch dashboard is reporting the following mapping conflict warning:

Mapping conflict! A field is defined as several types (string,
integer, etc) across the indices that match this pattern. You may still 
be able to use these conflict fields in parts of OpenSearch dashboard, but they will 
be unavailable for functions that require OpenSearch dashboard to know their type.
Correcting this issue will require reindexing your data.

To view the issue in OpenSearch dashboard, perform the following:

  1. Launch the OpenSearch dashboard page.

  2. Click the Management tab.

  3. Under OpenSearch dashboard section, select Index Patterns.

  4. Select security.events.normalized_*

  5. Ensure that, there are 632 fields indexed and there is no mapping conflict warning.

Workaround: Perform the following, if the number of fields indexed are less than 632 or to fix the OpenSearch dashboard mapping conflict warning:

  1. Delete the below index pattern from the OpenSearch dashboard Management tab:

    security.events.normalized_*
  2. Switch to the following bin directory:

    cd <sentinel-installation-path>/opt/novell/sentinel/bin
  3. Switch to the novell user:

    su novell
  4. Delete indices by following the below command from the Sentinel’s OpenSearch:

    ./OpenSearchRestClient.sh {sentinel_ip} {port used for OpenSearch} DELETE security.events.normalized_*
  5. Run the following command to apply mapping template on events index in the Sentinel’s OpenSearch:

    ./OpenSearch_index_template.sh {sentinel-ip} {port used for OpenSearch} security.events.normalized_* 6 1
  6. Run the following command to create the Index pattern in the OpenSearch dashboard:

    ./create_OpenSearch dashboard_index_pattern.sh http://{localhost}:5601 security.events.normalized_* {tenant-name}