{"id":26215,"date":"2023-06-22T16:56:45","date_gmt":"2023-06-22T14:56:45","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=26215"},"modified":"2023-06-22T16:56:45","modified_gmt":"2023-06-22T14:56:45","slug":"elasticsearch-snapshot-lifecycle-management-slm","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/","title":{"rendered":"Elasticsearch &#8211; Snapshot Lifecycle Management (SLM)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In a<a href=\"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-and-restore\/\" target=\"_blank\" rel=\"noreferrer noopener\"> previous blog<\/a>, I spoke about snapshot, restore, and briefly about Snapshot Lifecycle Management. In this blog, I will go more in deep in SLM.<\/p>\n\n\n\n\n\n\n\n<p class=\"wp-block-paragraph\">Snapshot lifecycle management (SLM) is the easiest way to regularly back up a cluster. An SLM policy automatically takes snapshots on a preset schedule. The policy can also delete snapshots based on retention rules you define.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Please note that Elasticsearch Service deployments automatically include the cloud-snapshot-policy SLM policy. Elasticsearch Service uses this policy to take periodic snapshots of your cluster.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SLM security<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The following cluster privileges control access to the SLM actions when Elasticsearch security features are enabled:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>manage_slm : Allows a user to perform all SLM actions, including creating and updating policies and starting and stopping SLM.<\/li>\n\n\n\n<li>read_slm : Allows a user to perform all read-only SLM actions, such as getting policies and checking the SLM status.<\/li>\n\n\n\n<li>cluster:admin\/snapshot\/* : Allows a user to take and delete snapshots of any index, whether or not they have access to that index.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You can create and manage roles to assign these privileges through Kibana Management.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To grant the privileges necessary to create and manage SLM policies and snapshots, you can set up a role with the manage_slm and cluster:admin\/snapshot\/* cluster privileges and full access to the SLM history indices.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, the following request creates an slm-admin role:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nPOST _security\/role\/slm-admin\n{\n  &quot;cluster&quot;: &#x5B; &quot;manage_slm&quot;, &quot;cluster:admin\/snapshot\/*&quot; ],\n  &quot;indices&quot;: &#x5B;\n    {\n      &quot;names&quot;: &#x5B; &quot;.slm-history-*&quot; ],\n      &quot;privileges&quot;: &#x5B; &quot;all&quot; ]\n    }\n  ]\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">To grant read-only access to SLM policies and the snapshot history, you can set up a role with the read_slm cluster privilege and read access to the snapshot lifecycle management history indices.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, the following request creates a slm-read-only role:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nPOST _security\/role\/slm-read-only\n{\n  &quot;cluster&quot;: &#x5B; &quot;read_slm&quot; ],\n  &quot;indices&quot;: &#x5B;\n    {\n      &quot;names&quot;: &#x5B; &quot;.slm-history-*&quot; ],\n      &quot;privileges&quot;: &#x5B; &quot;read&quot; ]\n    }\n  ]\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Create an SLM policy<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To manage SLM in Kibana, go to the main menu and click Stack Management &gt; Snapshot and Restore &gt; Policies. To create a policy, click Create policy.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"406\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-43-1024x406.png\" alt=\"\" class=\"wp-image-26216\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-43-1024x406.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-43-300x119.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-43-768x304.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-43-1536x609.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-43.png 1913w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You can also manage SLM using the SLM APIs. To create a policy, use the create SLM policy API.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following request creates a policy that backs up the cluster state, all data streams, and all indices daily at 1:30 a.m. UTC<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nPUT _slm\/policy\/nightly-snapshots\n{\n  &quot;schedule&quot;: &quot;0 30 1 * * ?&quot;,       \n  &quot;name&quot;: &quot;&amp;lt;nightly-snap-{now\/d}&amp;gt;&quot;, \n  &quot;repository&quot;: &quot;my_repository&quot;,    \n  &quot;config&quot;: {\n    &quot;indices&quot;: &quot;*&quot;,                 \n    &quot;include_global_state&quot;: true    \n  },\n  &quot;retention&quot;: {                    \n    &quot;expire_after&quot;: &quot;30d&quot;,\n    &quot;min_count&quot;: 5,\n    &quot;max_count&quot;: 50\n  }\n}\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>schedule: When to take snapshots, written in Cron syntax.<\/li>\n\n\n\n<li>name: Supports date math. To prevent naming conflicts, the policy also appends a UUID to each snapshot name.<\/li>\n\n\n\n<li>repository: Registered snapshot repository used to store the policy\u2019s snapshots.<\/li>\n\n\n\n<li>config: Data streams and indices to include in the policy\u2019s snapshots.<\/li>\n\n\n\n<li>include_global_state: If true, the policy\u2019s snapshots include the cluster state.<\/li>\n\n\n\n<li>retention: This configuration keeps snapshots for 30 days, retaining at least 5 and no more than 50 snapshots regardless of age.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Manually run an SLM policy<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can manually run an SLM policy to immediately create a snapshot. This is useful for testing a new policy or taking a snapshot before an upgrade. Manually running a policy doesn\u2019t affect its snapshot schedule.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To run a policy in Kibana, go to the Policies page and click the run icon under the Actions column.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"375\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-44-1024x375.png\" alt=\"\" class=\"wp-image-26217\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-44-1024x375.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-44-300x110.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-44-768x281.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-44-1536x562.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-44.png 1887w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"> You can also use the execute SLM policy API.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nPOST _slm\/policy\/nightly-snapshots\/_execute\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Please note that the snapshot process runs in the background. To monitor any currently running snapshots, use the get snapshot API with the _current request path parameter.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nGET _snapshot\/my_repository\/_current\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">SLM Retention<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">SLM snapshot retention is a cluster-level task that runs separately from a policy\u2019s snapshot schedule. To control when the SLM retention task runs, configure the slm.retention_schedule cluster setting.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nPUT _cluster\/settings\n{\n  &quot;persistent&quot; : {\n    &quot;slm.retention_schedule&quot; : &quot;0 30 1 * * ?&quot;\n  }\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">To immediately run the retention task, execute:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nPOST _slm\/_execute_retention\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Please note that an SLM policy\u2019s retention rules only apply to snapshots created using the policy. Other snapshots don\u2019t count toward the policy\u2019s retention limits.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These are the most important points to know about SLM, you know how to create, configure, execute, secure SLM. This is very helpful feature I hope this blog will be helpful, if you have any question, don&#8217;t hesitate to ask \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a previous blog, I spoke about snapshot, restore, and briefly about Snapshot Lifecycle Management. In this blog, I will go more in deep in SLM. Snapshot lifecycle management (SLM) is the easiest way to regularly back up a cluster. An SLM policy automatically takes snapshots on a preset schedule. The policy can also delete&hellip;&nbsp;<\/p>\n","protected":false},"author":46,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[3684],"tags":[86,87,91,2993,237],"class_list":["post-26215","post","type-post","status-publish","format-standard","category-elastic-stack","tag-elasticsearch","tag-elk","tag-index","tag-retention","tag-snapshot"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.8 (Yoast SEO v28.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Elasticsearch - Snapshot Lifecycle Management (SLM) - dbi services Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Elasticsearch - Snapshot Lifecycle Management (SLM)\" \/>\n<meta property=\"og:description\" content=\"In a previous blog, I spoke about snapshot, restore, and briefly about Snapshot Lifecycle Management. In this blog, I will go more in deep in SLM. Snapshot lifecycle management (SLM) is the easiest way to regularly back up a cluster. An SLM policy automatically takes snapshots on a preset schedule. The policy can also delete&hellip;&nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-22T14:56:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-43.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1913\" \/>\n\t<meta property=\"og:image:height\" content=\"758\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"David Diab\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"David Diab\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-snapshot-lifecycle-management-slm\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-snapshot-lifecycle-management-slm\\\/\"},\"author\":{\"name\":\"David Diab\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bd645301427dc811a22ddd641e945966\"},\"headline\":\"Elasticsearch &#8211; Snapshot Lifecycle Management (SLM)\",\"datePublished\":\"2023-06-22T14:56:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-snapshot-lifecycle-management-slm\\\/\"},\"wordCount\":635,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-snapshot-lifecycle-management-slm\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/image-43-1024x406.png\",\"keywords\":[\"Elasticsearch\",\"ELK\",\"index\",\"retention\",\"Snapshot\"],\"articleSection\":[\"Elastic Stack\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-snapshot-lifecycle-management-slm\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-snapshot-lifecycle-management-slm\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-snapshot-lifecycle-management-slm\\\/\",\"name\":\"Elasticsearch - Snapshot Lifecycle Management (SLM) - dbi services Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-snapshot-lifecycle-management-slm\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-snapshot-lifecycle-management-slm\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/image-43-1024x406.png\",\"datePublished\":\"2023-06-22T14:56:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-snapshot-lifecycle-management-slm\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-snapshot-lifecycle-management-slm\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-snapshot-lifecycle-management-slm\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/image-43.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/image-43.png\",\"width\":1913,\"height\":758},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/elasticsearch-snapshot-lifecycle-management-slm\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Elasticsearch &#8211; Snapshot Lifecycle Management (SLM)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bd645301427dc811a22ddd641e945966\",\"name\":\"David Diab\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/DDI_web-min-scaled.jpg\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/DDI_web-min-scaled.jpg\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/DDI_web-min-scaled.jpg\",\"caption\":\"David Diab\"},\"description\":\"David Diab has more than 10 years of experience deploying and administering enterprise applications. His expertise spans Elastic Stack, WebLogic, JBoss, Tomcat, and Documentum, plus DevOps tooling (Kubernetes, CI\\\/CD), scheduling solutions (Control-M, Dollar Universe), backup (NetBackup, Backup Exec), and file transfer (CFT). He holds certifications including Elastic Certified Engineer, OpenText Certified Documentum Administrator, Oracle Certified Professional WebLogic Server 12c, Certified Kubernetes Administrator, and ITIL V3 Foundation. Prior to dbi services, David worked as Integration and Operations Engineer at PSA Peugeot Citro\u00ebn and at Atos. He holds an Engineering degree in Computer Science from UTBM. His industry experience covers automotive, banking, cosmetics, pharmaceutical, insurance, and chemical sectors.\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/david-diab\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Elasticsearch - Snapshot Lifecycle Management (SLM) - dbi services Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/","og_locale":"en_US","og_type":"article","og_title":"Elasticsearch - Snapshot Lifecycle Management (SLM)","og_description":"In a previous blog, I spoke about snapshot, restore, and briefly about Snapshot Lifecycle Management. In this blog, I will go more in deep in SLM. Snapshot lifecycle management (SLM) is the easiest way to regularly back up a cluster. An SLM policy automatically takes snapshots on a preset schedule. The policy can also delete&hellip;&nbsp;","og_url":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/","og_site_name":"dbi services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2023-06-22T14:56:45+00:00","og_image":[{"width":1913,"height":758,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-43.png","type":"image\/png"}],"author":"David Diab","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","twitter_misc":{"Written by":"David Diab","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/"},"author":{"name":"David Diab","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bd645301427dc811a22ddd641e945966"},"headline":"Elasticsearch &#8211; Snapshot Lifecycle Management (SLM)","datePublished":"2023-06-22T14:56:45+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/"},"wordCount":635,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-43-1024x406.png","keywords":["Elasticsearch","ELK","index","retention","Snapshot"],"articleSection":["Elastic Stack"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/","url":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/","name":"Elasticsearch - Snapshot Lifecycle Management (SLM) - dbi services Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-43-1024x406.png","datePublished":"2023-06-22T14:56:45+00:00","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-43.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/06\/image-43.png","width":1913,"height":758},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/elasticsearch-snapshot-lifecycle-management-slm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Elasticsearch &#8211; Snapshot Lifecycle Management (SLM)"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bd645301427dc811a22ddd641e945966","name":"David Diab","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/09\/DDI_web-min-scaled.jpg","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/09\/DDI_web-min-scaled.jpg","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/09\/DDI_web-min-scaled.jpg","caption":"David Diab"},"description":"David Diab has more than 10 years of experience deploying and administering enterprise applications. His expertise spans Elastic Stack, WebLogic, JBoss, Tomcat, and Documentum, plus DevOps tooling (Kubernetes, CI\/CD), scheduling solutions (Control-M, Dollar Universe), backup (NetBackup, Backup Exec), and file transfer (CFT). He holds certifications including Elastic Certified Engineer, OpenText Certified Documentum Administrator, Oracle Certified Professional WebLogic Server 12c, Certified Kubernetes Administrator, and ITIL V3 Foundation. Prior to dbi services, David worked as Integration and Operations Engineer at PSA Peugeot Citro\u00ebn and at Atos. He holds an Engineering degree in Computer Science from UTBM. His industry experience covers automotive, banking, cosmetics, pharmaceutical, insurance, and chemical sectors.","url":"https:\/\/www.dbi-services.com\/blog\/author\/david-diab\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/26215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/46"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=26215"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/26215\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=26215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=26215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=26215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}