Bash script to get average time from logs

What if we have logs of a server like apache or syslog server and we want to get average time from timestamps of all rows. How can we do it?

Basically, we need to filter timestamp (column-8) from each row and just find its average.

Below is the screenshot of the problem.

(click on the image to see the better view)

Leave a Reply

Your email address will not be published. Required fields are marked *