# Multi-node cluster doesn't see old data

**URL:** <https://discuss.elastic.co/t/multi-node-cluster-doesnt-see-old-data/311092>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [August 1, 2022, 8:34am UTC](https://discuss.elastic.co/t/multi-node-cluster-doesnt-see-old-data/311092 "2022-08-01T08:34:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![freeman999](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/freeman999/32/104827_2.png) [@freeman999](https://discuss.elastic.co/u/freeman999)\
**Post date:** [August 1, 2022, 8:34am UTC](https://discuss.elastic.co/t/multi-node-cluster-doesnt-see-old-data/311092/1 "2022-08-01T08:34:50Z")

</div>

Hello everyone! I'm just new here.  
I already have a single-node cluster with Docker. I have two containers:

```auto
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
28625b7bead9 docker.elastic.co/elasticsearch/elasticsearch:6.4.2 "/usr/local/bin/dock…" 4 months ago Up 14 hours 0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp elastic_heyrovsky
5eee07ed51cb docker.elastic.co/kibana/kibana:6.4.2 "/usr/local/bin/kiba…" 3 years ago Up 14 hours kibana

```

All data are stored in /opt/elasticsearch/ for last 3 months.

Now I want to use multi-node cluster with docker-compose.  
My docker-compose.yml is:

```auto
version: '3.5'
services:
 elasticsearch:
   image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
   container_name: es01
   environment:
     - cluster.name=elk-cluster
     - bootstrap.memory_lock=true
     - "ES_JAVA_OPTS=-Xms4096m -Xmx4096m"
   ulimits:
     memlock:
       soft: -1
       hard: -1
   volumes:
     - esdata1:/usr/share/elasticsearch/data
   ports:
     - 9200:9200
     - 9300:9300
   networks:
     - esnet

 elasticsearch2:
   image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
   container_name: es02
   environment:
     - cluster.name=elk-cluster
     - bootstrap.memory_lock=true
     - "ES_JAVA_OPTS=-Xms4096m -Xmx4096m"
     - "discovery.zen.ping.unicast.hosts=es01"
   ulimits:
     memlock:
       soft: -1
       hard: -1
   volumes:
     - esdata2:/usr/share/elasticsearch/data
   networks:
     - esnet

 elasticsearch3:
   image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
   container_name: es03
   environment:
     - cluster.name=elk-cluster
     - bootstrap.memory_lock=true
     - "ES_JAVA_OPTS=-Xms4096m -Xmx4096m"
     - "discovery.zen.ping.unicast.hosts=es01"
   ulimits:
     memlock:
       soft: -1
       hard: -1
   volumes:
     - esdata3:/usr/share/elasticsearch/data
   networks:
     - esnet

 headPlugin:
   image: 'mobz/elasticsearch-head:5'
   container_name: head
   ports:
     - '9100:9100'
   networks:
     - esnet

 kibana:
    image: docker.elastic.co/kibana/kibana:6.4.2
    container_name: kibana
    ports:
      - 5601:5601
    volumes:
     volumes:
      - esdata4:/usr/share/kibana/plugins/logtrail
    environment:
      ELASTICSEARCH_URL: http://elasticsearch:9200
      ELASTICSEARCH_HOSTS: '["http://es:9200","http://es02:9200","http://es03:9200"]'
    networks:
      - esnet

volumes:
 esdata1:
   driver: local
   driver_opts:
     type: 'none'
     o: 'bind'
     device: '/opt/elasticsearch/data'
 esdata2:
   driver: local
   driver_opts:
     type: 'none'
     o: 'bind'
     device: '/opt/elasticsearch/data'
 esdata3:
   driver: local
   driver_opts:
     type: 'none'
     o: 'bind'
     device: '/opt/elasticsearch/data'
 esdata4:
   driver: local
   driver_opts:
     type: 'none'
     o: 'bind'
     device: '/opt/kibana/logtrail'

networks:
 esnet:
   driver: bridge

```

After I run docker-compose in kibana I see only fresh data. I don't see the data for last 12 hours (for example).  
May be someone had the same issue or I have some errors in my docker-compose.yml file?  
Thank you in advance.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 2, 2022, 2:03am UTC](https://discuss.elastic.co/t/multi-node-cluster-doesnt-see-old-data/311092/2 "2022-08-02T02:03:58Z")

</div>

Welcome to our community! 😃  
Elasticsearch 6.4 is very much [EOL](https://www.elastic.co/support/eol) and you should be using a newer version.

What do the logs of Elasticsearch show from startup onwards?

---

<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:** [August 30, 2022, 2:04am UTC](https://discuss.elastic.co/t/multi-node-cluster-doesnt-see-old-data/311092/5 "2022-08-30T02:04:57Z")

</div>

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