# Problem to create date histogram

**URL:** https://discuss.elastic.co/t/problem-to-create-date-histogram/97746
**Category:** Kibana
**Created:** [August 21, 2017, 10:22am UTC](https://discuss.elastic.co/t/problem-to-create-date-histogram/97746 "2017-08-21T10:22:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![hom](https://avatars.discourse-cdn.com/v4/letter/h/e68b1a/32.png) [@hom](https://discuss.elastic.co/u/hom)
#### Post date: [August 21, 2017, 10:22am UTC](https://discuss.elastic.co/t/problem-to-create-date-histogram/97746/1 "2017-08-21T10:22:01Z")

</div>

![Screenshot_20170821_120312](https://us1.discourse-cdn.com/elastic/original/3X/8/5/85cae4ec9bf3f710090c9c5cfd963ef236e33da9.png)

 ![Screenshot_20170821_115423](https://us1.discourse-cdn.com/elastic/original/3X/f/d/fdbe13182e2305e69ebf308465777a19e3894b62.png)Hi

I try to visualize data in Kibana 5. I successfully import key-value pairs through filebeats and logstash in elasticsearch. The Data is "HTTP-Requests=5"

I am not able to visualize a date histogram which shows me the current value of my key-value input data in this case "5".  
Instead of this I have a timeline which counts the messages, and this is not what I want....

Maybe the problem is because of the field "HTTP-Requests" in the ES-Index which is of type string not number ? This data is imported with KV-Filter.

Thank you !

---

<div class="post-metadata">

### Author: ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)
#### Post date: [August 22, 2017, 6:38pm UTC](https://discuss.elastic.co/t/problem-to-create-date-histogram/97746/2 "2017-08-22T18:38:06Z")

</div>

I'm a little confused about what you're trying to visualize. What does the field "HTTP-Requests" represent, and why is the value always 5?

Thanks,  
CJ

---

<div class="post-metadata">

### Author: ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)
#### Post date: [August 22, 2017, 6:46pm UTC](https://discuss.elastic.co/t/problem-to-create-date-histogram/97746/3 "2017-08-22T18:46:52Z")

</div>

After looking a little closer at the screenshot of your visualization, I wonder if you want to take a look at Timelion? If you use [this blog post](https://www.elastic.co/blog/sparse-timeseries-and-timelion) as a guide, you can build a chart that shows a sum of your HTTP requests over time. With a very fine time interval (e.g. 1 second), you can get a pretty good idea of the number of HTTP requests at any particular moment. Does this help?

Thanks,  
CJ

---

<div class="post-metadata">

### Author: ![hom](https://avatars.discourse-cdn.com/v4/letter/h/e68b1a/32.png) [@hom](https://discuss.elastic.co/u/hom)
#### Post date: [August 23, 2017, 7:24am UTC](https://discuss.elastic.co/t/problem-to-create-date-histogram/97746/4 "2017-08-23T07:24:01Z")

</div>

Hi CJ

Thanks for your reply. The Value of field “HTTP-Requests” represents the concurrent requests beeing handled by my apache server.  
Of course the value can change. I try to visualize those key-value pairs of data which I send to elasticsearch from a custom logfile not  
from the apache access-log. I would like to create a chart which shows me the exact values of the field “HTTP-Requests” on a timeline not the sum of HTTP requests.

Thanks for any help,  
hom

---

<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 20, 2017, 7:24am UTC](https://discuss.elastic.co/t/problem-to-create-date-histogram/97746/5 "2017-09-20T07:24:11Z")

</div>

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