# How to stop ELK logging?

**URL:** <https://discuss.elastic.co/t/how-to-stop-elk-logging/355170>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [March 11, 2024, 3:07pm UTC](https://discuss.elastic.co/t/how-to-stop-elk-logging/355170 "2024-03-11T15:07:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shrm/32/131044_2.png) [@shrm](https://discuss.elastic.co/u/shrm)\
**Post date:** [March 11, 2024, 3:07pm UTC](https://discuss.elastic.co/t/how-to-stop-elk-logging/355170/1 "2024-03-11T15:07:07Z")

</div>

I ran the elastic stack on docker compose and it is running well. But after a week 50GB of storage was filled with the service without any additional data. I did not provide any content yet, and it was completely clean. I guessed it was filled by logs that these machines are saving somewhere. I could not spot it as the service completely crashed due to low disk space to work.  
So I am willing to do it again without logging. I have a fresh instance + docker-compose and the following YAML file:

```auto
version: '3.6'
services:
  Elasticsearch:
    image: elasticsearch:7.16.2
    container_name: elasticsearch
    restart: always
    volumes:
    - elastic_data:/usr/share/elasticsearch/data/
    environment:
      ES_JAVA_OPTS: "-Xmx256m -Xms256m"
      discovery.type: single-node
    ports:
    - '9200:9200'
    - '9300:9300'
    networks:
      - elk
    storage_opt:
      size: 10G

  Logstash:
    image: logstash:7.16.2
    container_name: logstash
    restart: always
    volumes:
    - /home/user/extvol/elk/logstash/logstash.conf:/etc/logstash/conf.d/logstash.conf:ro
    command: logstash -f /etc/logstash/conf.d/logstash.conf
    depends_on:
      - Elasticsearch
    ports:
    - '9600:9600'
    environment:
      LS_JAVA_OPTS: "-Xmx256m -Xms256m"
    networks:
      - elk
    storage_opt:
      size: 10G

  Kibana:
    image: kibana:7.16.2
    container_name: kibana
    restart: always
    ports:
    - '5601:5601'
    environment:
      - ELASTICSEARCH_URL=http://elasticsearch:9200
    depends_on:
      - Elasticsearch
    networks:
      - elk
    storage_opt:
      size: 10G
volumes:
  elastic_data: {}

networks:
  elk:

```

This file failed to run because of `storage_opt: size: 10G:` so I removed that and worked.  
But how to stop automatic logging, not only from the screen but also from occupying the space of the disk?

---

<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:** [April 8, 2024, 3:07pm UTC](https://discuss.elastic.co/t/how-to-stop-elk-logging/355170/2 "2024-04-08T15:07:17Z")

</div>

Closed on April 8, 2024, 3:07pm UTC

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