How to access system index in opensearch

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
opensearch version 2.15
opensearch dashboard version 2.15

hii there
i want to access system index in opensearch

system_indices:
          enabled: true
          indices:
            [
              ".opendistro-alerting-config",
              ".opendistro-alerting-alert*",
              ".opendistro-anomaly-results*",
              ".opendistro-anomaly-detector*",
              ".opendistro-anomaly-checkpoints",
              ".opendistro-anomaly-detection-state",
              ".opendistro-reports-*",
              ".opendistro-notifications-*",
              ".opendistro-notebooks",
              ".opendistro-asynchronous-search-response*",
            ]

how to access system index any solution !

Hi @naman,

You can use your admin certs access all system indices:
image

something like:

curl --cacert /usr/share/opensearch/config/root-ca.pem --key /usr/share/opensearch/config/kirk-key.pem --cert /usr/share/opensearch/config/kirk.pem -XGET -k https://localhost:9200/_cat/indices?expand_wildcards=all

Best,
mj

there are already pass in this plugins and dev tool in opensearch in get like this

but i cant access this system index in alerting
how to access this system index in alerting to get alerting state

If I got your questions correctly, you can check .opendistro-alerting-alerts/_search endpoint:

GET .opendistro-alerting-alerts/_search
{
  "query": {
    "bool": {
      "must": [
        {
          "term": {
            "monitor_id.keyword": "<your minitor ID>"
          }
        },
        {
          "term": {
            "state": "ACTIVE"
          }
        }
      ]
    }
  }
}

To get ID:

GET _plugins/_alerting/monitors/_search
{
  "query": {
    "match_all": {}
  }
}

best,
mj

i am get this alerting in monitor in index and monitor in use Per query monitor
but there are not show system index in monitor

i try make alerting like this
there are log in get error to send message to email
if after two minutes not get error to send another mail there are old error message solved
this error

i want make alert like this