Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: json example

...

Code Block
languagebash
titleCan be done for whole months or even years
loganalysis.py -cul /opt/shibboleth-idp/logs/idp-audit.log.201812*
21 unique relying parties
15 unique userids
406 logins

Maybe try one of the structured output formats for easy post-processing, e.g. JSON:

Code Block
languagebash
titleCan be done for whole months or even years
$ loganalysis.py -j /opt/shibboleth-idp/logs/idp-audit.log.20200[1-6]*
{
  "stats": {
    "logins": 8327,
    "rps": 211,
    "users": 150
  },
  "logins_per_rp": {
    "https://sp.example.org/saml": 29,
    "https://wiki.example.edu/shibboleth": 163,
    "usw.": "usf."
  }
}

For more see the built-in help ( loganalysis.py --help).

Debugging

Code Block
languagebash
titleLog SAML Messages on DEBUG
$EDITOR /opt/shibboleth-idp/conf/logback.xml  # Set <logger name="PROTOCOL_MESSAGE" level="DEBUG"/> and save
/opt/shibboleth-idp/bin/reload-service.sh -id shibboleth.LoggingService

...