tencent cloud

LogListener Installation Guide(Windows)
Last updated: 2025-11-13 16:55:55
LogListener Installation Guide(Windows)
Last updated: 2025-11-13 16:55:55
LogListener is a dedicated log collector provided by the Cloud Log Service (CLS) of Tencent Cloud. It can be installed and deployed on the server to quickly collect logs into the CLS.

Installation Environment

LogListener is specifically designed for 64-bit Windows Server operating systems and is compatible with the mainstream editions of Windows Server. If you need support for other environments or encounter any installation issues, do not hesitate to submit a ticket to contact us.
LogListener Versions
Operating System Category
Supported Installation Environment
v2.8.9 or later
Windows Server
Windows Server 2012 R2, Windows Server 2016, Windows Server 2019, and Windows Server 2022

Features

Note:
Only LogListener v2.9.7 and later versions can collect text logs in a Windows operating system environment.

Installing and Starting LogListener

1. Downloading the LogListener Installation Package

Text Log Collection
Windows Event Log Collection
Note:
This installation package is only suitable for collecting text logs.
Download and extract the LogListener installation package from the links below:
Note:
This installation package is only suitable for collecting Windows Event Logs.
Download and extract the LogListener installation package from the links below:

2. Installing LogListener

Open Windows PowerShell as an administrator and run the following command in the path where LogListener has been extracted to install LogListener:
.\\loglistener_installer.exe install --secret_id AKID******************************** --secret_key whHwQfjdLnzzCE1jIf09xxxxxxxxxxxx --region ap-xxxxxx
Notes:
In the initialization command, --secret_id, --secret_key, and --region are required parameters. For more parameters, see parameter description below.
If the root account has granted read/write permissions for the CLS to the collaborator, it is recommended to use the collaborator's key.
The --region parameter specifies the location of your CLS, not the location of your business machine.
When the Cloud Virtual Machine (CVM) and the logset are in the same region, it is recommended to access the service domain name via the private network. Conversely, if they are located in different regions, it is recommended to access the service domain name via the public network.
For details on log collection permissions, see LogListener Log Collection Permissions.
After the installation instruction is executed, LogListener will be installed by default in the C:\\Program Files (x86)\\Tencent\\LogListener directory.

Parameter Description

Parameter Name
Required
Type Description
secret_id
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.
secret_key
Yes
Part of the Cloud API Key, which is used as a key to encrypt the signature string and verify it on the server. Ensure that the account associated with the Cloud API Key has the appropriate LogListener log collection permission.
network
No
It indicates how LogListener accesses the CLS service. Values: intra for private network access 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
Yes. (Unless domain name is configured.)
Region indicates the region where the CLS is deployed. Enter the appropriate domain name abbreviation, such as ap-beijing or ap-guangzhou.
endpoint
Yes. (Unless region is configured)
Domain name indicates the domain name for the region where the CLS is deployed, such as ap-beijing.cls.tencentcloud.com and ap-guangzhou.cls.tencentcloud.com.
ip
No
It indicates 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 left blank, LogListener will automatically obtain the local IP address.
label
No
It indicates a machine label. Once entered, the machine will be associated with the corresponding machine group that shares this label. For details, see Machine Group. You can configure multiple labels by separating them using 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.

Return sample of successful installation





3. Adding to a Machine Group

Note:
Servers running the LogListener (Windows edition) can only be added to machine groups that operate within a Windows system environment.
After the LogListener is installed and started, you need to create a machine group or choose an existing one in the CLS console and add the server to the machine group.
You can add servers to a machine group in the following two ways:

4. Collecting Logs

After the server is added to the machine group, you can continue with the configuration for Collecting Windows Event Logs or Collecting Text Logs.

Common Operation Commands of LogListener

Viewing LogListener Versions

Taking the installation path C:\\Program Files (x86)\\Tencent\\LogListener as an example, open Windows PowerShell as an administrator and run the following command in the installation path to check the LogListener edition:
.\\loglistener_work.exe -v

Stopping LogListener

Note:
Before the command is run to stop LogListener, ensure that all files in the LogListener installation path are closed; failure to do so will prevent LogListener from being stopped successfully.
Taking the installation path C:\\Program Files (x86)\\Tencent\\LogListener as an example, open Windows PowerShell as an administrator and run the following command in the installation path to stop LogListener:
.\\loglistener_daemon.exe -action stop

Restarting LogListener

Note:
Before the command is run to restart LogListener, ensure that all files in the LogListener installation path are closed; failure to do so will prevent LogListener from being restarted successfully.
Taking the installation path C:\\Program Files (x86)\\Tencent\\LogListener as an example, open Windows PowerShell as an administrator and run the following command in the installation path to restart LogListener:
.\\loglistener_daemon.exe -action restart

Checking the Heartbeat and Configuration Of LogListener

Taking the installation path C:\\Program Files (x86)\\Tencent\\LogListener as an example, open Windows PowerShell as an administrator and run the following command in the installation path to check the heartbeat and configuration of LogListener:
.\\loglistener_work.exe check
Return sample:




Uninstalling LogListener

Notes:
Before the command is run to uninstall LogListener, ensure that all files in the LogListener installation path are closed; failure to do so will prevent LogListener from being uninstalled successfully.
The uninstallation tool can be found in the LogListener installation package, rather than in the LogListener installation path.
1. Use the Stop command to stop LogListener.
2. Open Windows PowerShell as an administrator and run the following command in the path of the installation package to uninstall LogListener.
.\\loglistener_installer.exe uninstall

Operating LogListener Through the Service List

1. Click the search icon in the lower left corner and enter service to start your search.

2. In the service list, locate and click LogListener Daemon. You can use the operation button on the left to stop or restart LogListener as needed.


Configuring LogListener

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback