How to collect Orchestrator logs from Azure App Service?
Follow the steps indicated below in order to collect Orchestrator logs in Azure:
- Go to Kudu > DebuConsole > CMD > site > wwwroot
- Open browser developer tools (F12) > Console
- Run: window.localStorage['maxViewItems'] = 1000 and hit Enter:
- Now refresh the page and go back again to Kudu > DebuConsole > CMD > site > wwwroot
- 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"
/>
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"
/>
- Now locate the 'Logger' section and modify it like this:
- Now reproduce the error, and then go back to Kudu > Advanced Tools > Go > CMD > Log Files:
- The Orchestrator logs are there to be found: