# Importing and querying against a list

**URL:** <https://discuss.elastic.co/t/importing-and-querying-against-a-list/301896>\
**Category:** Kibana\
**Created:** [April 7, 2022, 5:42pm UTC](https://discuss.elastic.co/t/importing-and-querying-against-a-list/301896 "2022-04-07T17:42:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chin1](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@chin1](https://discuss.elastic.co/u/chin1)\
**Post date:** [April 7, 2022, 5:42pm UTC](https://discuss.elastic.co/t/importing-and-querying-against-a-list/301896/1 "2022-04-07T17:42:07Z")

</div>

Hey, i'm trying to query against a large list, so apposed to copying and pasting data in KQL, and running something

user: ("name","name2","name3")

Is there away of importing that list and making it into a variable? then querying against the variable?

---

<div class="post-metadata">

**Author:** ![Tre\_Seymour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tre_seymour/32/46507_2.png) [@Tre\_Seymour](https://discuss.elastic.co/u/Tre_Seymour)\
**Post date:** [April 28, 2022, 10:35am UTC](https://discuss.elastic.co/t/importing-and-querying-against-a-list/301896/2 "2022-04-28T10:35:09Z")

</div>

If you've the access and credentials, you could possibly  
create a script that could do that.

I mention a script because AFAIK, you cant use variables in say Dev Tools.

Although, I've heard that there may be a sql view within Kibana.  
Perhaps variables are used there.

What version of Kibana are you using @chin1 ?

---

<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:** [May 26, 2022, 10:35am UTC](https://discuss.elastic.co/t/importing-and-querying-against-a-list/301896/3 "2022-05-26T10:35:30Z")

</div>

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