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()