# External Monitoring and Logging

Logging on the Sherpa RPA platform can be configured in two different ways:

1. **Logging via Sherpa Orchestrator**

For logging through the Orchestrator, you can use the [“Overview”](https://github.com/KonstantinMastak/SherpaDocs/blob/main/En/sherpa-rpa/sherpa-orchestrator/rabota-v-sherpa-orchestrator/ekrany/obzor/README.md) dashboard

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeQCRJAA1PHYXHBm5ZIsscF_Gs4Dzj8dfhlL6rdwUK6bs9-G4wxIusmj25S3rGw2NQ8N9o0YAw2y28Wp3uQb4FpHHwlJMSns4LXoqEe7Zbsa2zpwHD2LwKFqXCh7TXUaWiP0egxpNyTDc2kpBNd_8XCGlXc?key=C_lgKCFrykmgl4Vl7La7Tg" alt=""><figcaption></figcaption></figure>

or the [“Robot Messages”](https://github.com/KonstantinMastak/SherpaDocs/blob/main/En/sherpa-rpa/sherpa-orchestrator/rabota-v-sherpa-orchestrator/ekrany/soobsheniya-robotov.md) screen, which on the “Users” screen allows you to set up email notifications for each individual user about robot events with a specific level of urgency.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdqOci2IXHPbpfQhJaLy0I5U6RfsiO6cZe2SchLwhURmv7iAoalBCjkpK2QOIMYuGAyt27TCvWi18UsZPqih5QLHBWkyJFVsHiBPwMTpX4xdUoo8yxzL-j6g9Kq81Tn-m7rrBVaR6BH1F88uSi5CqEH1qU?key=iiDSKcUE6eu6BlxEUq3Jmg" alt=""><figcaption></figcaption></figure>

Logging can also be configured at the Orchestrator level through SQL queries to the Orchestrator table where robot messages are stored.

**Important!** *When configuring logging through SQL queries, it is necessary to monitor the execution time of the query in the slow query statistics to avoid overloading the Orchestrator.*

2. **Logging with NLog**

At the robot level, logging can be done using NLog. NLog is integrated with the robot and allows for automatic log sending to multiple locations.

You can read more about this at the link:

{% embed url="<https://nlog-project.org/config/>" %}

To configure logging with NLog:

* open the folder: c:\Users\User\AppData\Roaming\Sherpa RPA Data\Setting\\
* find the file: nlog.config.xml
* specify the desired configuration in the file.

The functionality of the Sherpa RPA platform allows you to specify an additional folder in the robot settings for storing copies of text logs. To do this, open the Sherpa Assistant settings and in the “Execution” tab, select the additional “Robot Log” tab. In the field “Additional directory for writing robot logs” click the “Select” button to specify the desired folder.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcz_LOkiKEmxjF9MRWN_E0wjgdPxLfiIQOchsBTeUaeioqMEUcGijcWJn2cxz2_zs_DwfGpvRvn3oepl6TjG5xzp2VDT1Drk6nnyDKMdMM1Cg1qqOhhd-N2a1XbVtIjFyki1YJYK-rVF8j58KLnmgftkzc?key=YQr2p57ALaah0ntWBkYlFA" alt=""><figcaption></figcaption></figure>

and, in the opened window, select the folder on your computer.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdk47LdtlDu8OtmUD3zti-gfAdTmtN5-OIu7AHn3_R_NR__Ya4a44aasv80YoI0W8veR9oUTk8cPgsNOETrIiuiwTXmwkd4PppGajgLZLc_bR0X6ZoNy5WUZOsGnSNSRPUiemOLIQaKZ1nbiZHz_y0-wYhj?key=YQr2p57ALaah0ntWBkYlFA" alt=""><figcaption></figcaption></figure>

**Note:** *You can also specify a network folder where robot logs will be saved.*

A typical path to the coordinator logs looks like this:

C:\ProgramData\Sherpa RPA Coordinator\Log\SherpaRPAService.log

A typical path to the robot logs:

C:\Users\\\AppData\Roaming\Sherpa RPA Data\Log

Then in each of the options, find the folders with the current date, where text files with the robot's start time are stored.
