# Creating a bar chart using fields

**URL:** <https://discuss.elastic.co/t/creating-a-bar-chart-using-fields/85509>\
**Category:** Kibana\
**Created:** [May 12, 2017, 7:13am UTC](https://discuss.elastic.co/t/creating-a-bar-chart-using-fields/85509 "2017-05-12T07:13:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmane](https://avatars.discourse-cdn.com/v4/letter/n/a9adbd/32.png) [@nmane](https://discuss.elastic.co/u/nmane)\
**Post date:** [May 12, 2017, 7:13am UTC](https://discuss.elastic.co/t/creating-a-bar-chart-using-fields/85509/1 "2017-05-12T07:13:10Z")

</div>

I have created fields using grok filter in Logstash of my logs. I can see those fields in Discover page of Kibana. But when I try to make a bar chart in Visualize, I cannot see those fields. What should I do to make a bar chart using those fields?

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [May 12, 2017, 12:23pm UTC](https://discuss.elastic.co/t/creating-a-bar-chart-using-fields/85509/2 "2017-05-12T12:23:47Z")

</div>

Can you check the index pattern page in Management to see if the fields that you're looking for in the visualization field selector are marked as aggregatable?  
PS: if they're not, you need to change the mapping template from Logstash. You can find more about his here: [https://www.elastic.co/blog/logstash\_lesson\_elasticsearch\_mapping](https://www.elastic.co/blog/logstash_lesson_elasticsearch_mapping)

---

<div class="post-metadata">

**Author:** ![nmane](https://avatars.discourse-cdn.com/v4/letter/n/a9adbd/32.png) [@nmane](https://discuss.elastic.co/u/nmane)\
**Post date:** [May 12, 2017, 3:08pm UTC](https://discuss.elastic.co/t/creating-a-bar-chart-using-fields/85509/3 "2017-05-12T15:08:42Z")

</div>

I created a new index. It worked for new index. Thank 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:** [June 9, 2017, 3:21pm UTC](https://discuss.elastic.co/t/creating-a-bar-chart-using-fields/85509/4 "2017-06-09T15:21:27Z")

</div>

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