Menu

Quick summary stats

Give a count of requests (accesses) per hour from an AEM log file (i’ve excluded the internal IP and our VPN IP):

[root@ip-10-0-0-205 ~]# grep -v “10.0.0.230” /opt/publish/crx-quickstart/logs/access.log.2017-09-11|grep -v 159.127.85.254 | awk -F: ‘{print $2}’ | uniq -c
52 00
36 01
36 02
43 03
36 04
45 05
47 06
74 07
66 08
61 09
74 10
88 11
69 12
69 13
88 14
76 15
88 16
89 17
68 18
73 19
70 20
62 21
66 22
64 23

Leave a reply

Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>