Created
December 2, 2011 15:25
-
-
Save KristianLyng/1423630 to your computer and use it in GitHub Desktop.
Cookie-Counter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kristian@odd:~$ varnishlog -d -k 100000 -O -i RxHeader -I Cookie -X Set-Cookie -u | sed 's/=[^;]*\(;\|$\)//g' -u | cut -b30- | awk '{for(i=1;i<NF;i++) { foo[$i]++ } } END{for (var in foo) { print var ":" foo[var]; } }' | |
PHPSESSID:1 | |
ASPSESSIONIDSSBDDCAC:1 | |
BCSI-CS-27C15425D9E30835:20 | |
TG5H_fff8_saltkey:1 | |
__utmz:49 | |
TG5H_fff8_lastvisit:1 | |
__utma:349 | |
__utmb:238 | |
__utmc:265 | |
# Remove -d to do it on real-time data, first 100000 log lines. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment