master
h 18 lines 587 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 #include "../libnetdata-base.h"
4
5 #ifndef NETDATA_LOG_SYSTEMD_JOURNAL_HELPERS_H
6 #define NETDATA_LOG_SYSTEMD_JOURNAL_HELPERS_H
7
8 #define JOURNAL_DIRECT_SOCKET "/run/systemd/journal/socket"
9
10 void journal_construct_path(char *dst, size_t dst_len, const char *host_prefix, const char *namespace_str);
11
12 int journal_direct_fd(const char *path);
13 bool journal_direct_send(int fd, const char *msg, size_t msg_len);
14
15 bool is_path_unix_socket(const char *path);
16 bool is_stderr_connected_to_journal(void);
17
18 #endif // NETDATA_LOG_SYSTEMD_JOURNAL_HELPERS_H