Bug 254628 - sysutils/fluent-bit: tail plugin not supported
Summary: sysutils/fluent-bit: tail plugin not supported
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Palle Girgensohn
Depends on:
Reported: 2021-03-28 16:09 UTC by pete
Modified: 2021-05-03 13:22 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (girgen)


Note You need to log in before you can comment on or make changes to this bug.
Description pete 2021-03-28 16:09:38 UTC
I am working on rolling out fluent-bit and currently make use of the tail plugin for my ruby based fluentd systems.  When trying to run this on FreeBSD it get an error:

$ fluent-bit -s 6000 -i tail  -p path=/var/log/messages -o stdout
Fluent Bit v1.7.2
* Copyright (C) 2019-2021 The Fluent Bit Authors
* Copyright (C) 2015-2018 Treasure Data
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io

[2021/03/28 09:00:34] [ info] [engine] started (pid=50457)
[2021/03/28 09:00:34] [ info] [storage] version=1.1.1, initializing...
[2021/03/28 09:00:34] [ info] [storage] in-memory
[2021/03/28 09:00:34] [ info] [storage] normal synchronization mode, checksum disabled, max_chunks_up=128
[2021/03/28 09:00:34] [ info] [sp] stream processor started
[2021/03/28 09:00:34] [error] [plugins/in_tail/tail_file.c:1088 errno=63] File name too long

After some digging it looks like their tail implementation is only supported on Linux/OSX and Windows:

Filing this ticket to see if it would be possible to get a patch together to add support for the tail plugin.
Comment 1 Christopher Beppler 2021-05-03 13:22:14 UTC
Maybe it would be worthwile to set the CMake option FLB_IN_TAIL the this port to to False until this has been implemented upstream?