Viewing logs

Learn how to view logs for your Azure-based Db2 deployment.

Monitoring logs is essential for maintaining the health, security, and performance of your cloud-based infrastructure. Logs provide real-time visibility into system behavior, application performance, and user activity. By analyzing logs, you can:

  • Detect and troubleshoot issues before they impact users
  • Identify security threats and unauthorized access attempts
  • Ensure compliance with operational and regulatory standards
  • Optimize performance by understanding usage patterns and resource consumption

Proactive log monitoring enables faster incident response, supports root cause analysis, and helps maintain a resilient and secure environment.

Viewing Container Logs in Azure

  1. Open the Azure Portal

    Navigate to https://portal.azure.com

  2. Access the Resource Group
    • Go to Resource groups in the left-hand navigation pane.
    • Search for a resource group with a name similar to:rg-ibmbyoc-<unique-id>-logging
  3. Open the Log Analytics Workspace
    • Within the resource group, locate and open the Log Analytics workspace.
    • The workspace name typically follows the pattern: logs-ibmbyoc-<unique-id>-common
  4. Navigate to Logs

    In the workspace, select Logs from the menu.

  5. Run a KQL Query

    Use one of the following Kusto Query Language (KQL) queries to retrieve log data.

    • To view Console logs

      
      ContainerLogV2
      | where ContainerName has "console"
      
    • To view Db2 logs

      
      ContainerLogV2
      | where ContainerName has "mgmt" or ContainerName has "db"
      
    • To view db2diag logs

      
      ContainerLogV2
      | where LogMessage has "db2diag"
      

Viewing Data Plane Logs in Azure

To access and analyze Data Plane logs for your Db2 Warehouse SaaS BYOC deployment, follow these steps:

  • Open the Azure Portal: https://portal.azure.com
    • Search for a group similar to rg-ibmbyoc-<unique-id>-orchestration
  • Open the Monitoring Logs:
    • Navigate to Monitoring → Logs
  • Run one of the following KQL queries:
    • To view function requests: AppRequests
    • To view function traces: AppTraces