wget https://mirrors.tencentyun.com/install/cls/script/loglistener/loglistener_operator && chmod u+x loglistener_operator
wget https://mirrors.tencent.com/install/cls/script/loglistener/loglistener_operator && chmod u+x loglistener_operator
./loglistener_operator install -s ${secret_id} -k ${secret_key} -r ${region}
./loglistener_operator install -s ${secret_id} -k ${secret_key} -r ${region} --version ${version}
./loglistener_operator install -s ${secret_id} -k ${secret_key} -r ${region} --package_path ${package_path}
./loglistener_operator install -s ${secret_id} -k ${secret_key} -r ${region} --url https://xxx.tar.gz

Parameter Name | Required or Not | Description |
-s | Yes | Part of the Cloud API Key, which is used to identify the API caller. Ensure that the account associated with the Cloud API key has the appropriate LogListener log collection permission. |
-k | Yes | Part of the Cloud API Key, which is used to encrypt signature strings and the server-side verification key for signature strings. Please ensure the associated account of the cloud API key has appropriate LogListener Log Collection Permissions. |
-n | No | Indicates the method LogListener uses to access the service domain. Valid values: internal (private network access, default), internet (public network access). Private network access: Applicable to Tencent Cloud servers located in the same region as the machine group. Public network access: Applicable to non-Tencent Cloud servers or to servers located in regions that do not match those of the machine group. |
-r | Yes | region indicates the region where the CLS is deployed. Enter the appropriate domain name abbreviation, such as ap-beijing or ap-guangzhou. Note: Note: When the CLS region is inconsistent with your business machine's region, configure the parameter network as internet to represent public network access. |
-d | No | The domain name representing the CLS region. For example, ap-beijing.cls.tencentyun.com, ap-guangzhou.cls.tencentyun.com. Note: When the CLS service area is inconsistent with your business machine region, configure the public network domain name. For example, ap-beijing.cls.tencentcs.com. |
-i | No | The IP address of the machine. The machine group can be associated with the machine using the configured IP address. For details, see Machine Group. If not specified, LogListener will automatically obtain the local IP address. |
-l | No | Machine ID. Once entered, the machine will be associated with the machine group also having the filled machine identification. For details, see Machine Group. Multiple identifiers separated by commas. Note: If a machine label is configured, the machine can only be associated with the machine group using the machine label instead of the IP address; if not configured, the machine group can only be associated with the machine using the IP address. |
-p | No | Port, default 80. |
-u | No | Do not upload machine identification to CLS by default. |
--base_dir | No | LogListener installation path, default installation under the /opt directory. |
--package_path | No | Specify the local package path when installing with a local package. |
--url | No | Specify URL during installation, specify mirrors domain names or IP addresses. |
--version | No | Install specified version number, default to latest version. |
./loglistener_operator install --help.
systemctl start loglistener
systemctl check loglistener to check if startup is successful.
/opt/loglistener), run the following command to view the version../loglistener -v
/opt/loglistener), run the following command to view help../loglistener -h
systemctl stop loglistener
systemctl restart loglistener
systemctl check loglistener to check whether the restart is successful.systemctl status loglistener

systemctl check loglistener
systemctl stop loglistener to stop running the previous version of LogListener.systemctl stop loglistene
/opt/loglistener), run the uninstallation command with administrator privileges in the path /opt/loglistener/tools:./loglistener_operator uninstall
systemctl stop loglistener to stop running the previous version of LogListener./opt/loglistener as an example, go to the installation directory and backup the checkpoint file directory ./data in the old version. For example, backup the old version of checkpoint file to /tmp/loglistener-backup.cp -r ./data /tmp/loglistener-backup/
./loglistener_operator uninstall to uninstall the old version of LogListener./opt/loglistener, copy the backup checkpoint file directory (procedure 2) to the new version of LogListener directory.cp -r /tmp/loglistener-backup/data ./
systemctl start loglistener to start running the new version of LogListener.systemctl stop loglistener to stop running the previous version of LogListener. ./loglistener_operator uninstall to uninstall the old version of LogListener.systemctl start loglistener to start running the new version of LogListener.Feedback