-
Notifications
You must be signed in to change notification settings - Fork 105
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] [alerting_exception] analyzer [analyzer_keyword] has not been configured in mappings #961
Comments
Transferred this issue to the Alerting plugin folder as alerting owns development and maintenance of Document level monitors. |
@paasi6666 Could you please share your index mapping for us to reproduce the issue? |
Sure. Note, that the mapping is generated by graylog.
|
@lezzago After taking a look at the index mapping, I see the issue:
How do i update this to work as intended? |
@lezzago The settings of the index look like follows:
|
This issue has been reported in the OpenSearch forum https://forum.opensearch.org/t/alerting-exception-analyzer-analyzer-keyword-has-not-been-configured-in-mappings/14777. I've tested this issue with an example from Elastic https://www.elastic.co/guide/en/elasticsearch/reference/current/analyzer.html The result was exactly the same as reported in the forum case.
I've tested that analyzer with examples from the link and it works with no issues but for some reason Alerting plugin can't see the definition of that analyzer when creating a Monitor. |
This is likely because Alerting plugin doesn't copy analyzer def from source index settings to queryIndex settings. |
Missing feature or bug? Maybe a OpenSearch developer can take a look at this? |
Analyzer updates are static config changes to an index. they would require closing an index > apply analyzer setting change > re-open index. Closing alerting query index is not possible as all monitors share query index and monitors are running in parallel. |
@eirsep So any index with a custom analyzer or normalizer simply can not have a monitor configured on it? And this is acceptable to the OpenSearch team?! |
Looks like this was reopened, thanks for your feedback @mvanderlee. @eirsep If you have ideas of what needs to change to support this feature, please add. |
What is the bug?
When defining a new monitor (under alerting) and selecting the type 'Per document monitor', the monitor saves with following error:
Furthermore, when "testing" the query it times out:
The query looks like this:
and as shown below, the query works when discovering:
How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
I don't know, hence it never worked for me.
What is your host/environment?
NOTE
We are ingesting the logs using graylog.
The text was updated successfully, but these errors were encountered: