Skip to content

Commit b1755dd

Browse files
author
Lukas Hutak
committed
JSON output: integrate syslog output
1 parent f2f67c2 commit b1755dd

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/plugins/output/json/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ add_library(json-output MODULE
1515
src/Server.hpp
1616
src/Sender.cpp
1717
src/Server.hpp
18+
src/Syslog.cpp
19+
src/Syslog.hpp
20+
src/SyslogSocket.cpp
21+
src/SyslogSocket.hpp
1822
)
1923

2024
find_package(LibRDKafka 0.9.3 REQUIRED)

src/plugins/output/json/src/json.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
#include "Server.hpp"
5151
#include "Sender.hpp"
5252
#include "Kafka.hpp"
53+
#include "Syslog.hpp"
5354

5455
/** Plugin description */
5556
IPX_API struct ipx_plugin_info ipx_plugin_info = {
@@ -106,6 +107,10 @@ outputs_initialize(ipx_ctx_t *ctx, Storage *storage, Config *cfg)
106107
for (const auto &kafka : cfg->outputs.kafkas) {
107108
storage->output_add(new Kafka(kafka, ctx));
108109
}
110+
111+
for (auto &syslog : cfg->outputs.syslogs) {
112+
storage->output_add(new Syslog(syslog, ctx));
113+
}
109114
}
110115

111116
int

0 commit comments

Comments
 (0)