anomaly-detection-dashboards-plugin
anomaly-detection-dashboards-plugin copied to clipboard
Query DSL filter input for anomaly detector not working
What is the bug?
When you input a filter using query DSL option to input a data filter to an anomaly detector, the Next button on the bottom right of the screen goes away, the result being you cannot create the detector. Instead, you must first create the detector without the filter, and then stop the detector, edit it to add the filter, and then restart the detector, which is awkward.
k
How can one reproduce the bug?
Steps to reproduce the behavior:
- Go to 'Anomaly detection' page
- Click on 'Create detector' in upper right
- Type in name, description, index. Then click on 'Add data filter'.
- Click on "use query DSL' in upper right, and type or paste in filter logic using query DSL. Then, click 'Save' at lower right.
- The 'Next' button at the lower right of the screen disappears, the result being you cannot create the detector.
What is the expected behavior? After you save the query DSL, the 'Next' button should remain on the page, allowing you to go to the next page and create the filter.
What is your host/environment? AWS Cloud account.
- OS: [e.g. iOS]
- Version [e.g. 22]
- Plugins
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.
I can reproduce your bug locally. Example DSL:
{
"bool": {
"must": [
{
"bool": {
"should": [
{
"match": {
"response": "a"
}
},
{
"match": {
"response": "b"
}
},
{
"match": {
"response": "c"
}
},
{
"match": {
"response": "d"
}
},
{
"match": {
"response": "e"
}
},
{
"match": {
"response": "f"
}
},
{
"match": {
"response": "g"
}
},
{
"match": {
"response": "h"
}
},
{
"match": {
"response": "i"
}
}
]
}
}
],
"must_not": [
{
"wildcard": {
"response": "*j*"
}
},
{
"match": {
"response": "\"id\": \"1234\""
}
}
]
}
}