﻿---
title: Elasticsearch security
description: If Elasticsearch’s security is enabled you will need to ensure you configure a user or API key with enough privileges In order for the datashippers to...
url: https://www.elastic.co/elastic/docs-builder/docs/2509/reference/ecs/logging/dotnet/_elasticsearch_security
---

# Elasticsearch security
If Elasticsearch’s security is enabled you will need to ensure you configure a user or API key with enough privileges

## Bootstrap

In order for the datashippers to have enough privileges to bootstrap the target datastreams with all the ECS mappings, templates and settings the authenticated security principal needs the following minimum privileges:

| Type    | Privileges                                                           |
|---------|----------------------------------------------------------------------|
| Cluster | `monitor`, `manage_ilm`, `manage_index_templates`, `manage_pipeline` |
| Index   | `manage`, `create_doc`                                               |


## No bootstrap

If the datashippers are configured to skip bootstrapping the target destinations all together, the security principal requires the following minimum privileges to push data.

| Type    | Privileges                    |
|---------|-------------------------------|
| Cluster | `monitor`                     |
| Index   | `auto_configure` `create_doc` |