wiki:tech:linux:logs_and_awk
This is an old revision of the document!
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 $1," ",substr(a[1],2)," ",$11}' | column -t
cat ./access_log.10.gz | gzip -d | awk '{print $1," ",$4," ",$11}' | grep "17/Jul/2022" | less
wiki/tech/linux/logs_and_awk.1659908506.txt.gz · Last modified: 2022/08/08 00:41 by kpc