insights
2022.4
false
  • Release Notes
    • User Migration Tool Release Notes
  • Getting Started
  • Access and Permissions
  • Interacting with Insights
  • Logs
    • Configuring Log Rules
UiPath logo, featuring letters U and I in white

Insights

Automation CloudAutomation Cloud Public SectorAutomation SuiteStandalone
Last updated Dec 18, 2024

Configuring Log Rules

Overview

Robot logs capture diagnostic and execution logs. You can configure the conditions for which Robot logs are ingested by Insights. For example, you only want to capture logs for Processes that include a specific name.

For more information, see Robot logs.

Configure Log Rules

You can configure the Orchestrator settings in the nlog.custom.config file. To modify the settings, take the following steps:
  1. Place the new log rules inside the nlog.custom.config file. Check the details below for an example:
    {
      "10_Robot_Insights": {
        "logger": "Robot.*",
        "ruleName": "insightsRobotLogsRule",
        "minLevel": "Info",
        "writeTo": "insightsRobotLogs",
        "enabled": false,
        "final": false,
        "filters": {
          "defaultAction": "Ignore",
          "conditions": [
            {
              "condition": "level >= LogLevel.Error or ends-with('${message}', ' execution ended')",
              "action": "Log"
            }
          ]
        }
      }
    }{
      "10_Robot_Insights": {
        "logger": "Robot.*",
        "ruleName": "insightsRobotLogsRule",
        "minLevel": "Info",
        "writeTo": "insightsRobotLogs",
        "enabled": false,
        "final": false,
        "filters": {
          "defaultAction": "Ignore",
          "conditions": [
            {
              "condition": "level >= LogLevel.Error or ends-with('${message}', ' execution ended')",
              "action": "Log"
            }
          ]
        }
      }
    }
  2. Use the Orchestrator Configurator Tool to update the configuration. Use the following command to merge the keys from the custom nlog.custom.config file with the settings already available in the orchestrator-customconfig configuration map.
    ./orchestrator-configurator.sh -l nlog.custom.config ./orchestrator-configurator.sh -l nlog.custom.config
    This command does not remove any existing settings.

Log Rules Example

In the following example we are only sending logs that are above a certain level or contain the message that the execution has ended:

{
  "10_Robot_Insights": {
    "logger": "Robot.*",
    "ruleName": "insightsRobotLogsRule",
    "minLevel": "Info",
    "writeTo": "insightsRobotLogs",
    "enabled": false,
    "final": false,
    "filters": {
      "defaultAction": "Ignore",
      "conditions": [
        {
          "condition": "level >= LogLevel.Error or ends-with('${message}', ' execution ended')",
          "action": "Log"
        }
      ]
    }
  }
}{
  "10_Robot_Insights": {
    "logger": "Robot.*",
    "ruleName": "insightsRobotLogsRule",
    "minLevel": "Info",
    "writeTo": "insightsRobotLogs",
    "enabled": false,
    "final": false,
    "filters": {
      "defaultAction": "Ignore",
      "conditions": [
        {
          "condition": "level >= LogLevel.Error or ends-with('${message}', ' execution ended')",
          "action": "Log"
        }
      ]
    }
  }
}
  • Overview
  • Configure Log Rules
  • Log Rules Example

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.