﻿---
title: Sharing settings in Kibana
description: 
url: https://www.elastic.co/elastic/docs-builder/docs/3167/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.
<definitions>
  <definition term="share.url_expiration.enabled">
    <stack-availability>Elastic Stack: Generally available since 9.1</stack-availability>
    <supported-on>Elastic Cloud Hosted: Generally available, Self-managed Elastic deployments: Generally available</supported-on>

If `true` the URL expiration feature is enabled.
Datatype: `bool`
Default: `false`
  </definition>
  <definition term="share.url_expiration.duration">
    <stack-availability>Elastic Stack: Generally available since 9.1</stack-availability>
    <supported-on>Elastic Cloud Hosted: Generally available, Self-managed Elastic deployments: Generally available</supported-on>

Controls the expiration threshold. Saved object that have not been accessed in the specified period of time will get deleted.
Datatype: `string`
Default: `1y`
  </definition>
  <definition term="share.url_expiration.check_interval">
    <stack-availability>Elastic Stack: Generally available since 9.1</stack-availability>
    <supported-on>Elastic Cloud Hosted: Generally available, Self-managed Elastic deployments: Generally available</supported-on>

Controls how often the task runs.
Datatype: `string`
Default: `7d`
  </definition>
  <definition term="share.url_expiration.url_limit">
    <stack-availability>Elastic Stack: Generally available since 9.1</stack-availability>
    <supported-on>Elastic Cloud Hosted: Generally available, Self-managed Elastic deployments: Generally available</supported-on>

Controls how many saved objects should be retrieved and scheduled for deletion per one run of the task.
Datatype: `int`
Default: `10000`
  </definition>
</definitions>