UiPath Orchestrator Guide

Logging Configuration

The Web.config file (C:\Program Files (x86)\UiPath\Orchestrator) contains multiple settings that enable you to configure Orchestrator to your liking. Most of the parameters that interest you can be found under appSettings, but there might be some logging configurations that can be changed after install.

Note:

It is recommended that only administrators change the values of these parameters.
Additionally, it is recommended that you shut down the IIS site in order to modify web.config settings under any circumstances.

Logging is divided as follows:

  1. Robot
  2. Schedules
  3. All others

  4. <logger name="Robot.*" writeTo="database,robotElasticBuffer" final="true" /> - The Robot logger, with the following parameters:

    • writeTo - The location at which the log messages generated by the Robot are written. By default, they are sent to both a local SQL database (database) and ElasticSearch (robotElasticBuffer). Delete one of the values to stop logging to that location.
    • final - A rule that indicates what to do when a match between a logged message and the logger name is found. When set to true, it does not look for another match. By default, it is set to true.
  5. <logger name="Quartz.*" minlevel="Info" writeTo="eventLogQuartz" final="true" /> - Used to log and maintain schedule information.

Note:

To ensure a smooth run for schedules in an Orchestrator setup with a load balancer you should also set the quartz.jobStore.clustered parameter to true.

  1. <logger name="*" minlevel="Info" writeTo="eventLog" /> - Used to log and maintain all other Orchestrator components.

Other preferences to set up for ElasticSearch:

<target xsi:type="ElasticSearch" name="robotElastic" uri="<elasticSearch_url>" index="${event-properties:item=indexName}-${date:format=yyyy.MM}" documentType="logEvent" includeAllProperties="true" layout="${message}" excludedProperties="agentSessionId,tenantId,organizationUnitId,indexName" />

Configure:

  • uri - the URL location of your ElasticSearch account.
  • excludedProperties - data that you do not want to be saved to ElasticSearch.

Note:

If you maintain more than a million logs in the SQL database, you might have some performance issues. For more than a million logs, we recommend using ElasticSearch.


See Also

App Settings

Logging Configuration