Awk Script To Extract URL Parameters From Access Logs By admin on June 3, 2024 in Uncategorized Find and count all occurrences of “parameter” in access log: cat access_log | awk '{ match($0, /parameter=([^& ]+)/, arr); if (arr[1] != "") print arr[1]; }' | sort | uniq -c | sort -r -n | less 1234 cat access_log | awk '{ match($0, /parameter=([^& ]+)/, arr); if (arr[1] != "") print arr[1];}' | sort | uniq -c | sort -r -n | less Related posts: Get Top 10 User Agents maxclients.sh Script For Apache Get IP Address In A Script Nameserver check script Perl – Sort associative array by value