Server log filter
PingFederate provides a utility, logfilter
, that administrators can use to filter server logs.
The logfilter
utility is located in the <pf_install>/pingfederate/bin
directory, logfilter.bat
for Windows, and logfilter.sh
for Linux.
The utility sorts through all the server logs in the log directory. Administrators can move or copy one or more server log files to a different directory that can be specified as an input parameter.
The log filter returns lists of log entries based on either:
-
Entity ID and subject
-
Tracking ID
-
Session cross-reference ID
The following table describes the utility’s command options. The table afterward describes optional parameters available for all of the commands.
Command parameter | Description |
---|---|
-entityid -subject |
These two commands must be used together and return a list of transactions for the specified federation partner’s entity ID and transaction subject. |
-trackingid |
This command returns a list of transactions with the same tracking ID. |
-sessionxrefid |
This command returns a list of transactions for an ID assigned by PingFederate to associate different transactions according to the user session under which they occurred. The value of
|
Parameter | Description |
---|---|
-logsdir |
Full or relative path to source directory for the logs. Default: all |
-outputfile |
Output path and file for the returned list. Default: |
-outputtoconsole |
Returns list to the command console rather than to a file. |
The log filter creates its own log file, logfilter.log
, located in the log directory. Optionally, administrators can control settings for this log in the <pf_install>/pingfederate/bin/logfilter.log4j2.xml
file.