# Import the list of ids from external file

**URL:** <https://discuss.elastic.co/t/import-the-list-of-ids-from-external-file/200359>\
**Category:** Kibana\
**Created:** [September 20, 2019, 7:10am UTC](https://discuss.elastic.co/t/import-the-list-of-ids-from-external-file/200359 "2019-09-20T07:10:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewKode](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@andrewKode](https://discuss.elastic.co/u/andrewKode)\
**Post date:** [September 20, 2019, 7:10am UTC](https://discuss.elastic.co/t/import-the-list-of-ids-from-external-file/200359/1 "2019-09-20T07:10:55Z")

</div>

Hello!

I want to know if its possible to query on the documents already stored in the database with a filter which reads from a file (json, csv, txt - separated by new line), the ids of the documents that I want to do the query on.

I'm opened to any other better ideas, I just want to tell Kibana/ES what ids I want by reading them from an external final.

Many thanks!

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [September 20, 2019, 5:42pm UTC](https://discuss.elastic.co/t/import-the-list-of-ids-from-external-file/200359/2 "2019-09-20T17:42:05Z")

</div>

This is not currently possible with Kibana.

Logstash has an [elasticsearch filter plugin](https://www.elastic.co/guide/en/logstash/current/plugins-filters-elasticsearch.html) that can query Elasticsearch using input from another source (such as a file). You can use any of the [output plugins](https://www.elastic.co/guide/en/logstash/current/output-plugins.html) to return the results.

---

<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 18, 2019, 5:42pm UTC](https://discuss.elastic.co/t/import-the-list-of-ids-from-external-file/200359/3 "2019-10-18T17:42:06Z")

</div>

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