Collect Orchestrator logs from Azure App Service

Collect Orchestrator logs from Azure App Service

Follow the steps indicated below in order to collect Orchestrator logs in Azure:

  1. Go to Kudu > DebuConsole > CMD > site > wwwroot
  2. Open browser developer tools (F12) > Console
  3. Run: window.localStorage['maxViewItems'] = 1000 and hit Enter:Image_2021-03-04_20-14-21.png
  4. Now refresh the page and go back again to Kudu > DebuConsole > CMD > site > wwwroot
  5. Open UiPath.Orchestrator.dll.config, locate the section 'Targets' and put the following script under 'Targets':

<target name="file" xsi:type="File"
layout="${longdate} - ${level:uppercase=true} - ${logger} ${message} ${onexception:${exception:format=tostring:maxInnerExceptionLevel=10:innerFormat=tostring}}"
fileName="D:/home/logfiles/${shortdate}-OrchestratorApplication.log"
keepFileOpen="true"
archiveEvery="Day"
maxArchiveFiles="5"
/>

It has to look like this: Image_2021-03-04_20-15-59.png

6. Now locate the 'Logger' section and modify it like this:

<logger name="*" minlevel="Trace" writeTo="file" />

image.png

7. Now reproduce the error, and then go back to Kudu > Advanced Tools > Go > CMD > Log Files:

Image_2021-03-12_19-41-05.png

Image_2021-03-12_19-48-23.png

Image_2021-03-12_19-41-58.png

Image_2021-03-12_19-49-08.png

The Orchestrator logs are there to be found:

Image_2021-03-12_19-45-38.png