journal.h 533 B

123456789101112131415161718
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. #include "../libnetdata.h"
  3. #ifndef NETDATA_LOG_JOURNAL_H
  4. #define NETDATA_LOG_JOURNAL_H
  5. #define JOURNAL_DIRECT_SOCKET "/run/systemd/journal/socket"
  6. void journal_construct_path(char *dst, size_t dst_len, const char *host_prefix, const char *namespace_str);
  7. int journal_direct_fd(const char *path);
  8. bool journal_direct_send(int fd, const char *msg, size_t msg_len);
  9. bool is_path_unix_socket(const char *path);
  10. bool is_stderr_connected_to_journal(void);
  11. #endif //NETDATA_LOG_JOURNAL_H