syslog-ng source
logmatcher.h File Reference
#include "logmsg/logmsg.h"
#include "template/templates.h"
Include dependency graph for logmatcher.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LogMatcherOptions
 
struct  LogMatcher
 

Macros

#define LOG_MATCHER_ERROR   log_template_error_quark()
 

Enumerations

enum  {
  LMF_GLOBAL = 0x0001 , LMF_ICASE = 0x0002 , LMF_MATCH_ONLY = 0x0004 , LMF_NEWLINE = 0x0008 ,
  LMF_UTF8 = 0x0010 , LMF_STORE_MATCHES = 0x0020 , LMF_DISABLE_JIT = 0x0040 , LMF_SUBSTRING = 0x0080 ,
  LMF_PREFIX = 0x0100 , LMF_DUPNAMES = 0x00080000
}
 

Functions

GQuark log_matcher_error_quark (void)
 
gboolean log_matcher_match_value (LogMatcher *s, LogMessage *msg, gint value_handle)
 
gboolean log_matcher_match_buffer (LogMatcher *s, LogMessage *msg, const gchar *value, gssize value_len)
 
gboolean log_matcher_match_template (LogMatcher *s, LogMessage *msg, LogTemplate *template, LogTemplateEvalOptions *options)
 
LogMatcher * log_matcher_pcre_re_new (const LogMatcherOptions *options)
 
LogMatcher * log_matcher_string_new (const LogMatcherOptions *options)
 
LogMatcher * log_matcher_glob_new (const LogMatcherOptions *options)
 
LogMatcher * log_matcher_new (const LogMatcherOptions *options)
 
LogMatcher * log_matcher_ref (LogMatcher *s)
 
void log_matcher_unref (LogMatcher *s)
 
gboolean log_matcher_options_set_type (LogMatcherOptions *options, const gchar *type)
 
gboolean log_matcher_options_process_flag (LogMatcherOptions *self, const gchar *flag)
 
void log_matcher_options_defaults (LogMatcherOptions *options)
 
void log_matcher_options_init (LogMatcherOptions *options)
 
void log_matcher_options_destroy (LogMatcherOptions *options)
 
void log_matcher_pcre_set_nv_prefix (LogMatcher *s, const gchar *prefix)
 

Macro Definition Documentation

◆ LOG_MATCHER_ERROR

#define LOG_MATCHER_ERROR   log_template_error_quark()

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
LMF_GLOBAL 
LMF_ICASE 
LMF_MATCH_ONLY 
LMF_NEWLINE 
LMF_UTF8 
LMF_STORE_MATCHES 
LMF_DISABLE_JIT 
LMF_SUBSTRING 
LMF_PREFIX 
LMF_DUPNAMES 

Function Documentation

◆ log_matcher_error_quark()

GQuark log_matcher_error_quark ( void  )

◆ log_matcher_glob_new()

LogMatcher* log_matcher_glob_new ( const LogMatcherOptions options)

◆ log_matcher_match_buffer()

gboolean log_matcher_match_buffer ( LogMatcher *  s,
LogMessage *  msg,
const gchar *  value,
gssize  value_len 
)

◆ log_matcher_match_template()

gboolean log_matcher_match_template ( LogMatcher *  s,
LogMessage *  msg,
LogTemplate *  template,
LogTemplateEvalOptions options 
)

◆ log_matcher_match_value()

gboolean log_matcher_match_value ( LogMatcher *  s,
LogMessage *  msg,
gint  value_handle 
)

◆ log_matcher_new()

LogMatcher* log_matcher_new ( const LogMatcherOptions options)

◆ log_matcher_options_defaults()

void log_matcher_options_defaults ( LogMatcherOptions options)

◆ log_matcher_options_destroy()

void log_matcher_options_destroy ( LogMatcherOptions options)

◆ log_matcher_options_init()

void log_matcher_options_init ( LogMatcherOptions options)

◆ log_matcher_options_process_flag()

gboolean log_matcher_options_process_flag ( LogMatcherOptions self,
const gchar *  flag 
)

◆ log_matcher_options_set_type()

gboolean log_matcher_options_set_type ( LogMatcherOptions options,
const gchar *  type 
)

◆ log_matcher_pcre_re_new()

LogMatcher* log_matcher_pcre_re_new ( const LogMatcherOptions options)

◆ log_matcher_pcre_set_nv_prefix()

void log_matcher_pcre_set_nv_prefix ( LogMatcher *  s,
const gchar *  prefix 
)

◆ log_matcher_ref()

LogMatcher* log_matcher_ref ( LogMatcher *  s)

◆ log_matcher_string_new()

LogMatcher* log_matcher_string_new ( const LogMatcherOptions options)

◆ log_matcher_unref()

void log_matcher_unref ( LogMatcher *  s)