LogListener version | Processor Architecture | Operating System Category | Supported Installation Environment |
v2.x.x | 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 |
/usr/local/ in this example). Then, go to the LogListener directory /usr/local/loglistener/tools and run the installation command.loglistener-linux-x64 by default. To install a specific version, specify the version number, for example, replace loglistener-linux-x64 with loglistener-linux-x64-2.8.0 to install the 2.8.0 version.wget http://mirrors.tencent.com/install/cls/loglistener-linux-x64.tar.gz && tar zxvf loglistener-linux-x64.tar.gz -C /usr/local/ && cd /usr/local/loglistener/tools && ./loglistener.sh install
wget http://mirrors.tencentyun.com/install/cls/loglistener-linux-x64.tar.gz && tar zxvf loglistener-linux-x64.tar.gz -C /usr/local/ && cd /usr/local/loglistener/tools && ./loglistener.sh install
/usr/local/ installation path, go to the /usr/local/loglistener/tools path and run the following command to initialize LogListener as the root user (by default, the private network is used to access the service):./loglistener.sh init -secretid AKID******************************** -secretkey ******************************** -region ap-xxxxxx
Parameter Name | Required | Type Description |
secretid | Yes | Part of the Cloud API Key, SecretId is used to identify the API caller. Ensure that the account associated with the Cloud API key has the appropriate LogListener log collection permission. |
secretkey | Yes | Part of the Cloud API Key SecretKey is used to encrypt signature strings and is the server-side verification key for signature strings. Please ensure the associated account of the Cloud API Key has appropriate LogListener Log Collection Permissions. |
encryption | No | Whether to encrypt and store the Cloud API Key. To encrypt the key, set the parameter to true; if encryption of the key is not required, set it to false. For details, see Key Encryption Storage. |
network | No | It indicates how LogListener accesses the CLS service. Values: intra for private network access(default) and internet for 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. |
region | If domain is configured, this parameter is not required. Otherwise, it is required. | 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 CLS location is inconsistent with your business machine location, configure the network parameter as internet to enable access over public network. |
domain | Yes. (Unless region is configured) | The domain name representing the CLS region. For example, ap-beijing.cls.tencentyun.com or ap-guangzhou.cls.tencentyun.com. Note: When the CLS service area used by your business machine is inconsistent with its region, configure a public network domain name, such as ap-beijing.cls.tencentcs.com. |
ip | No | The IP address of the machine that can be associated with the machine group using the configured IP address. For details, see Machine Group. If not specified, LogListener will automatically obtain the local IP address. |
label | 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. |

internet explicitly:./loglistener.sh init -secretid AKID******************************** -secretkey ******************************** -region ap-xxxxxx -network internet

region indicates the region of the CLS you use, instead of the region where your business machine resides.systemctl start loglistenerd
/etc/init.d/loglistenerd start

/etc/init.d/loglistenerd -v
/etc/init.d/loglistenerd -h
systemctl (start|restart|stop) loglistenerd # Start, restart, stop
/etc/init.d/loglistenerd (start|restart|stop) # Start, restart, stop
/etc/init.d/loglistenerd status

/etc/init.d/loglistenerd check

/usr/local/ installation path, go to the /usr/local/loglistener/tools path and run the uninstallation command as the admin:./loglistener.sh uninstall
loglistener/data) on the earlier version; for example, back up the legacy breakpoint file to the /tmp/loglistener-backup directory.cp -r loglistener-2.2.3/data /tmp/loglistener-backup/
cp -r /tmp/loglistener-backup/data loglistener-<version>/
<version> as required. The following is an example:cp -r /tmp/loglistener-backup/data loglistener-2.8.2/
Feedback