Skip to content

Commit

Permalink
output: new Syslog output plugin (#1601)
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Luis Sanmartín Rozada <manuel.luis@gmail.com>
  • Loading branch information
manuelluis authored May 5, 2020
1 parent bebc772 commit 36cfed7
Show file tree
Hide file tree
Showing 8 changed files with 1,231 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ option(FLB_OUT_SLACK "Enable Slack output plugin" Yes)
option(FLB_OUT_SPLUNK "Enable Splunk output plugin" Yes)
option(FLB_OUT_STACKDRIVER "Enable Stackdriver output plugin" Yes)
option(FLB_OUT_STDOUT "Enable STDOUT output plugin" Yes)
option(FLB_OUT_SYSLOG "Enable Syslog output plugin" Yes)
option(FLB_OUT_LIB "Enable library mode output plugin" Yes)
option(FLB_OUT_NULL "Enable dev null output plugin" Yes)
option(FLB_OUT_FLOWCOUNTER "Enable flowcount output plugin" Yes)
Expand Down Expand Up @@ -201,6 +202,7 @@ if(FLB_ALL)
set(FLB_OUT_RETRY 1)
set(FLB_OUT_TD 1)
set(FLB_OUT_STDOUT 1)
set(FLB_OUT_SYSLOG 1)
set(FLB_OUT_LIB 1)
set(FLB_OUT_FLOWCOUNTER 1)
endif()
Expand Down
2 changes: 2 additions & 0 deletions include/fluent-bit/flb_sds.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ flb_sds_t flb_sds_create(const char *str);
flb_sds_t flb_sds_create_len(const char *str, int len);
flb_sds_t flb_sds_create_size(size_t size);
flb_sds_t flb_sds_cat(flb_sds_t s, const char *str, int len);
flb_sds_t flb_sds_cat_esc(flb_sds_t s, const char *str, int len,
char *esc, size_t esc_size);
flb_sds_t flb_sds_cat_utf8(flb_sds_t *sds, const char *str, int len);
flb_sds_t flb_sds_increase(flb_sds_t s, size_t len);
flb_sds_t flb_sds_copy(flb_sds_t s, const char *str, int len);
Expand Down
1 change: 1 addition & 0 deletions plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ REGISTER_OUT_PLUGIN("out_slack")
REGISTER_OUT_PLUGIN("out_splunk")
REGISTER_OUT_PLUGIN("out_stackdriver")
REGISTER_OUT_PLUGIN("out_stdout")
REGISTER_OUT_PLUGIN("out_syslog")
REGISTER_OUT_PLUGIN("out_tcp")
REGISTER_OUT_PLUGIN("out_td")
REGISTER_OUT_PLUGIN("out_lib")
Expand Down
5 changes: 5 additions & 0 deletions plugins/out_syslog/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set(src
syslog.c
syslog_conf.c)

FLB_PLUGIN(out_syslog "${src}" "")
Loading

0 comments on commit 36cfed7

Please sign in to comment.