This topic describes how to install, upgrade, and uninstall Logtail on a Windows server.
Prerequisites
- At least one Windows server is available.
- The network type required for log collection is determined based on the server type and the region where the server resides. For more information, see Select a network type.
Supported systems
- Microsoft Windows Server 2008
- Microsoft Windows Server 2012
- Microsoft Windows Server 2016
- Microsoft Windows Server 2019
- Microsoft Windows 7
- Microsoft Windows 10
- Microsoft Windows Server Version 1909
- Microsoft Windows Server Version 2004
Install Logtail
Installation directory
- 32-bit Windows: C:\Program Files\Alibaba\Logtail
- 64-bit Windows: C:\Program Files (x86)\Alibaba\Logtail
Logtail for Windows is a 32-bit application. Therefore, it is installed in the Program Files (x86) folder in 64-bit Windows. If Logtail for 64-bit Windows becomes available in the future, Logtail will be installed in the Program Files folder.
View the Logtail version
Open the app_info.json file in the installation directory. The logtail_version
field shows the version of Logtail.
{
"logtail_version" : "1.0.0.0"
}
Upgrade Logtail
- Automatic upgrade
Logtail for Windows supports automatic upgrade. However, Logtail earlier than V1.0.0.0 must be manually upgraded.
- Manual upgrade
You can follow the procedure of Logtail installation to manually upgrade Logtail. You only need to download and decompress the latest installation package, and then install Logtail. For more information, see Install Logtail.
Note During manual upgrade, the files in the original installation directory are deleted. We recommend that you back up the files before you perform the manual upgrade.
Start and stop Logtail
Uninstall Logtail
logtail_installer
directory where you decompressed your installation package, and then run the following
installation command: .\logtail_installer.exe uninstall
After Logtail is uninstalled, the directory of Logtail is deleted. However, some residual configuration data is retained in the C:\LogtailData directory. You can manually delete the data. The residual configuration data includes the following information:
- checkpoint: contains checkpoints of all plug-ins, such as Windows Event Log.
- logtail_check_point: contains checkpoints of Logtail.
- users: contains the IDs of Alibaba Cloud accounts.