Processor Architecture | Operating System Category | Supported Installation Environment |
x64/ARM64 | TencentOS Server | TencentOS Server 2.4,TencentOS Server 3.1,TencentOS Server 4 |
| CentOS (64-bit) | CentOS_7.2_64-bit, CentOS_7.6_64-bit |
| Ubuntu (64-bit) | Ubuntu Server_16.04.1_LTS_64-bit, Ubuntu Server_18.04.1_LTS_64-bit, Ubuntu Server 20.04 LTS 64-bit, Ubuntu Server 22.04 LTS 64-bit |
| Debian (64-bit) | Debian_8.2_64-bit, Debian_9.0_64-bit, Debian_10.2_64-bit, Debian_11.1_64-bit, Debian_11.4_64-bit |
| openSUSE (64-bit) | openSUSE leap15.1,openSUSE leap15.4 |
| CentOS Stream | CentOS Stream 8 64-bit, CentOS Stream 9 64-bit |
| AlmaLinux | AlmaLinux 9.2 64-bit |
| OpenCloudOS | OpenCloudOS Server 9 |
| Rocky Linux | Rocky Linux 9.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
# Private Network Access./loglistener_operator install --uin ${uin} -r ${region}# Public Network Access./loglistener_operator install --uin ${uin} -r ${region} -n internet
# Private Network Access./loglistener_operator install --uin ${uin} -r ${region} --version ${version}# Public Network Access./loglistener_operator install --uin ${uin} -r ${region} --version ${version} -n internet
./loglistener_operator install --uin ${uin} -r ${region} --package_path ${package_path}# Public Network Access./loglistener_operator install --uin ${uin} -r ${region} --package_path ${package_path} -n internet
# Private Network Access./loglistener_operator install --uin ${uin} -r ${region} --url https://xxx.tar.gz# Public Network Access./loglistener_operator install --uin ${uin} -r ${region} --url https://xxx.tar.gz -n internet
outputs[].detail.Uin in the local JSON configuration under <installation directory>/conf/user_config/ to the current account UIN, and ensure it is consistent with the --uin parameter in the installation command.
Parameter Name | Required | Description |
-s | Required when SecretId and SecretKey are used for installation. | 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 | Required when SecretId and SecretKey are used for installation. | 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. |
--uin | Required when UIN (weak authentication) is used for installation. | Tencent Cloud account UIN. This parameter is mutually exclusive with SecretId and SecretKey and cannot be configured at the same time. |
-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. |
-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 | IP address of the machine. A machine group can be associated with this machine through the configured IP address. For details, see Machine Group. If not specified, LogListener will automatically obtain the IP address of the 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 | When installing with a local package, specify the full path of the local installation package ( .tar.gz file), including the file name, for example, /tmp/loglistener.tar.gz. Specifying a directory path will not be recognized. The local installation package can be downloaded from the official CLS repository. The naming format is loglistener-linux-<processor architecture>-<version>.tar.gz (use the full installation package without the -update suffix). For details, see the download address in Install LogListener - Install with a local package. |
--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 accesses via the private network, the backup_endpoints field is automatically populated with the public network domain. If the user accesses via the public network, the backup_endpoints field is automatically populated with the private network domain. 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. |
--skip_os_support_check | No | Supported only by LogListener version 3.6.4 and above. When the parameter is enabled, it allows installation to proceed by skipping the system allowlist verification in non-standard OS environments. |
./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
/opt/loglistener).# Switch from strong authentication to weak authentication/opt/loglistener/loglistener convert_auth --auth_mode --uin ${uin}# Switch from weak authentication to strong authentication/opt/loglistener/loglistener convert_auth --auth_mode -s ${secret_id} -k ${secret_key}
systemctl stop loglistener to stop running the old version of LogListener.systemctl stop loglistener
/opt/loglistener/tools directory under the LogListener installation directory (the default installation directory is /opt/loglistener)../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 ./
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários