Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. # Modified log format with virtual host, execution time, and query params
  2. LogFormat "%v:%p %a %T %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"" local
  3.  
  4. # Define an access log for VirtualHosts that don't define their own logfile
  5. CustomLog /var/log/apache2/access.log local
  6.  
  7. cut -dt -f1 access.log | sort | uniq -c
  8.  
  9. awk '{print $1}' access.log | sort | uniq -c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement