# Turn off “Elasticsearch built-in security features are not enabled” notifications from Python?

**URL:** <https://discuss.elastic.co/t/turn-off-elasticsearch-built-in-security-features-are-not-enabled-notifications-from-python/325034>\
**Category:** Elasticsearch\
**Created:** [February 8, 2023, 2:40pm UTC](https://discuss.elastic.co/t/turn-off-elasticsearch-built-in-security-features-are-not-enabled-notifications-from-python/325034 "2023-02-08T14:40:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmoraschini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mmoraschini/32/116962_2.png) [@mmoraschini](https://discuss.elastic.co/u/mmoraschini)\
**Post date:** [February 8, 2023, 2:40pm UTC](https://discuss.elastic.co/t/turn-off-elasticsearch-built-in-security-features-are-not-enabled-notifications-from-python/325034/1 "2023-02-08T14:40:30Z")

</div>

With respect to this question

> [@Is it possible to turn off "Elasticsearch built-in security features are not enabled" notifications?](https://discuss.elastic.co/t/is-it-possible-to-turn-off-elasticsearch-built-in-security-features-are-not-enabled-notifications/286167):
>
> I'm using ES on a stand-alone computer, without a wired or wireless network or internet connections.

Which is about silencing the error

`ElasticsearchWarning: Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.13/security-minimal-setup.html to enable security.`

Is it possible to do what was suggested from Python?

I tried these two solutions but they didn't work:

```auto
import logging
logger = logging.getLogger("elasticsearch")
logger.setLevel(logging.ERROR)

```

```auto
es_logger = elasticsearch.logger
es_logger.setLevel(elasticsearch.logging.ERROR)

```

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![mmoraschini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mmoraschini/32/116962_2.png) [@mmoraschini](https://discuss.elastic.co/u/mmoraschini)\
**Post date:** [February 9, 2023, 9:43am UTC](https://discuss.elastic.co/t/turn-off-elasticsearch-built-in-security-features-are-not-enabled-notifications-from-python/325034/2 "2023-02-09T09:43:51Z")

</div>

I got a solution that works from [Getting ElasticsearchWarning on search request · Issue #1878 · elastic/elasticsearch-py · GitHub](https://github.com/elastic/elasticsearch-py/issues/1878)

```auto
import warnings
from elasticsearch.exceptions import ElasticsearchWarning
warnings.simplefilter('ignore', ElasticsearchWarning)

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 9, 2023, 9:44am UTC](https://discuss.elastic.co/t/turn-off-elasticsearch-built-in-security-features-are-not-enabled-notifications-from-python/325034/3 "2023-03-09T09:44:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
