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
Parameter | Type | Required | Description |
--root_dir | string | No | Specifies the LogListener installation root directory. The default value is /usr/local/loglistener-* (the tool automatically matches installation directories under this path pattern).If you installed LogListener using a custom path, manually specify the complete installation path. For example: if you installed LogListener version 2.7.2 using the default path, its root directory is /usr/local/loglistener-2.7.2. |
--topic | string | No | Specifies the ID of the log topic (Topic) to be checked. The Topic ID can be obtained from the log topic list in the CLS console. For detailed operations, see Log Topic. If this parameter is not specified, the tool checks all log topics associated with the machine. If the parameter is specified, it checks only the collection configurations related to this Topic, resulting in a more precise inspection scope. |

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
Parameter | Type | Required | Description |
--kubeconfig | string | No | The path to the configuration file used to connect to Kubernetes. The default value is /root/.kube/config. Usually, no special setup or specification is required after kubectl successfully connects to the cluster. |
--logConfig | string | No | The name of the LogConfig, which specifies the LogConfig to be detected. Use the kubectl get logconfigs command to view the list of LogConfigs in the current cluster. |
--pod | string | No | The Pod name, which specifies the Pod to be detected. If a Pod is specified, the --namespace must also be specified. |
--namespace | string | No | Specifies the namespace where the Pod to be detected resides. If a namespace is specified, the --pod must also be specified. |
--topic | string | No | Specifies the ID of the log topic (Topic) to be detected, which is used to check the LogConfigs associated with that Topic. A cluster may have multiple LogConfigs associated with the same Topic. The Topic ID can be obtained from the CLS console. For detailed operations, see Log Topic. |
./detect-tool --logConfig=cls-log-config --pod=cls-provisioner-xxxxxxxxxxx --namespace=kube-system

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

Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan