UiPath Documentation
uipath-cli
latest
false
UiPath CLI 用户指南
重要 :
请注意,此内容已使用机器翻译进行了本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

uip 或审核日志

"uip 或 Audit-logs" 的语法和选项,其中列出了租户审核日志,以进行合规性审核和事件调查。

uip or audit-logs列出租户的审核日志— 记录谁在何时执行了哪些操作。审核条目跟踪对用户、流程、资产、队列、作业、文件夹、计算机、角色、设置、计划和其他实体所做的更改。用于合规性审核、事件调查,或监控特定用户的活动。

大纲​

uip or audit-logs list [options]
uip or audit-logs list [options]

该动词采用全局选项( --output 、 --output-filter 、 --log-level 、 --log-file )。退出代码遵循标准合同。

动词​

动词用途
list列出审核条目,按组件、操作、用户或时间范围筛选。(可选)导出为 CSV。

uip 或审核日志列表​

列出审核日志条目。筛选器使用 AND 语义撰写。使用--export时,日志将在服务器端导出为 CSV,并在准备就绪时下载。

选项​

短长值默认描述
—--componenttext—按组件筛选(例如, Users 、 Assets 、 Processes 、 Queues 、 Jobs 、 Folders 、 Machines 、 Roles 、 Settings 、 Schedules )。
—--actiontext—按操作筛选(例如, Create 、 Update 、 Delete 、 StartJob 、 StopJob 、 Upload 、 Download )。
—--user用户名—用户名精确匹配。
—--created-afterISO 8601—在此日期当天或之后的条目。
—--created-beforeISO 8601—严格在此日期之前的条目。
-l--limit数字50页面大小。
—--offset数字0跳过计数。
—--sort-by字段ExecutionTime descOData 排序表达式。
—--export标记关闭通过服务器端导出 API 将匹配的条目导出到 CSV。
-d--destination路径audit-logs-export.csv输出 CSV 路径。仅适用于--export 。

示例​

# Most recent audit entries across the tenant
uip or audit-logs list

# Filter to the Users component
uip or audit-logs list --component Users --limit 100

# Everything one user did in a window
uip or audit-logs list --user admin@example.com \
    --created-after 2026-04-01 --created-before 2026-04-08

# Export to CSV
uip or audit-logs list --component Jobs --export -d ./jobs-audit.csv
# Most recent audit entries across the tenant
uip or audit-logs list

# Filter to the Users component
uip or audit-logs list --component Users --limit 100

# Everything one user did in a window
uip or audit-logs list --user admin@example.com \
    --created-after 2026-04-01 --created-before 2026-04-08

# Export to CSV
uip or audit-logs list --component Jobs --export -d ./jobs-audit.csv

数据形状(--输出 json)​

内联模式:

{
  "Code": "AuditLogList",
  "Data": [
    {
      "serviceName": "UiPath.Orchestrator.Web.Api.OData.Controllers.UsersController",
      "methodName": "Post",
      "executionTime": "2025-04-15T09:10:00Z",
      "action": "Create",
      "component": "Users",
      "displayName": "jane.doe@example.com",
      "entityId": 1001,
      "operationText": "User admin@example.com created user jane.doe@example.com",
      "userName": "admin@example.com",
      "userType": "DirectoryUser",
      "entities": [
        {
          "auditLogId": 1000001,
          "customData": "{\"Id\":1001,\"UserName\":\"jane.doe\"}",
          "entityId": 1001,
          "entityName": "User",
          "action": "Create",
          "id": 2000001
        }
      ],
      "userId": 42,
      "userIsDeleted": false,
      "userIsActive": true,
      "id": 1000001
    }
  ]
}
{
  "Code": "AuditLogList",
  "Data": [
    {
      "serviceName": "UiPath.Orchestrator.Web.Api.OData.Controllers.UsersController",
      "methodName": "Post",
      "executionTime": "2025-04-15T09:10:00Z",
      "action": "Create",
      "component": "Users",
      "displayName": "jane.doe@example.com",
      "entityId": 1001,
      "operationText": "User admin@example.com created user jane.doe@example.com",
      "userName": "admin@example.com",
      "userType": "DirectoryUser",
      "entities": [
        {
          "auditLogId": 1000001,
          "customData": "{\"Id\":1001,\"UserName\":\"jane.doe\"}",
          "entityId": 1001,
          "entityName": "User",
          "action": "Create",
          "id": 2000001
        }
      ],
      "userId": 42,
      "userIsDeleted": false,
      "userIsActive": true,
      "id": 1000001
    }
  ]
}

对于--export , Code为AuditLogsExported ,有效负载为:

{
  "Code": "AuditLogsExported",
  "Data": {
    "FileName": "jobs-audit.csv",
    "Size": 52318,
    "ExportId": 4711
  }
}
{
  "Code": "AuditLogsExported",
  "Data": {
    "FileName": "jobs-audit.csv",
    "Size": 52318,
    "ExportId": 4711
  }
}
  • uip or jobs — 审核日志的“作业”组件记录作业生命周期事件。
  • uip or users — 解析审核条目中出现的用户名。

另请参阅​

  • 全局选项— --output 、 --output-filter 、 --log-level 、 --log-file 。
  • 退出代码— 标准退出代码合同。
  • 大纲​
  • 动词​
  • uip 或审核日志列表​
  • 选项​
  • 示例​
  • 数据形状(--输出 json)​
  • 相关命令​
  • 另请参阅​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新