Automation Suite
2021.10
False
- 概述
- 要求
- 安装
- 安装后
- 集群管理
- 监控和警示
- 迁移和升级
- 特定于产品的配置
- 最佳实践和维护
- 故障排除
Automation Suite 安装指南
上次更新日期 2024年4月19日
审核日志查询
在 Automation Suite 设置中下载 Apps 的审核日志之前,必须满足以下要求:
- You must have access to the machine or virtual machine (VM) where UiPath® services are hosted.
(可选)您需要了解以下内容:
- 需要审核日志的组织名称 (
<orgName>
)。 - 需要导出或删除审核日志的用户电子邮件地址 (
<userEmail>
)。 - 从现在到您要获取或删除审核日志的日期 (
<numDays>
) 之间的天数。
db.getCollection("audit-logs").find({
__tenantId: '<orgName>',
'userInfo.userEmail': '<userEmail>',
timestamp: {
$lte: (new Date().getTime() - 86400000 * <numDays>)
}
});
db.getCollection("audit-logs").find({
__tenantId: '<orgName>',
'userInfo.userEmail': '<userEmail>',
timestamp: {
$lte: (new Date().getTime() - 86400000 * <numDays>)
}
});
例如,要获取用户电子邮件地址为
sampleOrg.admin@org.com
,组织名称为 sampleOrg
的 180 days
以上的审核日志,请运行以下查询:
db.getCollection("audit-logs").find({
__tenantId: 'sampleOrg',
'userInfo.userEmail': 'sampleOrg.admin@org.com',
timestamp: {
$lt: (new Date().getTime() - 86400000 * 180)
}
});
db.getCollection("audit-logs").find({
__tenantId: 'sampleOrg',
'userInfo.userEmail': 'sampleOrg.admin@org.com',
timestamp: {
$lt: (new Date().getTime() - 86400000 * 180)
}
});
db.getCollection("audit-logs").deleteMany({
__tenantId: '<orgName>',
'userInfo.userEmail': '<userEmail>',
timestamp: {
$lte: (new Date().getTime() - 86400000 * <numDays>)
}
});
db.getCollection("audit-logs").deleteMany({
__tenantId: '<orgName>',
'userInfo.userEmail': '<userEmail>',
timestamp: {
$lte: (new Date().getTime() - 86400000 * <numDays>)
}
});
例如,要删除用户电子邮件地址为
sampleOrg.admin@org.com
,组织名称为 sampleOrg
的 180 days
以上的审核日志,请运行以下查询:
db.getCollection("audit-logs").deleteMany({
__tenantId: 'sampleOrg',
'userInfo.userEmail': 'sampleOrg.admin@org.com',
timestamp: {
$lt: (new Date().getTime() - 86400000 * 180)
}
});
db.getCollection("audit-logs").deleteMany({
__tenantId: 'sampleOrg',
'userInfo.userEmail': 'sampleOrg.admin@org.com',
timestamp: {
$lt: (new Date().getTime() - 86400000 * 180)
}
});