Skip to main content
ComponentsEngine
Availability2017.1 or later

Prerequisites

Logs you must enable first

Data Collected from Debug Logs

Evidence extracted from logs

Configure Alerts

Alert on actionable log issues

Security and Privacy

Handle sensitive log content

Overview

GermainUX collects and analyzes Salesforce Debug Logs to provide detailed visibility into Apex execution and related Salesforce activity.

What Debug Log Monitoring Can Collect

  • Apex exceptions
  • Custom events
  • Visualforce execution
  • Database operations
  • SOQL queries
  • Apex code-unit execution
  • Classes and triggers
  • DML operations
  • Transaction timing available in the logs
This information helps teams identify why a Salesforce transaction was slow, failed, or produced an unexpected result.

What Debug Log Monitoring Helps Analyze

Use Salesforce Debug Log Monitoring to:
  • Detect Apex exceptions
  • Find slow classes, triggers, and code units
  • Analyze SOQL execution
  • Identify excessive or inefficient database activity
  • Understand Visualforce performance
  • Investigate failed Salesforce transactions
  • Examine custom diagnostic events
  • Correlate technical activity with affected Salesforce users
  • Support root-cause analysis with transaction-level evidence
Debug Log Monitoring is performed by the GermainUX Engine.

Prerequisites

Before configuring Debug Log Monitoring, confirm that:
  • A GermainUX Engine is deployed and running.
  • Salesforce monitoring has been deployed through the Salesforce.com Application Monitoring wizard.
  • The Salesforce OAuth connection is active.
  • The integration user can access Salesforce Debug Logs. To read the logs of other users, it needs View All Data. See Permissions for the Integration User.
  • Salesforce is configured to generate the required logs for the intended users or transactions: an active trace flag for each user you want to trace. See Set Up Trace Flags in Salesforce.
  • A Debug Log Directory on the Engine host that the Engine can write to.
  • The selected GermainUX Engine can reach Salesforce APIs.
  • The organization has sufficient Salesforce API and debug-log capacity.
For the initial integration, see Deploy GermainUX for Salesforce.
GermainUX can collect only the debug logs that Salesforce generates and makes available to the integration user. If Salesforce does not create a log for the affected execution, GermainUX cannot retrieve it.

Set Up Trace Flags in Salesforce

Salesforce writes a debug log only for users, Apex classes or triggers that have an active trace flag. GermainUX doesn’t create trace flags. Set them in Salesforce for the users whose activity you want to trace.
1

Open Debug Logs in Salesforce Setup

In Salesforce Setup, search for Debug Logs, and select New under User Trace Flags.
2

Choose who to trace

Set Traced Entity Type to User, and select the user. Use a test user or a small group of users, not everyone.
3

Set the time window

Set Start Date and Expiration Date. A trace flag can be active for up to 24 hours, so renew it for as long as you need the logs.
4

Choose a debug level

Create or select a debug level with at least Apex Code = DEBUG and Database = INFO. These levels write the entries GermainUX reads: code units, SOQL and DML statements, System.debug messages and exceptions. Higher levels make the logs larger without adding data to GermainUX.
5

Save

Select Save. Salesforce writes a debug log for each transaction the user runs while the trace flag is active.
Salesforce limits the size of each debug log and the total space debug logs use in the org, and deletes old logs. When the limit is reached, Salesforce stops writing new logs. Keep trace flags short and targeted. The Debug Log Monitor reads the logs that exist when it runs. A log that Salesforce deleted before the next run is never collected.

Enable Debug Log Monitoring

Debug Log Monitoring is enabled automatically when Salesforce monitoring is deployed through the Salesforce.com Application Monitoring wizard. To deploy it:
1

Open the wizard

In the left menu, go to Settings > Wizards.
2

Select Salesforce.com Application Monitoring

On the Salesforce.com Application Monitoring card, select Add.
3

Choose the GermainUX Engine that will monitor Salesforce

In Servers, select the Engine host, and then select Apply.
4

Enter the Salesforce connection and authentication settings

Fill in the Salesforce URL, login and credentials, and the Debug Log Directory: a folder on the Engine host for the downloaded logs. See Run the Wizard for every field.
5

Expand Show Advanced if you want to customize the collection interval

The interval fields are advanced fields.
6

Set Debug Log Monitoring Interval

Enter the interval in seconds. Use a whole number of hours: 1, 2, 3, 4, 6, 8, 12 or 24 hours. The default is 3600 (1 hour).
7

Complete the wizard

Select Finish.
The wizard deploys four related components used by Salesforce Debug Log Monitoring:

Default Collection Frequency

By default, GermainUX retrieves Salesforce Debug Logs once per hour. The appropriate interval depends on:
  • How quickly teams need the data
  • Debug-log volume
  • Number of monitored users
  • Number of Salesforce organizations
  • Salesforce API usage
  • GermainUX processing and storage requirements
  • How long Salesforce retains the logs
A shorter interval provides fresher data but increases API activity and processing. A longer interval reduces collection activity but may delay investigation and increase the risk that short-lived source data is no longer available.

Configure the Frequency During Deployment

During the initial Salesforce.com Application Monitoring wizard:
  1. Select Show Advanced.
  2. Locate Debug Log Monitoring Interval.
    Salesforce Debug Log Monitoring Interval settings

    Salesforce Debug Log Monitoring Interval settings - GermainUX

  3. Enter the required frequency in seconds, as a whole number of hours.
  4. Complete the wizard.

Change the Frequency After Deployment

To update the schedule of an existing debug-log monitor:
1

Open the components

In the left menu, go to Settings > Germain > State, and open the Components tab.
2

Search for Salesforce Debug Log Monitor

There is one per monitored Salesforce org.
3

Select the applicable component

Open the component to edit it.
4

Update Execution Schedule

Use a whole number of hours. The monitor looks back 2 hours on each run, so a schedule longer than 2 hours leaves gaps unless you also raise how far back it looks.
5

Save the change

Select Save. The change applies from the next run.
6

Repeat the review for each related Debug Log Monitoring component when applicable

Only the Debug Log Monitor has a schedule. The Directory Monitor, Parser and Collator run when a file or data arrives.
Confirm that the related components remain enabled.

Disable Debug Log Monitoring

Salesforce Debug Log Monitoring uses four related components. Disable all four to stop collection completely.
  1. In the left menu, go to Settings > Germain > State.
  2. Open the Components tab.
  3. Search for Salesforce Debug Log.
  4. Identify all four related components for the Salesforce organization.
  5. Turn off the toggle in the Enabled column for each component.
  6. Save the changes if prompted.
    Debug Log Monitoring for Salesforce Cloud (Configure): Disable Debug Log Monitoring

    Disable Debug Log Monitoring - GermainUX

Disabling only one component may leave part of the debug-log collection or processing workflow active. Previously collected data remains available according to the configured GermainUX retention policy.

Re-Enable Debug Log Monitoring

To resume collection:
1

Open the components

In the left menu, go to Settings > Germain > State, and open the Components tab.
2

Search for Salesforce Debug Log

The list shows the Monitor, Directory Monitor, Parser and Collator.
3

Enable all four related components

Turn on the toggle in the Enabled column for each.
4

Confirm their execution schedules

Check the Execution Schedule of the Salesforce Debug Log Monitor.
5

Save the configuration

Select Save.
6

Allow the next scheduled executions to complete

Logs written while the monitor was off are collected only if Salesforce still keeps them and they fall in the window the next run looks back on.

Data Collected from Debug Logs

The exact information depends on the logging generated by Salesforce, but GermainUX can extract and normalize the following types of evidence.

Exceptions

Each exception thrown in a debug log becomes a Salesforce Code Exception event with:
  • Exception type, for example System.DmlException, as the event name
  • Message
  • Transaction context: its place in the execution tree, under the code unit that was running when it was thrown
Use this information to group recurring exceptions and identify their source. To see which class or trigger was running, open the exception’s execution and look at the code unit above it.

Code-Unit Execution

Code-unit events can reveal:
  • Apex class execution
  • Trigger execution
  • Workflow activity
  • Execution duration
  • Parent and child activity
  • Transaction sequence

SOQL Execution

SOQL metrics can help identify:
  • Slow queries
  • Frequently executed queries
  • Repeated queries
  • Query duration
  • Query volume within a transaction
  • Database activity associated with slow user interactions

Database and DML Activity

Database execution data can provide evidence about:
  • Inserts
  • Updates
  • Deletes
  • Upserts
  • Transaction activity
  • Duration
  • Related Apex execution

Visualforce Activity

Visualforce information can help analyze:
  • Page execution
  • Controller activity
  • Server-side processing
  • Related database operations
  • Exceptions
  • Page-performance problems

Custom Events

GermainUX can collect applicable custom diagnostic events present in Salesforce Debug Logs. Each System.debug statement in your Apex code becomes a Salesforce Code Debug Event, named after its logging level (for example DEBUG), with the message text as its business object. Use custom events to expose application-specific details not available through standard log records. For example, write System.debug(LoggingLevel.INFO, 'Order ' + order.Name + ' priced'); to see the order each execution handled. GermainUX doesn’t collect the cumulative governor-limit usage that Salesforce writes at the end of a debug log.

View Debug Log Data

In the left menu, go to Dashboards > IT > Application > Salesforce > Salesforce Code. The dashboard can include:
  • Salesforce code-debug events
  • Apex exceptions
  • Code-unit executions
  • Database executions
  • SOQL executions
  • Visualforce activity
  • Execution duration
  • Trends and breakdowns
  • Access to individual log-derived records
Select any metric to drill through to the underlying instances and related evidence.

Salesforce Debug Log KPIs

See Salesforce Debug Log KPIs. These KPIs can be used to identify:
  • Exception volume
  • Slow code units
  • Slow or excessive SOQL execution
  • Database-execution time
  • Visualforce activity
  • Changes following a deployment
  • Affected Salesforce users and workflows

Analyze a Slow or Failed Salesforce Interaction

When browser monitoring and correlation are configured, use this investigation flow:
1

Detect a slow click, error, or failed workflow

2

Open an affected user instance

3

Review the user’s Session Replay

4

Identify the action and transaction time

5

Review related Debug Log KPIs

6

Inspect Apex class and trigger execution

7

Review SOQL and database activity

8

Check for exceptions

9

Determine which code, query, or integration contributed to the issue

10

Track and validate the fix

This connects the user-visible symptom to the Salesforce execution evidence.

Configure Exception Categorization

Exception messages often contain changing values such as record IDs, timestamps, or request identifiers. Configure categorization so technically equivalent exceptions are grouped together. Useful category dimensions include:
  • Exception type
  • Apex class
  • Trigger
  • Method
  • Message pattern
  • Stack-trace pattern
  • Expected or unexpected status
  • User-facing impact
See Configure Apex Exception Monitoring.

Configure Alerts

Useful alert conditions include:
  • A new Apex exception appears.
  • Exception volume exceeds a threshold.
  • A critical code unit fails.
  • SOQL duration exceeds its SLA.
  • Query volume approaches an operational threshold.
  • A Salesforce deployment causes a performance regression.
  • The same error affects multiple users.
  • A debug-log collection component fails.
  • No logs are collected when activity is expected.
Avoid alerting on every debug record. Alert on categorized, actionable conditions.

Validate Debug Log Monitoring

After the first scheduled collection:
1

Confirm that all four related components are enabled

2

Confirm that their most recent executions succeeded

3

Confirm that the next execution times match the intended schedule

4

Generate or locate a known Salesforce Debug Log in a controlled environment

5

Verify that GermainUX collects it

6

Confirm that expected code-unit, SOQL, database, exception, or Visualforce data appears

7

Verify the Salesforce organization and environment

8

Confirm timestamps and transaction details

9

Test any configured categorization or alert

10

Confirm that user-session correlation works when configured

No Debug Logs Appear

If no data is collected:
1

Confirm that Salesforce generated Debug Logs during the selected period

2

Verify that the correct users or transactions are being logged

3

Confirm that the Salesforce OAuth connection is active

4

Confirm that the integration user can access Debug Logs

5

Check that all four GermainUX Debug Log Monitoring components are enabled

6

Review their last execution and next scheduled execution

7

Confirm that the GermainUX Engine is running

8

Check network connectivity from the Engine to Salesforce

9

Review Engine logs for authorization, API, parsing, and download errors

10

Check Salesforce API usage and applicable limits

11

Verify dashboard organization, environment, and time filters

12

Confirm that the collection interval is short enough for the source logs to remain available

Some Transactions Are Missing

Salesforce does not necessarily produce Debug Logs for every transaction automatically. If some transactions are missing:
  • Confirm that Salesforce logging is active for the affected user or execution context.
  • Check whether the relevant logging period expired.
  • Verify that the log was not removed or overwritten before collection.
  • Confirm that log-level settings include the required detail.
  • Review Salesforce log-volume limits.
  • Verify that scheduled, batch, integration, or automated executions use the expected execution identity.

Debug Logs Are Truncated or Incomplete

Salesforce may limit the size, volume, retention, or detail of Debug Logs. If a log lacks required evidence:
  • Reduce unnecessary log categories.
  • Focus logging on the relevant users or execution period.
  • Reproduce the issue in a controlled non-production environment.
  • Confirm that the required Salesforce log levels are enabled.
  • Review Salesforce limits and log-generation behavior.
  • Supplement Debug Logs with Real-Time Event Monitoring, Apex Code Monitoring, or browser telemetry.

Performance, Volume, and Retention

Debug logging can generate significant data and may affect Salesforce limits and GermainUX storage. For production use:
  • Enable only the detail needed.
  • Target relevant users and investigations where possible.
  • Avoid leaving highly verbose logging enabled indefinitely.
  • Monitor Salesforce API consumption.
  • Monitor GermainUX ingestion and storage.
  • Configure appropriate data retention.
  • Review schedules after an investigation ends.
  • Disable unnecessary Debug Log Monitoring components.

Security and Privacy

Debug Logs can contain sensitive information, including:
  • Salesforce record IDs
  • User identifiers
  • Field values
  • Query text
  • Apex variables
  • Integration endpoints
  • Error messages
  • Internal application details
Before production enablement:
  • Restrict access to debug-log dashboards and instances.
  • Configure masking, anonymization, and exclusions.
  • Avoid logging credentials, session IDs, or OAuth tokens.
  • Use a dedicated least-privilege integration account.
  • Apply an appropriate retention period.
  • Review the configuration with Salesforce security and privacy owners.

Dashboard & Reports

Dashboard & Reports

AI

Insights & Recommendations

Analytics

More Analytics Features

Automation

More Automation Features

Get Help

Contact GermainUX Support

The GermainUX team helps you get up and running faster, empower your team, turn data into actionable insights, and optimize performance to deliver measurable business outcomes.

Can't Find What You Need?

Search all GermainUX docs with Ctrl + K, or use the feedback buttons at the bottom of this page to tell us what is missing.

The content of this document is proprietary to GERMAIN SOFTWARE.