What you will learn in this TP
- Write an ISM policy
- Restore a snapshot
- Limit permissions
Introduction #
What you will learn in this section
- Write an ISM policy
- Restore a snapshot
- Limit permissions
Context. Before production, you must prove that indexes manage themselves, that an accidental deletion can be repaired and that a reader cannot break anything.
Prerequisites: the first lab · Estimated time: 50 min
A prototype ready to operate.Setup #
Guided steps, with their solution.
1. Write the policy
Why? Without ISM, indexes grow until the disk is full.
Create a policy: rollover, read-only at 7 days, deletion at 30 days. The 2-document threshold only serves to observe the rollover.2. Trigger the rollover
Why? Rollover needs a write alias and the
Create the template and first index, then write two documents. After two to three minutes, arollover_aliassetting.cycle-000002index should appear.3. Back up and restore
Why? A replica does not protect against deletion.
Create the repository, take a snapshot, deletelogs-app-000001and restore it: the count must return to 3.4. Create a read-only role
Why? Least privilege is proven by a refusal.
Create the user, the role and their mapping. Check that reading returns 200 and deleting 403.
Difficulty level : ●●●○○ (3/5)
My progress
Sign in to track your progress and take notes. Sign in
Recommended Articles
OpenSearch in production: ISM, backups, security and best practices
Automate the lifecycle with ISM, back up with snapshots, manage roles and size an OpenSearch clus...
Snapshot Lifecycle Management : sauvegardes automatisées, restauration et reprise après sinistre
Protéger les données Elasticsearch : dépôts de snapshots (S3, GCS, Azure, système de fichiers), p...
Index Lifecycle Management (ILM) : data tiers, rollover et rétention
Automatiser le cycle de vie des index avec ILM : data tiers hot, warm, cold et frozen, rollover p...
Data streams et templates Elasticsearch : component templates, index templates et séries temporelles
Gérer les données horodatées avec les data streams : index templates et component templates, conv...
Kibana : rôle, installation et premiers pas
Ce qu'est Kibana dans la suite Elastic, comment l'installer avec Elasticsearch (start-local, Dock...
Indexing and searching in OpenSearch: mapping, DSL, PPL and SQL
Declare an index template, index with bulk, search with the Query DSL, aggregate and query with P...
OpenSearch Dashboards, alerting and observability
Explore data in OpenSearch Dashboards, create alert monitors and discover Trace Analytics, Event ...
Superviser et protéger Azure : Monitor, Log Analytics, Defender, Key Vault et Backup
Exploiter Azure : Azure Monitor (métriques, journaux d'activité, alertes), Log Analytics et KQL, ...
OpenSearch: concepts, architecture and differences with Elasticsearch
Understanding OpenSearch: project origin, license, differences with Elasticsearch, indexes, shard...