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]
动词
| 动词 | 用途 |
|---|---|
list | 列出审核条目,按组件、操作、用户或时间范围筛选。(可选)导出为 CSV。 |
uip 或审核日志列表
列出审核日志条目。筛选器使用 AND 语义撰写。使用--export时,日志将在服务器端导出为 CSV,并在准备就绪时下载。
选项
| 短 | 长 | 值 | 默认 | 描述 |
|---|---|---|---|---|
| — | --component | text | — | 按组件筛选(例如, Users 、 Assets 、 Processes 、 Queues 、 Jobs 、 Folders 、 Machines 、 Roles 、 Settings 、 Schedules )。 |
| — | --action | text | — | 按操作筛选(例如, Create 、 Update 、 Delete 、 StartJob 、 StopJob 、 Upload 、 Download )。 |
| — | --user | 用户名 | — | 用户名精确匹配。 |
| — | --created-after | ISO 8601 | — | 在此日期当天或之后的条目。 |
| — | --created-before | ISO 8601 | — | 严格在此日期之前的条目。 |
-l | --limit | 数字 | 50 | 页面大小。 |
| — | --offset | 数字 | 0 | 跳过计数。 |
| — | --sort-by | 字段 | ExecutionTime desc | OData 排序表达式。 |
| — | --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— 解析审核条目中出现的用户名。