Prerequisites
Data Collected from Debug Logs
Configure Alerts
Security and Privacy
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
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
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.
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.Open Debug Logs in Salesforce Setup
Choose who to trace
Set the time window
Choose a debug level
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.Save
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:Open the wizard
Select Salesforce.com Application Monitoring
Choose the GermainUX Engine that will monitor Salesforce
Enter the Salesforce connection and authentication settings
Expand Show Advanced if you want to customize the collection interval
Set Debug Log Monitoring Interval
3600 (1 hour).Complete the wizard
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
Configure the Frequency During Deployment
During the initial Salesforce.com Application Monitoring wizard:- Select Show Advanced.
- Locate Debug Log Monitoring Interval.

Salesforce Debug Log Monitoring Interval settings - GermainUX
- Enter the required frequency in seconds, as a whole number of hours.
- Complete the wizard.
Change the Frequency After Deployment
To update the schedule of an existing debug-log monitor:Open the components
Search for Salesforce Debug Log Monitor
Select the applicable component
Update Execution Schedule
Save the change
Repeat the review for each related Debug Log Monitoring component when applicable
Disable Debug Log Monitoring
Salesforce Debug Log Monitoring uses four related components. Disable all four to stop collection completely.- In the left menu, go to Settings > Germain > State.
- Open the Components tab.
- Search for
Salesforce Debug Log. - Identify all four related components for the Salesforce organization.
- Turn off the toggle in the Enabled column for each component.
- Save the changes if prompted.

Disable Debug Log Monitoring - GermainUX
Re-Enable Debug Log Monitoring
To resume collection:Open the components
Search for Salesforce Debug Log
Enable all four related components
Confirm their execution schedules
Save the configuration
Allow the next scheduled executions to complete
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
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. EachSystem.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
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:Detect a slow click, error, or failed workflow
Open an affected user instance
Review the user’s Session Replay
Identify the action and transaction time
Review related Debug Log KPIs
Inspect Apex class and trigger execution
Review SOQL and database activity
Check for exceptions
Determine which code, query, or integration contributed to the issue
Track and validate the fix
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
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.
Validate Debug Log Monitoring
After the first scheduled collection:Confirm that all four related components are enabled
Confirm that their most recent executions succeeded
Confirm that the next execution times match the intended schedule
Generate or locate a known Salesforce Debug Log in a controlled environment
Verify that GermainUX collects it
Confirm that expected code-unit, SOQL, database, exception, or Visualforce data appears
Verify the Salesforce organization and environment
Confirm timestamps and transaction details
Test any configured categorization or alert
Confirm that user-session correlation works when configured
No Debug Logs Appear
If no data is collected:Confirm that Salesforce generated Debug Logs during the selected period
Verify that the correct users or transactions are being logged
Confirm that the Salesforce OAuth connection is active
Confirm that the integration user can access Debug Logs
Check that all four GermainUX Debug Log Monitoring components are enabled
Review their last execution and next scheduled execution
Confirm that the GermainUX Engine is running
Check network connectivity from the Engine to Salesforce
Review Engine logs for authorization, API, parsing, and download errors
Check Salesforce API usage and applicable limits
Verify dashboard organization, environment, and time filters
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
- 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.
Related Documentation
Dashboard & Reports
AI
Analytics
Automation
Get Help
Contact GermainUX Support
Can't Find What You Need?
The content of this document is proprietary to GERMAIN SOFTWARE.

