-
Notifications
You must be signed in to change notification settings - Fork 76
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
[BUG] Error Creating Detector [security_analytics_exception] normalizer [lowercase_keyword] not found for field #697
Comments
I think this is related to the fact that we don't have component templates but just regular index templates. This causes multiple issues:
In short, attempting to enable Detectors completely broke our OS cluster. "You'll own nothing and be happy" comes to mind, even with our own data. |
Follow up, the broken indices and ISM policy were because use templates instead of index_templates. We now realize that templates were marked as legacy in 7.8. We have now updated all our templates to index_templates and fixed the ISM policies. Detectors still don't work
GitHub doesn't allow uploading of .yml files, so I added the .txt. |
hi @mvanderlee @jsun64128 , this is a known issue with using custom analyzers in doc-level monitors which the Security Analytics detectors internally create. As a workaround for this, can you please try to use standard analyzers that OpenSearch support? |
@sbcd90 the alerting team just nonchalantly closed it and from the message I'm inferring a "Won't fix attitude" |
I would upvote this. I just ran into the same issue, which seems to be utterly unexpected behaviour. I was lucky to spot Security Analytics module overwriting my index templates, and when I configured a different type of detector, it started complaining. opensearch-node | Suppressed: java.lang.IllegalArgumentException: index template [.opensearch-sap-alias-mappings-index-template-my-] has index patterns [my-] matching patterns from existing templates [my_default] with patterns (my_default => [my-os-, my-app-*]) that have the same priority [0], multiple index templates may not match during index creation, please use a different priority What is a suggested workaround or when we can expect a fix? |
Hit the same issue here. |
We encountered this issue with one of our customers. A possible workaround is to use analyzers instead of normalizers. |
What is the bug?
When trying to create a security analytics detector I get an error "[security_analytics_exception] normalizer [lowercase_keyword] not found for field 'x'". x being _ Ex. 25-000873_J6yHbIsBON-lwPZfCF7R
How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
When creating indexes we already apply normalizers like lowercase_keyword. I pasted the code we utilize in the additional context section.
What is your host/environment?
Do you have any screenshots?
Do you have any additional context?
When we create an index, we added the lowercase_keyword normalizer and set it as the normalizer for the message field
{ "mappings": { "properties": { "message": { "type": "keyword", "normalizer": "lowercase_keyword" } } }, "settings": { "analysis": { "normalizer": { "lowercase_keyword": { "type": "custom", "filter": [ "lowercase" ] } } } } }
The text was updated successfully, but these errors were encountered: