OS | Compatible Versions |
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 |
Debian (64-bit) | Debian_8.2_64-bit, Debian_9.0_64-bit |
openSUSE (64-bit) | openSUSE_42.3_64-bit |
TencentOS Server | TencentOS Server 3.1, TencentOS Server 2.4 |
LogListener Version | Supported Feature | Feature Description | Documentation |
v2.8.0 | GBK encoding for collection; optimization of the escape character in JSON extraction mode | LogListener can collect GBK-encoded log text. | - |
v2.7.4 | Host name collection ( hostname ) | LogListener collects and reports the machine host name as a default field and displays __HOSTNAME__ as a key, such as __HOSTNAME__:VM-108-centos. | - |
v2.6.4 | Combined parsing to customize complex log parsing rules | You can use LogListener's combined parsing mode to parse logs. This mode allows you to enter JSON code in the console to customize the log parsing pipeline logic. | |
v2.6.0 | CVM batch deployment | You can select CVM instances in the console and batch distribute LogListener deployment tasks through an API to automatically complete LogListener installation and deployment (including accesskey , ID, and region configuration). | |
v2.5.4 | LogListener service logs | LogListener service logs are used to record the operation, collection, and monitoring activities of LogListener, and you can configure visual graphs to display such log data. | |
v2.5.2 | Uploading parsing-failed logs | Parsing-failed logs can be uploaded, using LogParseFailure as the key name (Key ) and the raw log content as the key value (Value ). | - |
v2.5.0 | LogListener auto-upgrade | Users can set a time period for Agent auto-upgrade or select specific machine groups to upgrade manually. | |
v2.4.5 | Multi-line log extraction with regex | The extraction mode of Multi-line - Full regular expression is added to LogListener collection configuration rules for log collection. |
/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 | Description |
secretid | |
secretkey | Part of the Cloud API key. Used to encrypt signature strings and verify server-side signature strings. |
region | |
network | Type of the network through which LogListener accesses the service by domain name. Valid values: intra (private network), internet (public network). Default value: intra |
IP | Machine IP. If this parameter is left empty, LogListener will automatically get the local IP address. |
label | Machine group label, which is required if you want to identify the machine group. Multiple labels should be separated by comma. |
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/
문제 해결에 도움이 되었나요?