Problem child ingest pipeline bug - #11367
Conversation
|
@r0ot Could you provide an example document that is causing the pipeline errors? |
I don't have a real-world document I could provide but the example I gave in my description should be sufficient. If the user's datasource isn't elastic endpoint and only provided |
|
Hi, @r0ot we are testing this, can you also share what Elastic stack version you are using, as well as the ProblemChild/Living off the Land Detection package version you are on? |
|
Upon testing, this doesn't raise an error like I thought, it rather just returns false. The notation used here could be cleaned up with So not a bug but an improvement. |
|
Hi, thanks again for the PR; for now we're considering rolling this up into the next release we make for this package. Will keep you posted! |
|
|
|
Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as |
|
/test |
|
💚 Build Succeeded
|
|
Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as |
|
Package problemchild - 2.2.0 containing this change is available at https://epr.elastic.co/package/problemchild/2.2.0/ |
Updated problem_child_ingest_pipeline.yml
Updated problem_child_ingest_pipeline.yml




Proposed commit message
The painless script
ifblock serving as the entry point into the problem child inference pipeline has a bug in its logic checking for the appropriate host operating system. It separates its checks for various sub-fields ofhost.osand it's actual accessing of those fields from thectxobject, potentially leading to errors trying to access keys that don't exist.For example, if a document contains
host.os.familybut doesn't containhost.os.type, this painless script will raise an error instead of simply failing.Checklist
changelog.ymlfile.Author's Checklist
How to test this PR locally
Related issues
Screenshots