naman  
                
               
                 
                 
              
                  
                    July 29, 2024, 10:28am
                   
                   
              1 
               
             
            
              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 !
             
            
               
               
               
            
            
           
          
            
              
                Mantas  
                
               
                 
              
                  
                    July 29, 2024, 10:49am
                   
                   
              2 
               
             
            
              Hi @naman ,
You can use your admin certs access all system indices: 
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
             
            
               
               
               
            
            
           
          
            
              
                naman  
                
               
                 
              
                  
                    July 29, 2024, 10:54am
                   
                   
              3 
               
             
            
              
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
             
            
               
               
               
            
            
           
          
            
              
                Mantas  
                
               
              
                  
                    July 29, 2024, 11:23am
                   
                   
              4 
               
             
            
              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
             
            
               
               
               
            
            
           
          
            
              
                naman  
                
               
                 
              
                  
                    July 29, 2024, 11:24am
                   
                   
              5 
               
             
            
              
 Mantas:
 
_search
 
 
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
             
            
               
               
               
            
            
           
          
            
              
                naman  
                
               
              
                  
                    July 29, 2024,  1:59pm
                   
                   
              6 
               
             
            
              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