chmod +x loglistener-check。https://mirrors.tencent.com/install/cls/loglistener-check/linux/loglistener-checkUsage of ./loglistener-check:-h, --help help for loglistener--root_dir string (optional) install loglistener root dir (default is /usr/local/loglistener-*)--topic string (optional) topic ID
参数 | 类型 | 是否必填 | 说明 |
--root_dir | string | 否 | 指定 LogListener 安装根目录。默认值为 /usr/local/loglistener-*(工具会自动匹配该路径模式下的安装目录)。如果您通过自定义路径安装了 LogListener,请手动指定完整的安装路径。例如:使用默认路径安装了 LogListener 2.7.2版本,其根目录为 /usr/local/loglistener-2.7.2。 |
--topic | string | 否 | 若不指定此参数,工具将对该机器上所有关联的日志主题进行检查;指定后仅检查该 Topic 相关的采集配置,检查范围更加精确。 |

chmod +x detect-tool。https://mirrors.tencent.com/install/cls/detect-tool/linux/detect-toolhttps://mirrors.tencent.com/install/cls/detect-tool/mac/detect-toolhttps://mirrors.tencent.com/install/cls/detect-tool/windows/detect-tool
Usage of ./detect-tool:--kubeconfig string (optional) Path to a kubeconfig file, specifying how to connect to the API server. (default "/root/.kube/config")--logConfig string (optional) logconfig name--namespace string (optional) pod name namespace--pod string (optional) pod name--topic string (optional) topic id
参数 | 类型 | 是否必填 | 说明 |
--kubeconfig | string | 否 | 用于连接 Kubernetes 的配置文件路径。默认值为 /root/.kube/config。通常 kubectl 正常连接到集群后,无需特殊设置和指定。 |
--logConfig | string | 否 | 采集配置(LogConfig)名称,指定要检测的采集配置。可通过 kubectl get logconfigs 命令查看当前集群中的采集配置列表。 |
--pod | string | 否 | Pod 名称,指定需要检测的 Pod。若指定了 Pod,则必须同时指定 --namespace。 |
--namespace | string | 否 | 指定需要检测的 Pod 所在的 namespace。若指定了 namespace,则必须同时指定 --pod。 |
--topic | string | 否 | 指定需要检测的日志主题(Topic)ID,用于检查与该 Topic 关联的采集配置。一个集群可能会有多个采集配置关联到同一个 Topic。Topic ID 可在日志服务控制台获取,具体操作请参见 日志主题。 |
./detect-tool --logConfig=cls-log-config --pod=cls-provisioner-xxxxxxxxxxx --namespace=kube-system

./detect-tool --topic=1a2763e2-75f9-4a16-b921-1a80e3de7356

文档反馈