User Tools

Site Tools


wiki:nginx_logs_parsing_commands

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

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki