syslog-ng source
syslog-format.h File Reference
#include "msg-format.h"
Include dependency graph for syslog-format.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

gboolean syslog_format_handler (const MsgFormatOptions *parse_options, LogMessage *msg, const guchar *data, gsize length, gsize *problem_position)
 
void syslog_format_init (void)
 
gboolean _syslog_format_parse_sd (LogMessage *self, const guchar **data, gint *length, const MsgFormatOptions *options)
 

Function Documentation

◆ _syslog_format_parse_sd()

gboolean _syslog_format_parse_sd ( LogMessage *  msg,
const guchar **  data,
gint *  length,
const MsgFormatOptions options 
)

_syslog_format_parse: @msg: LogMessage instance to store parsed information into @data: message @length: length of the message pointed to by @data @flags: value affecting how the message is parsed (bits from LP_*)

Parse an http://www.syslog.cc/ietf/drafts/draft-ietf-syslog-protocol-23.txt formatted log message for structured data elements and store the parsed information in @msg.values and dup the SD string. Parsing is affected by the bits set @flags argument.

◆ syslog_format_handler()

gboolean syslog_format_handler ( const MsgFormatOptions parse_options,
LogMessage *  msg,
const guchar *  data,
gsize  length,
gsize *  problem_position 
)

◆ syslog_format_init()

void syslog_format_init ( void  )