﻿---
title: License settings
description: You can configure this licensing setting in the elasticsearch.yml file. For more information, see License management. 
url: https://www.elastic.co/elastic/docs-builder/docs/3016/reference/elasticsearch/configuration-reference/license-settings
products:
  - Elasticsearch
applies_to:
  - Self-managed Elastic deployments: Generally available
---

# License settings
You can configure this licensing setting in the `elasticsearch.yml` file. For more information, see [License management](https://docs-v3-preview.elastic.dev/elastic/docs-builder/docs/3016/deploy-manage/license/manage-your-license-in-self-managed-cluster).
<definitions>
  <definition term="xpack.license.self_generated.type">
    ([Static](https://docs-v3-preview.elastic.dev/elastic/docs-builder/docs/3016/deploy-manage/stack-settings#static-cluster-setting)) Set to `basic` (default) to enable basic X-Pack features.
    If set to `trial`, the self-generated license gives access only to all the features of a x-pack for 30 days. You can later downgrade the cluster to a basic license if needed.
  </definition>
</definitions>