summaryrefslogtreecommitdiffstats
path: root/src/logsmanagement/flb_plugin.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 11:19:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:53:24 +0000
commitb5f8ee61a7f7e9bd291dd26b0585d03eb686c941 (patch)
treed4d31289c39fc00da064a825df13a0b98ce95b10 /src/logsmanagement/flb_plugin.h
parentAdding upstream version 1.44.3. (diff)
downloadnetdata-b5f8ee61a7f7e9bd291dd26b0585d03eb686c941.tar.xz
netdata-b5f8ee61a7f7e9bd291dd26b0585d03eb686c941.zip
Adding upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/logsmanagement/flb_plugin.h')
-rw-r--r--src/logsmanagement/flb_plugin.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/logsmanagement/flb_plugin.h b/src/logsmanagement/flb_plugin.h
new file mode 100644
index 000000000..5c35315b1
--- /dev/null
+++ b/src/logsmanagement/flb_plugin.h
@@ -0,0 +1,35 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+/** @file flb_plugin.h
+ * @brief Header of flb_plugin.c
+ */
+
+#ifndef FLB_PLUGIN_H_
+#define FLB_PLUGIN_H_
+
+#include "file_info.h"
+#include <uv.h>
+
+#define LOG_PATH_AUTO "auto"
+#define KMSG_DEFAULT_PATH "/dev/kmsg"
+#define SYSTEMD_DEFAULT_PATH "SD_JOURNAL_LOCAL_ONLY"
+#define DOCKER_EV_DEFAULT_PATH "/var/run/docker.sock"
+
+typedef struct {
+ char *flush,
+ *http_listen, *http_port, *http_server,
+ *log_path, *log_level,
+ *coro_stack_size;
+} flb_srvc_config_t ;
+
+int flb_init(flb_srvc_config_t flb_srvc_config,
+ const char *const stock_config_dir,
+ const char *const new_sd_journal_field_prefix);
+int flb_run(void);
+void flb_terminate(void);
+void flb_complete_item_timer_timeout_cb(uv_timer_t *handle);
+int flb_add_input(struct File_info *const p_file_info);
+int flb_add_fwd_input(Flb_socket_config_t *const forward_in_config);
+void flb_free_fwd_input_out_cb(void);
+
+#endif // FLB_PLUGIN_H_