wiki:nginx_logs_parsing_commands
Table of Contents
nginx logs parsing commands
Find all nginx log files from no extension up to .14.gz
# find . -regex '.*/https_www_access.log\(\.1\|\.[0-9]\.gz\|\.1[0-4]\.gz\)?$' -exec ls {} \; ./https_www_access.log.1 ./https_www_access.log.5.gz ./https_www_access.log.14.gz ./https_www_access.log.2.gz ./https_www_access.log.7.gz ./https_www_access.log ./https_www_access.log.10.gz ./https_www_access.log.8.gz ./https_www_access.log.12.gz ./https_www_access.log.6.gz ./https_www_access.log.9.gz ./https_www_access.log.13.gz ./https_www_access.log.11.gz ./https_www_access.log.4.gz ./https_www_access.log.3.gz
Tested on
- find (GNU findutils) 4.8.0
See also
References
wiki/nginx_logs_parsing_commands.txt · Last modified: 2024/07/22 12:32 by antisa