how to get back the lost data in elasticsearch

Hi all,

I have elasticsearch running as a service, and In my docker-compose.yml, I have below code

  elasticsearch:
    image: elasticsearch:7.17.5
    user: 1000:1000
    restart: always
    environment:
      - node.name=activity
      - discovery.type=single-node
      - cluster.name=ws-es-data-cluster
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
    deploy:
      resources:
        limits:
          memory: 2048M
    ulimits:
      memlock:
        soft: -1
        hard: -1
    volumes:
      - esdata:/home/elasticsearch/data
    expose:
      - "9200"

  grafana:
    image: docker.io/grafana/grafana-oss:latest
    restart: always
    expose:
      - "3000"
    environment:
      - GF_AUTH_BASIC_ENABLED=false
      - GF_TLS_SKIP_VERIFY_INSECURE=true
      - GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s:%(http_port)s/grafana
      - GF_SERVER_SERVE_FROM_SUB_PATH=true
    volumes:
      - grafana_data:/var/lib/grafana
    depends_on:
      - elasticsearch

I have been using this for the last a year but the data I see only for one month in grafana, and not the whole data which I have been saving with elasticserach for the whole last year,
I have not deleted the data and it’s lost somehow, is it a grafana issue or elasticsearch issue?

what could be the reason for this?
can you pls suggest

Thankyou