Windows
Fluent Bit is distributed as the fluent-bit
package for Windows and as a Windows container on Docker Hub. Fluent Bit provides two Windows installers: a ZIP
archive and an EXE
installer.
Not all plugins are supported on Windows. The CMake configuration shows the default set of supported plugins.
Configuration
Provide a valid Windows configuration with the installation.
The following configuration is an example:
Migration to Fluent Bit
For version 1.9 and later, td-agent-bit
is a deprecated package and was removed after 1.9.9. The correct package name to use now is fluent-bit
.
Installation packages
The latest stable version is 3.2.4. Each version is available from the following download URLs.
These are now using the Github Actions built versions. Legacy AppVeyor builds are still available (AMD 32/64 only) at releases.fluentbit.io but are deprecated.
MSI installers are also available:
To check the integrity, use the Get-FileHash
cmdlet for PowerShell.
Installing from a ZIP archive
Download a ZIP archive. Choose the suitable installers for your 32-bit or 64-bit environments.
Expand the ZIP archive. You can do this by clicking Extract All in Explorer or
Expand-Archive
in PowerShell.The ZIP package contains the following set of files.
Launch
cmd.exe
or PowerShell on your machine, and executefluent-bit.exe
:
The following output indicates Fluent Bit is running:
To halt the process, press Control+C
in the terminal.
Installing from the EXE installer
Download an EXE installer for the appropriate 32-bit or 64-bit build.
Double-click the EXE installer you've downloaded. The installation wizard starts.
Click Next and finish the installation. By default, Fluent Bit is installed in
C:\Program Files\fluent-bit\
.
You should be able to launch Fluent Bit using the following PowerShell command:.
Installer options
The Windows installer is built by CPack
using NSIS and supports the default NSIS options for silent installation and install directory.
To silently install to C:\fluent-bit
directory here is an example:
The uninstaller also supports a silent uninstall using the same /S
flag. This can be used for provisioning with automation like Ansible, Puppet, and so on.
Windows service support
Windows services are equivalent to daemons in UNIX (long-running background processes). For v1.5.0 and later, Fluent Bit has native support for Windows services.
For example, you have the following installation layout:
To register Fluent Bit as a Windows service, execute the following command on at a command prompt. A single space is required after binpath=
.
Fluent Bit can be started and managed as a normal Windows service.
To halt the Fluent Bit service, use the stop
command.
To start Fluent Bit automatically on boot, execute the following:
FAQs
Fluent Bit fails to start up when installed under C:\Program Files
C:\Program Files
Quotations are required if file paths contain spaces. For example:
Can you manage Fluent Bit service using PowerShell?
Instead of sc.exe
, PowerShell can be used to manage Windows services.
Create a Fluent Bit service:
Start the service:
Query the service status:
Stop the service:
Remove the service (requires PowerShell 6.0 or later)
Compile from Source
If you need to create a custom executable, use the following procedure to compile Fluent Bit by yourself.
Preparation
Install Microsoft Visual C++ to compile Fluent Bit. You can install the minimum toolkit using the following command:
Choose
C++ Build Tools
andC++ CMake tools for Windows
and wait until the process finishes.Install flex and bison. One way to install them on Windows is to use winflexbison.
Add the path
C:\WinFlexBison
to your systems environment variablePath
. Here's how to do that.Install OpenSSL binaries, at least the library files and headers.
Install Git to pull the source code from the repository.
Compilation
Open the Start menu on Windows and type
command Prompt for VS
. From the result list, select the one that corresponds to your target system (x86
orx64
).Verify the installed OpenSSL library files match the selected target. You can examine the library files by using the
dumpbin
command with the/headers
option .Clone the source code of Fluent Bit.
Compile the source code.
Now you should be able to run Fluent Bit:
Packaging
To create a ZIP package, call cpack
as follows:
Last updated