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
Installing OpenSearch and OpenSearch Dashboards
Install OpenSearch with Docker Compose or the archive: initial password, vm.max_map_count, demo c...
Feeding OpenSearch: ingest pipelines and Data Prepper
Transform data with ingest pipelines, collect with Data Prepper, receive OTLP and avoid the dynam...
Bonnes pratiques Elasticsearch : mappings, shards, cycle de vie et exploitation
Bonnes pratiques Elasticsearch : dimensionnement des shards, mappings explicites, templates, ILM,...
Bonnes pratiques Grafana : dashboards, provisioning, performances et sécurité
Bonnes pratiques Grafana : conception de dashboards lisibles, variables, dashboards as code, prov...
Understanding the Elastic Common Schema (ECS)
As always in our consulting engagements, we recommend that companies harmonise and standardise: k...
Logs Datadog avancés : index, filtres d'exclusion, Flex Logs, archives et Sensitive Data Scanner
Maîtriser coût et conformité des logs Datadog : pipelines et processeurs, index et rétention, fil...
Logs dans Datadog : collecte, pipelines, index et maîtrise du volume
Collecter les logs avec l'agent, les structurer avec pipelines et processeurs (grok), utiliser fa...
Architecture distribuée Elasticsearch : rôles des nœuds, shards, répliques et allocation
Comprendre le fonctionnement distribué d'Elasticsearch : rôles des nœuds, nœuds master et quorum,...
Ingestion Elasticsearch : Bulk API, ingest pipelines, enrich et reindex
Ingérer et transformer des données dans Elasticsearch : Bulk API, ingest pipelines et processeurs...