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:

service:
  flush: 5
  daemon: off
  log_level: info
  parsers_file: parsers.yaml
  plugins_file: plugins.yaml
  http_server: off
  http_listen: 0.0.0.0
  http_port: 2020
  storage.metrics: on

pipeline:
  inputs:
    - name: winlog
      channels: Setup,Windows Powershell
      interval_sec: 1

  outputs:
    - name: stdout
      match: '*'

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 4.0.11.

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

  1. Download a ZIP archive. Choose the suitable installers for your 32-bit or 64-bit environments.

  2. 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.

  3. Launch cmd.exe or PowerShell on your machine, and execute fluent-bit.exe:

The following output indicates Fluent Bit is running:

To halt the process, press Control+C in the terminal.

Installing from the executable installer

  1. Download an EXE installer for the appropriate 32-bit or 64-bit build.

  2. Double-click the EXE installer you've downloaded. The installation wizard starts.

  3. Click Next and finish the installation. By default, Fluent Bit is installed in C:\Program Files\fluent-bit\.

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

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

  1. Install Microsoft Visual C++ to compile Fluent Bit. You can install the minimum toolkit using the following command:

  1. Choose C++ Build Tools and C++ CMake tools for Windows and wait until the process finishes.

  2. Install flex and bison. One way to install them on Windows is to use winflexbison.

  3. Add the path C:\WinFlexBison to your systems environment variable Path. Here's how to do that.

  4. Install OpenSSL binaries, at least the library files and headers.

  5. Install Git to pull the source code from the repository.

Compilation

  1. 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 or x64).

  2. 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.

  3. Clone the source code of Fluent Bit.

  4. 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

Was this helpful?