#!/bin/bash ### ### Caddy webserver JSON log parser ### show_help() { cat <s %b" # Apache Combined LogFormat: # "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" # %h is the remote host (client IP) # %l is the remote logname (not used, so we'll use -) # %u is the authenticated user # %t is the time the request was received # %r is the request line from the client ("method uri proto") # %>s is the status code # %b is the size of the object returned to the client