Agnus Dei (jackal) wrote,
Agnus Dei
jackal

How to get JSESSIONID's out of an apache log (or any cookie)

Assuming you are logging cookies:

# grep my.url.com /var/log/httpd/ema.md-ssl-access_log | grep "JSESSIONID"  | sed -r "s/.*(\[.*\]).*JSESSIONID=((.*);|([^\"]*)\") .*/\2/g"| sed -r "s/.$//" | sort | uniq -c | sort -rn
 1309 1122A5A15E9249463C195B0E2481AB94
  646 1703C75AE6C988B650DF555F04136226
  477 76E32F79F9D8716E2507CF898E17F47F
  404 69789C15A7DFEF025538170D7A4A4981
  352 1222B722BC8F497B106806C796591276
  201 C12E8E89C2017ADBD15D11FF6D433B16
   20 7A661718045150E6420DE4A6FB8DCDB2
    2 76B66EF3109041474B4385D2EA36A242
    1 F0BCFE41562BF52EBC3C368E570A3243
    1 D5FE8980D35AC5731873100187EEBDF1
    1 A9BF824A4589BB1ED8217844A4E63A26
    1 916766C4DE4E9FE50C5BEB0897C19B11
    1 49AB3A90C190C0F0CB858346B0A23AA8
    1 37F1E556DC4FA531A58EC1D677CA2BE5
    1 2D6C2B9F33E01B8A3E3EB44C64145680
    1 1DC73E26143190F795298B0A9FD9EF77
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 0 comments