I was looking for this myself the other day.
You can get the results you want from ES with the following aggregation:
{
"aggs": {
"hour": {
"terms": {
"script": "doc['@timestamp'].date.hourOfDay"
}
}
}
}
For Kibana, you'd probably need a Histogram panel that is note date based.
That is, you need a custom Kibana panel.
On Sunday, June 1, 2014 10:55:36 PM UTC-3, Kevin S wrote:
>
> All the events in my index are _timestamp enabled. I would like to look
> at a distribution of events based on the hour of day.
>
> Here is an example of what I would like to query:
>
>
> http://blog.redowlanalytics.com/post/78135922786/generating-realistic-fake-communications-data
>
> Is that possible? Can that be done on a histogram in kibana?
>
> Thank you.
>
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/4f04cafa-d6bb-403d-876e-d6ed7f5f52c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.