1. 18 Nov, 2019 1 commit
    • peter's avatar
      Mention Python 3 (tested fine with Python 3.7) · 621a5de2
      peter authored
      Also deal with minor flake8 nags about whitespace (E226, E302, E305),
      now leaving only E501 "line too long" by a few chars on a few lines.
      python3 -m flake8 --ignore E501 loganalysis.py && echo OK
  2. 05 Jun, 2018 1 commit
  3. 21 Dec, 2017 4 commits
  4. 20 Dec, 2017 6 commits
  5. 21 Jul, 2011 1 commit
  6. 18 Mar, 2011 1 commit
  7. 06 Aug, 2010 1 commit
  8. 16 Mar, 2010 3 commits
    • peter's avatar
      Add required python version (svn r240) · 84f78d87
      peter authored
    • Chad La Joie's avatar
    • peter's avatar
      Add new options -n and -m · e8d1da1c
      peter authored
      > - the -n option doesn't seem to do anything for me
      This option has been changed to be standalone (and conflict with
      `-p`), instead of modifying `-p` when used together.
      > - it might be nice to see number of times a given message profile
      >   is used, or even better, number of times per RP, this will tell
      >   you who is using saml 1 vs saml 2
      This has been implemented (`-m`). Layout/output might of course be
      > - it might be nice to have an option not to output the text
      >   description for the output so that the script could be used to
      >   feed something like Nagios
      This has been implemented (`-q`).
  9. 03 Jun, 2009 2 commits
    • peter's avatar
      Fix file globbing, add new option --quiet · c319de40
      peter authored
      * Specifying several files now works as advertised
      * New option q/-quiet to reduce decorative output
      I could convert `-n` to output something by itself (instead of
      modifying the behaviour of `-p`) but then those two would be mutually
      exclusive (and I'd have to fail if both are given). Let me know if
      this is preferred behaviour.
    • peter's avatar
      A take on SC-30 in ~100 lines of Python · e8b7f726
      peter authored
      A take on [SC-30](https://issues.shibboleth.net/jira/browse/SC-30) in ~100
      lines of Python (also have one in Perl, that does a few other things as well.
      Sorry, no Java). If you consider to include this let me know.
      Audit log filenames are expected as arguments, so shell globbing can be used
      and several arguments can be supplied, e.g.:
      audit.py -u /var/log/idp/audit.200906* /var/log/idp/audit.log
      Reading from `STDIN` works as usual (`-` as filename), so it's also
      usable as a filter:
      zcat /var/log/idp/audit.200905* | audit.py -culp -
      Basic help is also included, with `-h` or `--help`.