Hourly Average over 24 hours

Hi folks,

I am trying to build a bar graph (x-axis=hours 0-23 and y-axis= avg. number of logs) but I have not been able to get this information. I have even tried creating custom Elasticsearch queries with dev tools. But, it has been unsuccessful as well. If you wish to see my queries please let me know and I will post them here

Thanks,
Neil.

1 Like

I am trying to build a bar graph (x-axis=hours 0-23 and y-axis= avg. number of logs) but I have not been able to get this information

You can create a visualization with a histogram aggregation on the a-xis. The example below uses the web logs sample data set that ships with kibana. hour_of_day is a scripted field that converts a date field into an number for the hour of the day. The script is doc['timestamp'].value.getHour()

1 Like

Thank you so much :slight_smile:

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