Skip to Content
SourcesOpenSearch

OpenSearch

Required
Fields required for a valid configuration.
PathTypeRequiredDescriptionDefaultConstraints
requiredobjectYes
Masked
Sensitive fields under(secrets/credentials).
PathTypeRequiredDescriptionDefaultConstraints
maskedobjectNo
Optional
Optional configuration fields.
PathTypeRequiredDescriptionDefaultConstraints
optionalobjectNono extra properties
optional.connectionobjectNoCluster connection controls.no extra properties
optional.connection.request_timeout_secondsnumberNoNetwork timeout in seconds for cluster API calls30min 1, max 300
optional.connection.verify_sslbooleanNoTLS certificate verification toggletrue
optional.scopeobjectNoIndex selection scope.no extra properties
optional.scope.exclude_indicesarrayNoIndex denylist
optional.scope.exclude_indices[]stringNo
optional.scope.include_indicesarrayNoOptional index allowlist
optional.scope.include_indices[]stringNo
optional.scope.include_system_indicesbooleanNoInclude system indices (names starting with .)false
optional.scope.index_limitintegerNoOptional cap on number of index assetsmin 1
Extracted Metadata

Index

FieldTypeRequiredDescription
index_namestringYesIndex name
healthstringNoIndex health (green/yellow/red)
doc_countintegerYesNumber of documents in the index
store_size_bytesintegerNoIndex store size in bytes
primary_shardsintegerNoNumber of primary shards
replica_shardsintegerNoNumber of replica shards
Examples
Local dev cluster scan
Discover indices and sample documents on a local, unauthenticated OpenSearch cluster

Config Payload

{
  "type": "OPENSEARCH",
  "required": {
    "auth_mode": "NONE",
    "url": "http://localhost:9200"
  },
  "optional": {
    "scope": {
      "include_system_indices": false
    }
  },
  "sampling": {
    "strategy": "LATEST",
    "rows_per_page": 50
  }
}

Schedule

{
  "enabled": true,
  "preset": "weekday_business",
  "cron": "20 6 * * 1-5",
  "timezone": "UTC"
}
Basic auth secrets detection
Sample documents from selected indices using basic auth and run secrets detection

Config Payload

{
  "type": "OPENSEARCH",
  "required": {
    "auth_mode": "BASIC",
    "url": "https://opensearch.internal.example.com:9200"
  },
  "masked": {
    "username": "admin",
    "password": "your-password"
  },
  "optional": {
    "connection": {
      "verify_ssl": true
    },
    "scope": {
      "include_indices": [
        "logs-app",
        "logs-infra"
      ]
    }
  },
  "sampling": {
    "strategy": "RANDOM",
    "rows_per_page": 100
  },
  "detectors": [
    {
      "type": "SECRETS",
      "enabled": true
    },
    {
      "type": "PII",
      "enabled": true
    }
  ]
}

Schedule

{
  "enabled": true,
  "preset": "weekday_business",
  "cron": "50 8 * * 1-5",
  "timezone": "UTC"
}
AWS OpenSearch Service with API key
Connect to a managed AWS OpenSearch Service domain using an API key (bearer token)

Config Payload

{
  "type": "OPENSEARCH",
  "required": {
    "auth_mode": "API_KEY",
    "url": "https://search-my-domain-abc123.us-east-1.es.amazonaws.com"
  },
  "masked": {
    "api_key": "your-api-key"
  },
  "optional": {
    "scope": {
      "exclude_indices": [
        ".opensearch-*"
      ]
    }
  },
  "sampling": {
    "strategy": "AUTOMATIC",
    "rows_per_page": 100
  }
}

Schedule

{
  "enabled": true,
  "preset": "nightly",
  "cron": "25 2 * * *",
  "timezone": "UTC"
}