Git Product home page Git Product logo

Comments (4)

ylwu-amzn avatar ylwu-amzn commented on June 13, 2024 3

hi, @mmguero, thanks for reporting this issue. The detector list page will search both detectors and anomaly results. When no detector started, then no AD result indices created on new cluster. So the backend code will throw "No indices found" exception when search anomaly results.

One workaround is you can create a test detector with custom result index. A custom result index will be created when create detector. Then the search AD result API won't throw error and detector list can show up. This is an example of detector using custom result index opensearch-ad-plugin-result-test. Read more details on https://opensearch.org/docs/latest/monitoring-plugins/ad/index/#step-1-define-a-detector, check this step "Specify custom result index."

POST _plugins/_anomaly_detection/detectors
{
  "name": "test",
  "description": "Test detector",
  "time_field": "timestamp",
  "indices": [
    "server_log"
  ],
  "filter_query": {
    "bool": {
      "filter": [
        {
          "range": {
            "value": {
              "gte": 1
            }
          }
        }
      ]
    }
  },
  "detection_interval": {
    "period": {
      "interval": 1,
      "unit": "Minutes"
    }
  },
  "window_delay": {
    "period": {
      "interval": 1,
      "unit": "Minutes"
    }
  },
  "feature_attributes": [
    {
      "feature_name": "test",
      "feature_enabled": true,
      "aggregation_query": {
        "test": {
          "sum": {
            "field": "value"
          }
        }
      }
    }
  ],
  "result_index": "opensearch-ad-plugin-result-test"
}

Actually this issue has been fixed in this PR opensearch-project/anomaly-detection#322, will publish a patch version 1.2.0.1 soon. You can also install 1.2.0.1 manually to fix this issue.

from anomaly-detection-dashboards-plugin.

mmguero avatar mmguero commented on June 13, 2024

Thanks for the suggestion and update on the fix!

from anomaly-detection-dashboards-plugin.

ohltyler avatar ohltyler commented on June 13, 2024

@mmguero the patch release is now live - feel free to download the attached zip and manually installing. Please reach out if you see any more issues, and thanks again for reporting!

from anomaly-detection-dashboards-plugin.

ohltyler avatar ohltyler commented on June 13, 2024

Closing since this has been fixed as part of backend PR #322.

from anomaly-detection-dashboards-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.