Fluent-bit: Add support for runing Fluent Bit as WIndows service

Created on 30 Oct 2019  路  7Comments  路  Source: fluent/fluent-bit

Is your feature request related to a problem? Please describe.

Windows has a mechanism called "Service" that is equivalent of daemon in Unix.

We need to implement the Service Manager Control protocol to run Fluent Bit as
a long running process on Windows servers. This also should add ability to manage
Fluent Bit though the sc command.

Describe the solution you'd like

Implement the the following interfaces:

  1. Register Fluent Bit to Service Manager
  2. Run Fluent Bit as a Windows Service Program.
  3. Unregister Fluent Bit from Service Manager

Describe alternatives you've considered

Use Fluentd (it has Windows Service support since v0.12.5)

Additional context

enhancement

Most helpful comment

@plinkable @heyaWorld JFYI this task is in my queue for the next
major version release (v1.5).

All 7 comments

Any updates on when we can expect this to be implemented for fluent bit?
Whats the best way to run the process in background?

No, we do not have the native support yet. You'll have to use a wrapper
program (like winsw) to run Fluent Bit as a service on Windows as of v1.3.

Adding on to this. We would also love to use the native fluent-bit for windows as a service instead of adding on a wrapper on top of it.

Thanks for all the hard work you're doing on making fluent-bit production ready on windows @fujimotos

@xPB12 I was able to use the a command similar to the following in powershell to run fluent-bit as a background process:

Start-Job -ScriptBlock { Start-Process -NoNewWindow -FilePath "{Full-Path}\fluent-bit.exe" -ArgumentList @("-NoNewWindow", "-c", "{Full-Path}\fluent-bit.conf") }

Hope this helps :)

@fujimotos Hey, I just wanted to follow up and see, if there are any plans to add service capability to fluent-bit for Windows in the near future?

This is an essential feature for us, and is stopping us from deploying.

@plinkable @heyaWorld JFYI this task is in my queue for the next
major version release (v1.5).

Was this page helpful?
0 / 5 - 0 ratings