# How to disable the monitoring completely?

**URL:** <https://discuss.elastic.co/t/how-to-disable-the-monitoring-completely/137728>\
**Category:** Elasticsearch\
**Created:** [June 28, 2018, 4:15am UTC](https://discuss.elastic.co/t/how-to-disable-the-monitoring-completely/137728 "2018-06-28T04:15:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikrant\_Aggarwal](https://avatars.discourse-cdn.com/v4/letter/v/f14d63/32.png) [@Vikrant\_Aggarwal](https://discuss.elastic.co/u/Vikrant_Aggarwal)\
**Post date:** [June 28, 2018, 4:15am UTC](https://discuss.elastic.co/t/how-to-disable-the-monitoring-completely/137728/1 "2018-06-28T04:15:13Z")

</div>

I am using following docker-compose.yml file to disable the monitoring on ELK stack. I have removed the lines for kibana intentionally because kibana was crashing continuously if I add the monitoring parameter in it also.

```auto
version: '3'
services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:6.2.4
    container_name: elasticsearch
    environment:
      - "discovery.type=single-node"
      - "xpack.security.enabled=false"
      - "XPACK_MONITORING_ENABLED=false"
    volumes:
      - esdata:/usr/share/elasticsearch/data:rw
    ports:
      - 9200:9200
    networks:
      - elk
    restart: unless-stopped
  kibana:
    depends_on:
    - elasticsearch
    image: docker.elastic.co/kibana/kibana:6.2.4
    networks:
      - elk
    ports:
      - 5601:5601
    restart: unless-stopped
  logstash:
    image: ervikrant06/logstashbpimage1:6.2.4
    depends_on:
      - elasticsearch
    networks:
      - elk
    environment:
      - "xpack.security.enabled=false"
      - "INPUT1=/var/tmp/log"
      - "XPACK_MONITORING_ENABLED=false"
    restart: unless-stopped
    volumes:
      - /tmp/logstash/:/var/tmp/log
volumes:
  esdata:
    driver: local
networks:
  elk:

```

Anyone knows how to disable the monitoring completely in ELK stack?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 28, 2018, 5:32am UTC](https://discuss.elastic.co/t/how-to-disable-the-monitoring-completely/137728/2 "2018-06-28T05:32:03Z")

</div>

The easiest way is to use 6.3.0 which does not have monitoring on by default.

The setting name is xpack.monitoring.enabled otherwise.

---

<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:** [July 26, 2018, 5:32am UTC](https://discuss.elastic.co/t/how-to-disable-the-monitoring-completely/137728/3 "2018-07-26T05:32:14Z")

</div>

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