Thanks, unfortunately it does not work grep awstat nginx/access.log |wc -l 0 Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276715,276718#msg-276718