opensearch-project / opensearch-project/alerting

Per Document monitors Extraction query does not return any results.

Open
#696 4 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation needed
Dominant language
Kotlin
Stars
82
Forks
133
Avg merge
2d 11h
Merged PRs (30d)
9

Description

What is the bug?
When creating per document alerting monitors, the extraction query editor does not return any results like so:
image
We have custom queries that work with time ranges that cannot be replicated in the visual editor. Need help with this issue.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Go to Alerting, create monitor.
  2. Select per document monitor.
  3. Select extraction query editor.
  4. Write any query and run the monitor.
  5. No records are returned. The screen does not change at all.

What is the expected behavior?
Expectation is that the query will return all documents that match and will be displayed in the Extraction Query Response.

What is your host/environment?

  • OS: Ubuntu 18.04.6 LTS
  • Opensearch Version: 2.3.0
  • Plugins: Alerting

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the Alerting plugin's per-document monitor flow and extraction query editor, reproducing the issue with the listed steps on OpenSearch 2.3.0. Trace why running a query leaves the screen unchanged; done means matching documents appear in the Extraction Query Response.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.