syslog-ng source
journal-reader.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010-2014 Balabit
3  * Copyright (c) 2010-2014 Viktor Juhasz <viktor.juhasz@balabit.com>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 as published
7  * by the Free Software Foundation, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * As an additional exemption you are allowed to compile & link against the
19  * OpenSSL libraries as published by the OpenSSL project. See the file
20  * COPYING for details.
21  *
22  */
23 
24 #ifndef JOURNAL_READER_H_
25 #define JOURNAL_READER_H_
26 
27 #include "logsource.h"
28 #include "journald-subsystem.h"
29 #include "journald-helper.h"
31 
32 typedef struct _JournalReader JournalReader;
33 
34 typedef struct _JournalReaderOptions
35 {
37  gboolean initialized;
39  guint16 default_pri;
40  guint32 flags;
42  TimeZoneInfo *recv_time_zone_info;
43  gchar *prefix;
44  guint32 max_field_size;
45  gchar *namespace;
46  GList *matches;
47  gboolean match_boot;
50 
51 JournalReader *journal_reader_new(GlobalConfig *cfg);
52 void journal_reader_set_options(LogPipe *s, LogPipe *control, JournalReaderOptions *options, const gchar *stats_id,
53  StatsClusterKeyBuilder *kb);
54 
55 void journal_reader_options_init(JournalReaderOptions *options, GlobalConfig *cfg, const gchar *group_name);
68 
69 #endif /* JOURNAL_READER_H_ */
void journal_reader_options_set_default_facility(JournalReaderOptions *self, gint facility)
Definition: journal-reader.c:974
void journal_reader_options_destroy(JournalReaderOptions *options)
Definition: journal-reader.c:1051
void journal_reader_options_set_read_old_records_on_error(JournalReaderOptions *self, gboolean enable)
Definition: journal-reader.c:1031
void journal_reader_set_options(LogPipe *s, LogPipe *control, JournalReaderOptions *options, const gchar *stats_id, StatsClusterKeyBuilder *kb)
Definition: journal-reader.c:871
void journal_reader_options_defaults(JournalReaderOptions *options)
Definition: journal-reader.c:1037
void journal_reader_options_set_default_severity(JournalReaderOptions *self, gint severity)
Definition: journal-reader.c:966
void journal_reader_options_set_namespace(JournalReaderOptions *self, gchar *namespace)
Definition: journal-reader.c:1004
void journal_reader_options_set_time_zone(JournalReaderOptions *self, gchar *time_zone)
Definition: journal-reader.c:982
void journal_reader_options_init(JournalReaderOptions *options, GlobalConfig *cfg, const gchar *group_name)
Definition: journal-reader.c:921
void journal_reader_options_set_prefix(JournalReaderOptions *self, gchar *prefix)
Definition: journal-reader.c:990
void journal_reader_options_set_matches(JournalReaderOptions *self, GList *matches)
Definition: journal-reader.c:1018
void journal_reader_options_set_match_boot(JournalReaderOptions *self, gboolean enable)
Definition: journal-reader.c:1025
void journal_reader_options_set_max_field_size(JournalReaderOptions *self, gint max_field_size)
Definition: journal-reader.c:998
JournalReader * journal_reader_new(GlobalConfig *cfg)
Definition: journal-reader.c:907
void journal_reader_options_set_log_fetch_limit(JournalReaderOptions *self, gint log_fetch_limit)
Definition: journal-reader.c:1012
Definition: journal-reader.h:35
gchar * prefix
Definition: journal-reader.h:43
gboolean read_old_records_on_error
Definition: journal-reader.h:48
guint32 flags
Definition: journal-reader.h:40
gboolean initialized
Definition: journal-reader.h:37
TimeZoneInfo * recv_time_zone_info
Definition: journal-reader.h:42
LogSourceOptions super
Definition: journal-reader.h:36
gboolean match_boot
Definition: journal-reader.h:47
guint32 max_field_size
Definition: journal-reader.h:44
GList * matches
Definition: journal-reader.h:45
gint fetch_limit
Definition: journal-reader.h:38
gchar * recv_time_zone
Definition: journal-reader.h:41
guint16 default_pri
Definition: journal-reader.h:39
Definition: logsource.h:36
Definition: journal-reader.c:70
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34