# Error when querying Elasticsearch from Logstash

**URL:** <https://discuss.elastic.co/t/error-when-querying-elasticsearch-from-logstash/343907>\
**Category:** Logstash\
**Created:** [September 26, 2023, 3:19pm UTC](https://discuss.elastic.co/t/error-when-querying-elasticsearch-from-logstash/343907 "2023-09-26T15:19:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![subash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/subash/32/59912_2.png) [@subash](https://discuss.elastic.co/u/subash)\
**Post date:** [September 26, 2023, 3:19pm UTC](https://discuss.elastic.co/t/error-when-querying-elasticsearch-from-logstash/343907/1 "2023-09-26T15:19:17Z")

</div>

I'm using Elasticsearch input plugin in logstash to query the Elastic data. But I'm getting the below error

`Ignoring clear_scroll exception {:message=>"[404] {\"succeeded\":true,\"num_freed\":0}", :exception=>Elasticsearch::Transport::Transport::Errors::NotFound}`

Logstash's input configuration looks like the below

```auto
input
{
   elasticsearch
  {
     hosts => ["host:port"]
	 index => "sample_index"
	 ssl => true
     ca_file => "certificate.cer"
	 user => "abcd"
	 password => " *********"
     schedule => "27 20 * * *"
	 query => '{
               "query": {
                     "bool": {
                     "filter": [
                      {
                          "range": {
                              "begin": {
                                    "format": "strict_date_optional_time",
                                    "gte": "now-3d",
                                    "lte": "now"
                                        }
                                   }
                             }
                          ]
                      }
                   }
               }'
  }
}

```

Please help to get this issue resolved

---

<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:** [October 24, 2023, 3:20pm UTC](https://discuss.elastic.co/t/error-when-querying-elasticsearch-from-logstash/343907/2 "2023-10-24T15:20:03Z")

</div>

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