Enabling PSL and Java logs


You can enable the PATROL for PostgreSQL KM to collect log files for PSL and Java activities.

In the BMC TrueSight Infrastructure Management operator console, the debug logging agent action works as follows depending on if it is enabled at the PostgreSQL or environment level.

  • At the global level: The logging confirms that all of the PATROL for PostgreSQL environments are correctly configured.
  • At the environment level:  The logging enables debugging operations for all PostgreSQL instances configured in this environment.

The log files are stored in the following locations:

  • Java: PATROL_HOME/Patrol3/pgrkm/logs
  • PSL: PATROL_HOME/Patrol3/log/PGR-*.kmlog

The file name is based on the KM name, which is PGR for PATROL for PostgreSQL, and the environment name in the device list.

Based on the console or method that you use to configure the PostgreSQL KM, you can enable the logging option as follows:

Console

To enable logging

TrueSight console, BMC Helix Operations Management, or CMA

When you add a monitoring configuration, select the Logging option in the Add Monitoring Configuration panel.

This is a global logging option that will log the PSL and Java activities for every PostgreSQL environment that is added.

For more information, see Configuring-the-PostgreSQL-KM-in-TrueSight-or-Central-Monitoring-Administration.

PATROL

You can enable the logging option for all of the PostgreSQL environments by select the PostgreSQL > KM Commands > KM Administration>Define Debug Settings.

For more information, see Registering-a-PostgreSQL-KM-environment.

You can also choose to only enable the logging option for specific PostgreSQL environments. Instead of selecting the logging option from the PostgreSQL, select a specific PostgreSQL database environment in the tree hierarchy. Then, select KM Commands > KM Administration>Define Debug Settings.

For more information, see Configuring-PostgreSQL-KM-database-filtering-query-and-debug-options.

PATROL Agent configuration variables 

 If you use the agent configuration variables, you can enable logging for all of the PostgreSQL environments or for a specific environment.

To enable logging for all of the PostgreSQL environments, enable the /PGR/PostgreSQL/Logging variable.

To enable logiing for a specific PostgreSQL environment, enable the /PGR/PostgreSQL/<<environment name>>/Logging variable.

For more information about working with these variables, see PATROL-Agent-configuration-variables.

PATROL for PostgreSQL agent actions

Agent actions are issued from your local console,but executed on the computer where the PATROL Agent is installed. Agent actions are also called menu commands in PATROL.

See Patrol-Agent-actions for information about using an agent action.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*