- 概述
- 要求
- 安装
- 安装后
- 集群管理
- 监控和警示
- 迁移和升级
- 特定于产品的配置
- 最佳实践和维护
- 故障排除
- 无法获取沙盒映像
- Pod 未显示在 ArgoCD 用户界面中
- Redis 探测器失败
- RKE2 服务器无法启动
- 在 UiPath 命名空间中找不到密码
- ArgoCD 在首次安装后进入“进行中”状态
- 意外不一致;手动运行 fsck
- MongoDB Pod 处于 CrashLoopBackOff 状态或在删除后处于“等待 PVC 配置”状态
- MongoDB Pod 从 4.4.4-ent 升级到 5.0.7-ent 失败
- 集群还原或回滚后服务运行状况不佳
- Pod 在 Init:0/X 中卡住
- Prometheus 处于 CrashLoopBackoff 状态,并出现内存不足 (OOM) 错误
- 监控仪表板中缺少 Ceph-rook 指标
- Pod 无法在代理环境中与 FQDN 通信
- 使用 Automation Suite 诊断工具
- 使用 Automation Suite 支持捆绑包
- 探索日志
将机器人日志保存到 Elasticsearch
可以通过两种类型的配置将机器人日志保存到 Elasticsearch 服务器:基本配置和高级配置。
基本配置提供默认功能,用于激活预配置的 Elasticsearch NLog 目标,该目标由包装在缓冲目标中的 Elasticsearch 目标组成。 在大多数情况下,这种类型的配置就足够了。
但是,如果您需要进一步自定义规则,可以使用高级配置方法。
将机器人日志保存到 Elasticsearch 服务器的选项仅在配置后生效,并且不会追溯性应用。这意味着您将无法再访问在配置选项时数据库中已有的任何日志,因为只能从单个目标检索和显示日志。
基本配置
-
Locate the uipath application in the ArgoCD interface.
-
单击左上角的“应用程序详细信息” 按钮,然后导航到“参数” 选项卡。
-
单击“编辑”,然后使用右侧列中指定的值更新以下参数,并将示例替换为您自己的值:
参数 值 global.userInputs.orchestratorRobotLogsElasticUri示例: https://elastic.example.com:9200。
确保不包含尾部斜杠。global.userInputs.orchestratorRobotLogsElasticAuthUsername示例: elastic-user。global.userInputs.orchestratorRobotLogsElasticAuthPassword示例: elastic-password。 -
保存更改。
-
同步uipath应用程序,并等待流程完成并返回
healthy状态响应。
You can also configure robot logs to be saved to an Elasticsearch server by editing the cluster_config.json file.
基本配置支持 Elasticsearch 版本 7.x。 对于 Elasticsearch 8.x,您需要使用高级配置。
高级配置
您按照以下步骤进行的任何更改都可能对整个系统的功能和稳定性产生负面影响。 建议仅在了解更改的后果后进行更改。
高级配置允许您完全自定义NLog.config目标。
- Follow the basic configuration steps described above.
- 在 ConfigMap 的
orchestrator-customconfig中编辑nlog.json参数。- 根据以下示例创建
/tmp/nlog.custom.json文件。 - Use
./orchestrator_configurator.sh -l /tmp/nlog.custom.jsonto update ConfigMap in the Orchestrator Configurator Tool.
- 根据以下示例创建
高级配置还支持 Elasticsearch 版本 8.x。
Elasticsearch 7.x 示例
{
"Nlog": {
"targets": {
"robotElasticBuffer": {
"flushTimeout": 1000,
"bufferSize": 1000,
"slidingTimeout": false,
"target": {
"uri": "https://elastic.example.com:9200",
"requireAuth": true,
"username": "elastic-user",
"password": "elastic-password",
"index": "${event-properties:item=indexName}-${date:format=yyyy.MM}",
"documentType": "logEvent",
"includeAllProperties": true,
"layout": "${message}",
"excludedProperties": "agentSessionId,tenantId,indexName"
}
}
}
}
}
{
"Nlog": {
"targets": {
"robotElasticBuffer": {
"flushTimeout": 1000,
"bufferSize": 1000,
"slidingTimeout": false,
"target": {
"uri": "https://elastic.example.com:9200",
"requireAuth": true,
"username": "elastic-user",
"password": "elastic-password",
"index": "${event-properties:item=indexName}-${date:format=yyyy.MM}",
"documentType": "logEvent",
"includeAllProperties": true,
"layout": "${message}",
"excludedProperties": "agentSessionId,tenantId,indexName"
}
}
}
}
}
Elasticsearch 8.x 示例
{
"Nlog": {
"targets": {
"robotElasticBuffer": {
"flushTimeout": 1000,
"bufferSize": 1000,
"slidingTimeout": false,
"target": {
"uri": "https://elastic.example.com:9200",
"requireAuth": true,
"username": "elastic-user",
"password": "elastic-password",
"index": "${event-properties:item=indexName}-${date:format=yyyy.MM}",
"documentType": "",
"includeAllProperties": true,
"layout": "${message}",
"excludedProperties": "agentSessionId,tenantId,indexName"
}
}
}
}
}
{
"Nlog": {
"targets": {
"robotElasticBuffer": {
"flushTimeout": 1000,
"bufferSize": 1000,
"slidingTimeout": false,
"target": {
"uri": "https://elastic.example.com:9200",
"requireAuth": true,
"username": "elastic-user",
"password": "elastic-password",
"index": "${event-properties:item=indexName}-${date:format=yyyy.MM}",
"documentType": "",
"includeAllProperties": true,
"layout": "${message}",
"excludedProperties": "agentSessionId,tenantId,indexName"
}
}
}
}
}