# How to draw simple xy chart using filebeat + Kibana + Elasticsearch

**URL:** <https://discuss.elastic.co/t/how-to-draw-simple-xy-chart-using-filebeat-kibana-elasticsearch/68935>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 13, 2016, 8:14pm UTC](https://discuss.elastic.co/t/how-to-draw-simple-xy-chart-using-filebeat-kibana-elasticsearch/68935 "2016-12-13T20:14:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jantoth](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@jantoth](https://discuss.elastic.co/u/jantoth)\
**Post date:** [December 13, 2016, 8:14pm UTC](https://discuss.elastic.co/t/how-to-draw-simple-xy-chart-using-filebeat-kibana-elasticsearch/68935/1 "2016-12-13T20:14:35Z")

</div>

Hi guys,

currently I am trying to read the **output from my customized log** files which look like:

`for i in {1..50} ; do awk 'BEGIN {"date +'%Y.%m.%d-%T'"|getline d;"curl -sI some_web_page/" | getline; printf "{\"timestampx\": \"%s\", \"statusx\": \"%s\"}\n", d, $2}' >> /var/log/kibana.customized.jt.log; sleep 1; done`

`cat /var/log/kibana.customized.jt.log`  
...  
{"timestampx": "2016.12.13-11:47:51", "statusx": "200"}  
{"timestampx": "2016.12.13-11:47:52", "statusx": "200"}  
{"timestampx": "2016.12.13-11:47:53", "statusx": "200"}  
{"timestampx": "2016.12.13-11:47:54", "statusx": "200"}  
{"timestampx": "2016.12.13-11:47:55", "statusx": "200"}  
{"timestampx": "2016.12.13-11:47:56", "statusx": "200"}  
{"timestampx": "2016.12.13-11:47:57", "statusx": "200"}  
{"timestampx": "2016.12.13-11:47:58", "statusx": "200"}  
{"timestampx": "2016.12.13-11:47:59", "statusx": "200"}  
{"timestampx": "2016.12.13-11:48:00", "statusx": "200"}  
...

I do not use logstash so far however, I just want to do a simple plot

y - axis - (statusx field)  
x -asis - (timestampx)

Could anyone suggest how to configure **filebeat.yml** file ???

Thx

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [December 15, 2016, 11:56am UTC](https://discuss.elastic.co/t/how-to-draw-simple-xy-chart-using-filebeat-kibana-elasticsearch/68935/2 "2016-12-15T11:56:36Z")

</div>

I think what you are looking for is the json options: [https://www.elastic.co/guide/en/beats/filebeat/5.1/configuration-filebeat-options.html#config-json](https://www.elastic.co/guide/en/beats/filebeat/5.1/configuration-filebeat-options.html#config-json)

---

<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:** [January 12, 2017, 11:56am UTC](https://discuss.elastic.co/t/how-to-draw-simple-xy-chart-using-filebeat-kibana-elasticsearch/68935/3 "2017-01-12T11:56:58Z")

</div>

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