Processor Architecture | Operating System Category | Supported Installation Environment |
x64/ARM | TencentOS Server | TencentOS Server 3.1,TencentOS Server 2.4 |
| CentOS (64-bit) | CentOS_6.8_64-bit, CentOS_6.9_64-bit, CentOS_7.2_64-bit, CentOS_7.3_64-bit, CentOS_7.4_64-bit, CentOS_7.5_64-bit, CentOS_7.6_64-bit, CentOS_8.0_64-bit |
| Ubuntu (64-bit) | Ubuntu Server_14.04.1_LTS_64-bit, Ubuntu Server_16.04.1_LTS_64-bit, Ubuntu Server_18.04.1_LTS_64-bit, Ubuntu Server_20.04.1_LTS_64-bit, Ubuntu Server_22.04.1_LTS_64-bit |
| Debian (64-bit) | Debian_8.2_64-bit, Debian_9.0_64-bit, Debian_12.0_64-bit |
| openSUSE (64-bit) | openSUSE_42.3_64-bit |
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
# Private Network Access./loglistener_operator install -s ${secret_id} -k ${secret_key} -r ${region}# Public Network Access./loglistener_operator install -s ${secret_id} -k ${secret_key} -r ${region} -n internet
# Private Network Access./loglistener_operator install -s ${secret_id} -k ${secret_key} -r ${region} --version ${version}# Public Network Access./loglistener_operator install -s ${secret_id} -k ${secret_key} -r ${region} --version ${version} -n internet
# Private Network Access./loglistener_operator install -s ${secret_id} -k ${secret_key} -r ${region} --package_path ${package_path}# Public Network Access./loglistener_operator install -s ${secret_id} -k ${secret_key} -r ${region} --package_path ${package_path} -n internet
# Private Network Access./loglistener_operator install -s ${secret_id} -k ${secret_key} -r ${region} --url https://xxx.tar.gz# Public Network Access./loglistener_operator install -s ${secret_id} -k ${secret_key} -r ${region} --url https://xxx.tar.gz -n internet

Parameter Name | Required | 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 | TencentCloud API Key consists of two parts. SecretKey is the key used to encrypt signature strings and verify signature strings on the server side. Ensure that the account associated with the TencentCloud API Key has the corresponding LogListener log collection permission. |
-n | No | Specifies how LogListener accesses the service domain name. 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: When the region of the CLS service you use differs from that of your business servers, configure the network parameter as internet, which represents public network access. |
-d | No | Indicates the domain name of the region where the CLS service is located, such as ap-beijing.cls.tencentyun.com, ap-guangzhou.cls.tencentyun.com, and so on. Note: When the region of the CLS service you use differs from that of your business servers, 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 left blank, LogListener will automatically retrieve the IP address of the local machine. |
-l | No | Machine id. After the machine id is configured, the machine will be associated with machine groups that have the same machine id. For details, see Machine Group. Multiple ids should be 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. If HTTPS encrypted transmission is required, specify 443. |
-u | No | By default, machine id is not uploaded to CLS. |
--base_dir | No | LogListener installation path. By default, it is installed in the /opt directory. |
--package_path | No | Specify the path of the local package when a local package is used for installation. |
--url | No | Specify the URL of the mirrors repository when installing via URL. |
--version | No | Specify the version number to install; the latest version is installed by default. |
--dynamic_ip | No | Controls whether to enable the dynamic IP address auto-detection capability. Default: false. If set to true, updates can be applied in real time when the IP address changes (supported only in machine id scenarios; not available for IP address association scenarios). Note: This parameter is supported only in LogListener version 3.5.7 and above. |
--switch_endpoint | No | Enable backup domain. Default: false. If set to true, the backup domain will be used when the primary domain network fails. When the input parameter is set to true, the configuration file adds a backup_endpoints field (backup domain), and the system will automatically populate the backup domain. If the user initializes with private network access, backup_endpoints will be automatically populated with the public network. If the user initializes with public network access, backup_endpoints will be automatically populated with the private network. You can also manually modify the backup domain in the configuration file (multiple entries are supported). If the primary domain is inaccessible, LogListener will attempt each backup domain in sequence until successful. Note: This parameter is supported only in LogListener version 3.5.7 and above. |
./loglistener_operator install --help.
systemctl start loglistener
systemctl check loglistener to check whether it has started successfully:
/opt/loglistener)../loglistener -v
/opt/loglistener)../loglistener -h
systemctl stop loglistener
systemctl restart loglistener
systemctl check loglistener to check whether it has restarted successfully.systemctl status loglistener

systemctl check loglistener
systemctl stop loglistener to stop running the old version of LogListener.systemctl stop loglistener
/opt/loglistener), specifically in the /opt/loglistener/tools directory../loglistener_operator uninstall
/etc/init.d/loglistenerd -v
/etc/init.d/loglistenerd -h
systemctl stop loglistenerd
/etc/init.d/loglistenerd stop
systemctl restart loglistenerd
/etc/init.d/loglistenerd check to check whether the restart is successful.
/etc/init.d/loglistenerd restart

/etc/init.d/loglistenerd status

/etc/init.d/loglistenerd check

/usr/local/ as an example, execute the uninstall command with administrator privileges in the /usr/local/loglistener/tools directory:./loglistener.sh uninstall
/usr/local/loglistener as an example, navigate to the installation directory and back up the checkpoint file directory ./data from the old version. For instance, back up the old version's checkpoint files to the /tmp/loglistener-backup directory.cp -r ./data /tmp/loglistener-backup/
/usr/local/loglistener as an example, copy the backed-up checkpoint file directory (Step 2) to the new version LogListener directory.cp -r /tmp/loglistener-backup/data ./
피드백