-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TI_MISP] Transform logs-ti_misp.latest_ioc can enter on a FAILED state because of mapping conflicts. #9360
Comments
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
Thanks for reporting @leandrojmp. Mind taking a look at this @kcreddy? |
The But adding MISP destination index dynamic templates configuration, with
I also tried adding the
This is definitely one of the workaround. The other workaround I can think of is defining mappings under source datastream for the field I also created elastic/package-spec#730 for adding property |
Also seeing this, any progress? I tried the workaround with setting ignore_malformed: false for the threat.indicator.ip mapping in the component template and it appears to be working. |
In the issue elastic/package-spec#730, we concluded that instead of changing/setting up the property |
Hello,
The MISP integration has a transform of the type latest associated to it, but it looks like that the transform can enter a failed state if it hits some mapping conflict on the destination index.
What happens is that in some rare cases some fields in the source index can have invalid values, for example a network on a IP field, the document is indexed on the source index because the template for the misp datastream has
index.mapping.ignore_malformed
set totrue
, but in the destination index of the transformindex.mapping.ignore_malformed
is set tofalse
, so a document with a mapping conflict that ignored the field on the source index will be rejected on the destination index, and this creates a permanent error on the transform.For example, if you have the field
threat.indicator.ip
with the value178.21.14.0/23
in the source index, when the transform hits this document it will fail and stop working because this will be rejected in the destination index.You will then have a message like the following one in the transforms page.
To make the transform working again you need to fix the source index by deleting the conflicting document or directly updating it on the backing indice of the data stream.
The following query will list all documents that have ignored fields:
I believe that the fix is to change
index.mapping.ignore_malformed
to also betrue
in the destination index, but I'm not sure from where the mappings for this index are coming from.The text was updated successfully, but these errors were encountered: