Skip to content

Commit b14d48d

Browse files
out_arvancloud_cloudlogs: add new output plugin for ArvanCloud CloudLogs
This patch adds a new output plugin that sends logs to ArvanCloud CloudLogs service. The plugin supports: - GZIP compression - Configurable timestamp formats - Custom log fields mapping - Retry logic and error handling The plugin has been tested with ArvanCloud CloudLogs API and successfully delivers logs with proper formatting and timestamps. Signed-off-by: Javad Nasrolahi <[email protected]>
1 parent 8b7cfba commit b14d48d

File tree

7 files changed

+887
-0
lines changed

7 files changed

+887
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ if(FLB_ALL)
306306
set(FLB_OUT_LIB 1)
307307
set(FLB_OUT_FLOWCOUNTER 1)
308308
set(FLB_OUT_WEBSOCKET 1)
309+
set(FLB_OUT_ARVANCLOUD_CLOUDLOGS 1)
309310
endif()
310311

311312
if(FLB_DEV)

cmake/plugins_options.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,4 @@ DEFINE_OPTION(FLB_OUT_TCP "Enable TCP output plugin"
152152
DEFINE_OPTION(FLB_OUT_UDP "Enable UDP output plugin" ON)
153153
DEFINE_OPTION(FLB_OUT_VIVO_EXPORTER "Enable Vivo exporter output plugin" ON)
154154
DEFINE_OPTION(FLB_OUT_WEBSOCKET "Enable Websocket output plugin" ON)
155+
DEFINE_OPTION(FLB_OUT_ARVANCLOUD_CLOUDLOGS "Enable ArvanCloud CloudLogs output plugin" ON)

plugins/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ REGISTER_OUT_PLUGIN("out_prometheus_remote_write")
408408
REGISTER_OUT_PLUGIN("out_s3")
409409
REGISTER_OUT_PLUGIN("out_vivo_exporter")
410410
REGISTER_OUT_PLUGIN("out_chronicle")
411+
REGISTER_OUT_PLUGIN("out_arvancloud_cloudlogs")
411412

412413
if(FLB_ZIG)
413414
REGISTER_OUT_PLUGIN("out_zig_demo" "zig")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
set(src
2+
arvancloud_cloudlogs.c
3+
arvancloud_cloudlogs_conf.c)
4+
5+
FLB_PLUGIN(out_arvancloud_cloudlogs "${src}" "")

0 commit comments

Comments
 (0)