User Tools

Site Tools


wiki:tech:linux:logs_and_awk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:tech:linux:logs_and_awk [2022/08/08 00:41] – created kpcwiki:tech:linux:logs_and_awk [2022/08/08 01:02] (current) – kpc
Line 1: Line 1:
 +Parse apache (or nginx) access logs rotation archive.
 +
 <code> <code>
 find access*.gz | xargs cat | gzip -d | awk '{split($4,a,/:/); print substr(a[1],2)}' | uniq -c find access*.gz | xargs cat | gzip -d | awk '{split($4,a,/:/); print substr(a[1],2)}' | uniq -c
wiki/tech/linux/logs_and_awk.txt · Last modified: 2022/08/08 01:02 by kpc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki