# Fetch Out data from Index based on condition with VEGA

**URL:** <https://discuss.elastic.co/t/fetch-out-data-from-index-based-on-condition-with-vega/282133>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [August 21, 2021, 6:02am UTC](https://discuss.elastic.co/t/fetch-out-data-from-index-based-on-condition-with-vega/282133 "2021-08-21T06:02:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harshal\_Goyal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshal_goyal/32/93531_2.png) [@Harshal\_Goyal](https://discuss.elastic.co/u/Harshal_Goyal)\
**Post date:** [August 21, 2021, 6:02am UTC](https://discuss.elastic.co/t/fetch-out-data-from-index-based-on-condition-with-vega/282133/1 "2021-08-21T06:02:14Z")

</div>

I am trying to fetch the data based on a specific condition say a field that goes by name sym and only has a specific value "X". And use only that data to plot the graphs using vega query. But I am unable to fetch the data in that manner can anyone help, please?  
PS: the index has data on various sym values but u want data for only a specific value.

---

<div class="post-metadata">

**Author:** ![Felix\_Roessel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felix_roessel/32/41623_2.png) [@Felix\_Roessel](https://discuss.elastic.co/u/Felix_Roessel)\
**Post date:** [August 22, 2021, 7:16am UTC](https://discuss.elastic.co/t/fetch-out-data-from-index-based-on-condition-with-vega/282133/2 "2021-08-22T07:16:22Z")

</div>

This [Kibana vega examples](https://elastic-content-share.eu/downloads/category/kibana/kibana-vega-examples/) may help you

---

<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:** [September 19, 2021, 7:17am UTC](https://discuss.elastic.co/t/fetch-out-data-from-index-based-on-condition-with-vega/282133/3 "2021-09-19T07:17:19Z")

</div>

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