Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
54da872
out_logrotate: add logrotate out plugin (#2)
SagiROosto Sep 3, 2025
5f28c0c
out_logrotate: update fluent auto CR comments
SagiROosto Sep 4, 2025
11a63b2
out_logrotate: match logrotate to out_file in cmakes (#3)
SagiROosto Sep 16, 2025
33e4f24
out_logrotate: fix failing UT
SagiROosto Nov 4, 2025
955a7dd
out_logrotate: fix failures from rebase
SagiROosto Nov 5, 2025
dea2a2e
out_logrotate: add hashtable to file paths
SagiROosto Nov 5, 2025
7583cb8
out_logrotate: fix UT
SagiROosto Nov 5, 2025
791c0ce
out_logrotate: remove ZLIB dependency, enhance file size handling, an…
SagiROosto Nov 10, 2025
faa13c0
out_logrotate: refactor file size management to use linked list inste…
SagiROosto Nov 16, 2025
9033501
out_logrotate: add locking mechanism to files
SagiROosto Nov 17, 2025
bef3296
out_logrotate: add multiple log format tests and enhance multithreadi…
SagiROosto Nov 18, 2025
c9c7c84
out_logrotate: enhance cleanup_old_files function for Windows support
SagiROosto Nov 18, 2025
03f124a
out_logrotate: improve memory safety and cleanup in gzip compression
SagiROosto Nov 19, 2025
71ac7e9
out_logrotate: simplify code
SagiROosto Nov 19, 2025
c77c42b
out_logrotate: Validate `max_files` configuration in `out_logrotate` …
SagiROosto Nov 24, 2025
bf8d137
out_logrotate: Add Shlwapi dependency for the out_logrotate plugin on…
SagiROosto Nov 24, 2025
cfa741f
out_logrotate: ensures Z_FINISH is always called at the end of compre…
SagiROosto Nov 24, 2025
5e0388d
out_logrotate: prevent null pointer dereferences in logrotate plugin
SagiROosto Nov 24, 2025
e7a23ae
out_logrotate: enhance plugin and tests with Windows compatibility.
SagiROosto Nov 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ if(FLB_ALL)
set(FLB_OUT_NULL 1)
set(FLB_OUT_PLOT 1)
set(FLB_OUT_FILE 1)
set(FLB_OUT_LOGROTATE 1)
set(FLB_OUT_RETRY 1)
set(FLB_OUT_TD 1)
set(FLB_OUT_STDOUT 1)
Expand Down
1 change: 1 addition & 0 deletions cmake/plugins_options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ DEFINE_OPTION(FLB_OUT_DATADOG "Enable DataDog output plugin"
DEFINE_OPTION(FLB_OUT_ES "Enable Elasticsearch output plugin" ON)
DEFINE_OPTION(FLB_OUT_EXIT "Enable Exit output plugin" ON)
DEFINE_OPTION(FLB_OUT_FILE "Enable file output plugin" ON)
DEFINE_OPTION(FLB_OUT_LOGROTATE "Enable logrotate output plugin" ON)
DEFINE_OPTION(FLB_OUT_FLOWCOUNTER "Enable flowcount output plugin" ON)
DEFINE_OPTION(FLB_OUT_FORWARD "Enable Forward output plugin" ON)
DEFINE_OPTION(FLB_OUT_GELF "Enable GELF output plugin" ON)
Expand Down
1 change: 1 addition & 0 deletions cmake/windows-setup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ if(FLB_WINDOWS_DEFAULTS)
set(FLB_OUT_NATS No)
set(FLB_OUT_PLOT No)
set(FLB_OUT_FILE Yes)
set(FLB_OUT_LOGROTATE Yes)
set(FLB_OUT_TD No)
set(FLB_OUT_RETRY No)
set(FLB_OUT_SPLUNK Yes)
Expand Down
21 changes: 21 additions & 0 deletions conf/fluent-bit-logrotate.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[SERVICE]
Flush 1
Log_Level info
Parsers_File parsers.conf

[INPUT]
Name dummy
Tag test.logrotate
Dummy {"message": "test log message", "level": "info"}
Rate 10

[OUTPUT]
Name logrotate
Match test.logrotate
Path /tmp/logs
File test.log
Format json
Max_Size 10M
Max_Files 5
Gzip On
Mkdir On
1 change: 1 addition & 0 deletions plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ REGISTER_OUT_PLUGIN("out_datadog")
REGISTER_OUT_PLUGIN("out_es")
REGISTER_OUT_PLUGIN("out_exit")
REGISTER_OUT_PLUGIN("out_file")
REGISTER_OUT_PLUGIN("out_logrotate")
REGISTER_OUT_PLUGIN("out_forward")
REGISTER_OUT_PLUGIN("out_http")
REGISTER_OUT_PLUGIN("out_influxdb")
Expand Down
8 changes: 8 additions & 0 deletions plugins/out_logrotate/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set(src
logrotate.c)

if(MSVC)
FLB_PLUGIN(out_logrotate "${src}" "Shlwapi")
else()
FLB_PLUGIN(out_logrotate "${src}" "")
endif()
Loading