﻿---
title: Sharing settings in Kibana
description: Configure sharing settings in your kibana.yml configuration file. These settings allow you to customize the behavior of URL sharing in Kibana. URL expiration...
url: https://www.elastic.co/elastic/docs-builder/docs/3028/reference/kibana/configuration-reference/share-settings
products:
  - Kibana
applies_to:
  - Elastic Cloud Serverless: Unavailable
  - Elastic Stack: Generally available since 9.1
---

# Sharing settings in Kibana
Configure sharing settings in your `kibana.yml` configuration file.
These settings allow you to customize the behavior of URL sharing in Kibana.

## URL expiration settings

URL expiration settings control the behavior of the unused URLs cleanup background task, which runs using the Task Manager plugin. This task allows you to periodically clean up saved objects of type `url` that have not been accessed in the specified period of time, controlled by the `share.url_expiration.duration` configuration option. Each saved object is a representation of a URL generated through the sharing functionality. Those settings are disabled by default. You must manually configure them in order to use this feature.
<warning>
  The Elasticsearch instance should have at least 2 GB RAM to use the URLs cleanup background task with its default settings.For Elasticsearch instances with less than 2 GB RAM, we do not recommend enabling this feature because it can lead to memory spikes and instability. If you still enable it on an instance with such limited RAM, `share.url_expiration.url_limit` should not exceed `1000`.
</warning>

<definitions>
  <definition term="share.url_expiration.enabled logo cloud">
    If `true` the URL expiration feature is enabled. Defaults to `false`.
  </definition>
  <definition term="share.url_expiration.duration logo cloud">
    Controls the expiration threshold. Saved object that have not been accessed in the specified period of time will get deleted. Defaults to `1y` (1 year).
  </definition>
  <definition term="share.url_expiration.check_interval logo cloud">
    Controls how often the task runs. Defaults to `7d` (7 days).
  </definition>
  <definition term="share.url_expiration.url_limit logo cloud">
    Controls how many saved objects should be retrieved and scheduled for deletion per one run of the task. Defaults to `10000`.
  </definition>
</definitions>