订阅

UiPath Orchestrator

UiPath Orchestrator 指南

关于日志

日志” 页面显示机器人在用户有权访问的所有文件夹中生成的日志,包括为通过远程调试会话启动的作业生成的日志。

如需访问,请从文件夹上下文导航到 Orchestrator“自动化”选项卡,然后从显示的选项中选择“日志”

The table below contains field descriptions for the Logs page.

FieldDescription
TimeThe timestamp the log was registered.

You can sort and filter the log list by Time.
LevelThe severity level at which the message was logged. The following options are available: Trace, Debug, Info, Warn, Error, and Fatal.

You can sort and filter the log list by Level.
ProcessThe name of the process that generated a given log message.
HostnameThe name of the workstation used for the process execution.
Host identityThe identity under which the execution takes place. The following values are possible:
<Domain\Username> - jobs executed under that specific account. Displayed in the following cases:
foreground jobs regardless of the Robot version;
all jobs executed on Robots lower than 2021.10;
attended jobs executed on robots connected using a machine key, without user sign-in.

Note: For Robots older than 2021.10, the host identity gets populated dynamically according to the account settings made in Orchestrator. Changing the domain\username for the account used to execute a job changes the host identity as well.

ROOT - background jobs executed on Linux robots.

NT AUTHORITY\LOCAL SERVICE - jobs executed under the Robot service identity. Displayed for background jobs executed on Robots 2021.10+ without credentials.
ⓘ Service mode robots run under NT AUTHORITY\LOCAL SERVICE. User mode robots run under a certain user identity.

N/A - jobs started from the Assistant by users connected using interactive sign-in. For robots connected using the machine key, without user sign-in, the <Domain\Username> is displayed.
MessageThe logged message. This can also be a message logged through the Log Message activity in Studio.
Keep in mind that the content of this column is displayed in the language of the Robot regardless of what language was chosen for Orchestrator.

📘

备注:

只能在 Orchestrator 数据库和 Elasticsearch 中查看在文件夹上下文外部生成的日志。

筛选

要查看机器人为指定作业生成的所有日志,请导航至“作业”页面。
要按生成日志的主机名筛选日志,请使用“日志”页面上的“计算机”筛选。

新筛选器可适用于 ElasticSearch 中存储的日志,而对于数据库中存储的日志,则仅适用于新的日志条目。

日志存储


如果 Orchestrator 处于不可用状态,则在连接恢复前,系统会将日志存储在可用磁盘空间的本地数据库 (C:\Windows\SysWOW64\config\systemprofile\AppData\Local\UiPath\Logs\execution_log_data) 中。恢复连接后,系统会按日志的生成顺序将其分批发送。

📘

注意

将日志成功发送至 Orchestrator 后,系统不会删除此数据库。

作业状态存储在 UiPath 机器人服务的内存中。如果 Orchestrator 处于可用状态,则系统会在二者之间同步作业状态的相关信息。不过,如果 Orchestrator 处于不可用状态,则您在重启 UiPath 机器人服务后便会丢失此类信息。这意味着,每当 Orchestrator 处于可用状态时,您均需再次执行作业。

Logs can be sent to ElasticSearch, a local SQL database, and/or Insights thus enabling you to have non-repudiation logs. They are independent of each other and, as such, an issue encountered in one does not affect the other(s).

Configure the location where logs are stored in UiPath.Orchestrator.dll.config, by changing the value of the writeTo parameter.

如果日志发送到 Elasticsearch 或 SQL 数据库,则“日志”页面会显示机器人发送到 Orchestrator 的条目。如果日志同时发送到 Elasticsearch 和 SQL,则“日志”页面仅显示发送到 Elasticsearch 的条目。

📘

重要

如果您每周在 SQL 数据库中累积超过 200 万个机器人日志,则几个月后如果不清理较旧的日志,性能可能会下降。对于如此大量的日志,我们建议使用 Elasticsearch。请参阅此处有关日志的数据库维护程序。

请注意,如果您使用 Elasticsearch 来存储机器人日志,则在某些情况下只能查询 10000 个项目。

日志记录级别


记录的消息包括以下级别:“Trace”、“Debug”、“Info”、“Warn”、“Error”和“Fatal”

自定义消息也可以通过“日志消息”活动从 Studio 发送到此页面。可以记录上述所有级别的消息,并且应将其用于诊断目的。

例如,在下面的屏幕截图中,您可以看到我们记录了一条严重级别为 Fatal 的自定义消息。

1455

See Logging Levels for more information.

导出日志


通过单击“导出”按钮,可将所有日志导出到 .csv 文件。生成此文件时,系统会考虑应用到此页面的筛选器。例如,如果您设置为仅查看过去 30 天严重性级别为 Info 的日志,则仅下载符合这些条件的条目。

请注意,为了确保最佳性能,导出的条目不按时间倒序排列。

1151

仅在以下情况下,日志的顺序可能不正确:

  • 有两个或更多机器人日志条目的时间戳几乎相同 - 它们直到毫秒部分都相同(表示为 yyyy-MM-dd HH\:mm\:ss.fff 的时间相同),但在毫秒的子单位不同(yyyy-MM-dd HH\:mm\:ss.fffffff 中的最后四个值不同)。
  • 在 Orchestrator 中查看日志时,日志在网格中以默认顺序排序(按时间降序排序)。

但是,这不会影响数据库和导出的 .csv文件。

📘

注意

无论用户选择哪种语言,Orchestrator 的服务器异常以及“作业详细信息”窗口上的堆栈跟踪都以英语记录。

权限


您需要在文件夹上下文中具有对日志查看权限,才能访问在该文件夹中生成的日志。

约一个月前更新


关于日志


建议的编辑仅限用于 API 参考页面

您只能建议对 Markdown 正文内容进行编辑,而不能建议对 API 规范进行编辑。