syslog-ng source
msg-format.h File Reference
#include "syslog-ng.h"
#include "timeutils/zoneinfo.h"
#include "logproto/logproto-server.h"
#include <regex.h>
Include dependency graph for msg-format.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MsgFormatOptions
 
struct  MsgFormatHandler
 

Enumerations

enum  {
  LP_NOPARSE = 0x0001 , LP_CHECK_HOSTNAME = 0x0002 , LP_SYSLOG_PROTOCOL = 0x0004 , LP_ASSUME_UTF8 = 0x0008 ,
  LP_VALIDATE_UTF8 = 0x0010 , LP_SANITIZE_UTF8 = 0x0020 , LP_NO_MULTI_LINE = 0x0040 , LP_STORE_LEGACY_MSGHDR = 0x0080 ,
  LP_EXPECT_HOSTNAME = 0x0100 , LP_LOCAL = 0x0200 , LP_NO_PARSE_DATE = 0x0400 , LP_STORE_RAW_MESSAGE = 0x0800 ,
  LP_GUESS_TIMEZONE = 0x1000 , LP_NO_HEADER = 0x2000 , LP_NO_RFC3164_FALLBACK = 0x4000 , LP_PIGGYBACK_ERRORS = 0x8000 ,
  LP_CHECK_PROGRAM = 0x10000
}
 

Functions

gboolean msg_format_try_parse_into (MsgFormatOptions *options, LogMessage *msg, const guchar *data, gsize length, gsize *problem_position)
 
void msg_format_parse_into (MsgFormatOptions *options, LogMessage *msg, const guchar *data, gsize length)
 
gsize msg_format_from_string (MsgFormatOptions *format_options, const char *msg_cstring, LogMessage **out_msg)
 
LogMessage * msg_format_construct_message (MsgFormatOptions *options, const guchar *data, gsize length)
 
LogMessage * msg_format_parse (MsgFormatOptions *options, const guchar *data, gsize length)
 
gboolean msg_format_options_set_sdata_prefix (MsgFormatOptions *options, const gchar *prefix)
 
void msg_format_options_defaults (MsgFormatOptions *options)
 
void msg_format_options_init (MsgFormatOptions *parse_options, GlobalConfig *cfg)
 
void msg_format_options_destroy (MsgFormatOptions *parse_options)
 
void msg_format_options_copy (MsgFormatOptions *options, const MsgFormatOptions *source)
 
gboolean msg_format_options_process_flag (MsgFormatOptions *options, const gchar *flag)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
LP_NOPARSE 
LP_CHECK_HOSTNAME 
LP_SYSLOG_PROTOCOL 
LP_ASSUME_UTF8 
LP_VALIDATE_UTF8 
LP_SANITIZE_UTF8 
LP_NO_MULTI_LINE 
LP_STORE_LEGACY_MSGHDR 
LP_EXPECT_HOSTNAME 
LP_LOCAL 
LP_NO_PARSE_DATE 
LP_STORE_RAW_MESSAGE 
LP_GUESS_TIMEZONE 
LP_NO_HEADER 
LP_NO_RFC3164_FALLBACK 
LP_PIGGYBACK_ERRORS 
LP_CHECK_PROGRAM 

Function Documentation

◆ msg_format_construct_message()

LogMessage* msg_format_construct_message ( MsgFormatOptions options,
const guchar *  data,
gsize  length 
)

◆ msg_format_from_string()

gsize msg_format_from_string ( MsgFormatOptions format_options,
const char *  msg_cstring,
LogMessage **  out_msg 
)

◆ msg_format_options_copy()

void msg_format_options_copy ( MsgFormatOptions options,
const MsgFormatOptions source 
)

◆ msg_format_options_defaults()

void msg_format_options_defaults ( MsgFormatOptions options)

◆ msg_format_options_destroy()

void msg_format_options_destroy ( MsgFormatOptions parse_options)

◆ msg_format_options_init()

void msg_format_options_init ( MsgFormatOptions parse_options,
GlobalConfig *  cfg 
)

◆ msg_format_options_process_flag()

gboolean msg_format_options_process_flag ( MsgFormatOptions options,
const gchar *  flag 
)

◆ msg_format_options_set_sdata_prefix()

gboolean msg_format_options_set_sdata_prefix ( MsgFormatOptions options,
const gchar *  prefix 
)

◆ msg_format_parse()

LogMessage* msg_format_parse ( MsgFormatOptions options,
const guchar *  data,
gsize  length 
)

◆ msg_format_parse_into()

void msg_format_parse_into ( MsgFormatOptions options,
LogMessage *  msg,
const guchar *  data,
gsize  length 
)

◆ msg_format_try_parse_into()

gboolean msg_format_try_parse_into ( MsgFormatOptions options,
LogMessage *  msg,
const guchar *  data,
gsize  length,
gsize *  problem_position 
)