z Open Dataz Open Data
Overview
  • odp-elastic-samples
  • odp-prometheus-samples
  • cics-performance-analyzer-elastic
  • ims-performance-analyzer-elastic
  • transaction-analysis-workbench-elastic
  • ims-connect-extensions-analysis-splunk
  • Db2 Query Monitor Starter Dashboards
  • Instana Configuration Topics
GitHub
Overview
  • odp-elastic-samples
  • odp-prometheus-samples
  • cics-performance-analyzer-elastic
  • ims-performance-analyzer-elastic
  • transaction-analysis-workbench-elastic
  • ims-connect-extensions-analysis-splunk
  • Db2 Query Monitor Starter Dashboards
  • Instana Configuration Topics
GitHub
  • ODP Elastic samples

    • Overview

      • Introduction
      • What's new
      • Requirements
    • Upgrading
      • Upgrading Elastic from 7.14.0 to 8.0.0
    • Deploying Elastic
      • Using the provided Docker Compose file
      • Installing and configuring Elastic manually

        • Already configured Elastic?
        • Don't have Elastic?
        • Elasticsearch ILM policy
        • Elasticsearch index template
        • Logstash pipeline
        • Kibana settings
    • Installing dashboard bundles

      • Overview
      • CICS bundle

        • Update the ODP collection configuration
        • Create historical data collections
        • Create a Kibana space for the bundle
        • Import Kibana saved objects
        • Customize Kibana space settings
        • View the starter dashboards
        • Optional: Filter fields
      • Db2 bundle

        • Update the ODP collection configuration
        • Create historical data collections
        • Create a Kibana space for the bundle
        • Import Kibana saved objects
        • Customize Kibana space settings
        • View the starter dashboards
        • Optional: Filter fields
      • IMS bundle

        • Update the ODP collection configuration
        • Create historical data collections
        • Create a Kibana space for the bundle
        • Import Kibana saved objects
        • Customize Kibana space settings
        • View the starter dashboards
        • Optional: Filter fields
      • JVM bundle

        • Update the ODP collection configuration
        • Create historical data collections
        • Create a Kibana space for the bundle
        • Import Kibana saved objects
        • Customize Kibana space settings
        • View the starter dashboards
        • Optional: Filter fields
      • MQ bundle

        • Update the ODP collection configuration
        • Create historical data collections
        • Create a Kibana space for the bundle
        • Import Kibana saved objects
        • Customize Kibana space settings
        • View the starter dashboards
        • Optional: Filter fields
      • Network bundle

        • Update the ODP collection configuration
        • Create historical data collections
        • Create a Kibana space for the bundle
        • Import Kibana saved objects
        • Customize Kibana space settings
        • View the starter dashboards
        • Optional: Filter fields
      • Storage bundle

        • Update the ODP collection configuration
        • Create historical data collections
        • Create a Kibana space for the bundle
        • Import Kibana saved objects
        • Customize Kibana space settings
        • View the starter dashboards
        • Optional: Filter fields
      • z/OS bundle

        • Update the ODP collection configuration
        • Create historical data collections
        • Create a Kibana space for the bundle
        • Import Kibana saved objects
        • Customize Kibana space settings
        • View the starter dashboards
        • Optional: Filter fields
    • Elasticsearch indices with old naming pattern

Create an Elasticsearch index lifecycle management (ILM) policy

Already configured Elastic for ODP?

If you have already configured Elastic for earlier ODP Elastic samples that use an old index naming pattern:

  • Keep the ILM policy for those old indices, to continue managing them while they still exist. Delete that policy only after all of the indices that refer to it have been deleted.

  • For new indices for the current starter dashboards, use a policy with a different name, as shown in the following starter sample.

    The following starter policy is named omegamon-ds-ilm-policy (note the ds-), which is deliberately different from the omegamon-ilm-policy name used in earlier samples.

    The different policy name reflects the fact that the current starter Elastic configuration uses data streams, and also enables old and new indices to be managed separately.

Warning

If you don't use an ILM policy, and you keep forwarding data to Elastic, then you will eventually run out of disk space.

Here is a starter policy:

PUT _ilm/policy/omegamon-ds-ilm-policy
{
  "policy": {
    "phases": {
      "hot": {
        "min_age": "0ms",
        "actions": {
          "rollover": {
            "max_primary_shard_size": "10gb",
            "max_age": "10d"
          },
          "set_priority": {
            "priority": 100
          }
        }
      },
      "warm": {
        "min_age": "10d",
        "actions": {
          "set_priority": {
            "priority": 50
          }
        }
      },
      "delete": {
        "min_age": "20d",
        "actions": {
          "delete": {
            "delete_searchable_snapshot": true
          }
        }
      }
    }
  }
}

Tips

You can paste this definition into the Kibana console. In Kibana, select Management ▶ Dev Tools ▶ Console.

This starter policy is designed for use with data streams. The policy contains a rollover action that triggers the creation of a new backing index for the data stream either when the primary shard size reaches 10 GB, or 10 days after the current backing index was created, whichever occurs first.

This starter policy deletes indices 20 days after rollover.

This policy is a starter only. Create a policy that matches your organization's requirements and available disk space.

For details on creating index lifecycle policies and associating them with indices, see the Elastic Stack ILM documentation.

Last Updated: 7/20/26, 9:31 AM
Contributors: Graham Hannington, Daniel Lalwet, Viaceslavas Michalkevicius, David Dai
Prev
Don't have Elastic?
Next
Elasticsearch index template