Search Guard - Enterprise Security for Elasticsearch
  • Security
  • Alerting
  • Index Management
  • Encryption at Rest
  • Anomaly Detection
  • Versions
    • FLX
    • 7x-53
    • 7x-52
    • 7x-51
    • 7x-50
    • 7x-49
    • 7x-48
    • 7x-47
    • 7x-46
    • 7x-45
    • 7x-43
    • 7x-42
    • 7x-41
    • 7x-40
    • 7x-38
    • 7x-37
    • 7x-36
    • 7x-35
    • 6x-25
    • 6x-24
    • 6x-23
    • 6x-22
    • 6x-21
    • 6x-20
    • v5
    • v2
  • Contact
  • Index Management
    • How Automated Index Management Works
    • Conditions
      • Conditions Overview
      • Age Condition
      • Doc Count Condition
      • Size Condition
      • Index Count Condition
    • Actions
      • Actions Overview
      • Allocation Action
      • Close Action
      • Delete Action
      • Force Merge Action
      • Rollover Action
      • Set Priority Action
      • Set Read Only Action
      • Set Replica Count Action
      • Snapshot Action
    • REST API
      • Put Policy
      • Get Policy
      • Delete Policy
      • Policy Instance State
      • Policy Instance Execute
      • Policy Instance Retry
      • Put Settings
      • Get Settings
      • Delete Settings
    • Security Integration
    • Settings
    • Index Management Glossary
Version: SG FLX
Community
  1. Home
  2. Index Management
  3. Actions
  4. Set Read Only Action

This is a Technical Preview and should not yet be used in production.

Set Read-Only Action

Content

  • Example

Setting an index into read-only mode. This will block any write operations on the index.

Example

copy
{
  "steps": [
    ...
    {
      "name": "inactive",
      "conditions": [ ... ],
      "actions": [
        ...
        {
          "type": "set_read_only"
        },
        ...
      ]
    },
    ...
  ]
}

Questions? Drop us a note!

Not what you were looking for? Try the search.

Search Guard is a trademark of floragunn GmbH, registered in the U.S. and in other countries.

Elasticsearch, Kibana, Logstash, and Beats are trademarks of Elasticsearch BV, registered in the U.S. and in other countries.

Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.
  • Blog
  • Forum
  • Partners
  • Integrators
  • Licensing

© 2026 floragunn GmbH - All Rights Reserved
Search Guard