Syslog Module

1. Variables

1.1. LPEG Grammars

  • severity - LPEG grammar to parse a syslog severity string and return the numeric value
  • facility - LPEG grammar to parse a syslog facility string and return the numeric value
  • integer - converts an integer string to a number
  • float - converts a floating point string to a number
  • notspace - consumes everything that is not a space
  • commonmac - matches a MAC address string

2. Functions

2.1. build_rsyslog_grammar

Constructs an LPEG grammar based on the rsyslog template configuration string.

Arguments

Return

  • grammar (LPEG user data object) or an error is thrown

2.2. capture_until

Captures all data up to 'match' without consuming the match

Arguments

  • name (string) - name of the capture group variable
  • match (string) - value to match up to

Return

  • grammar (LPEG user data object) or an error is thrown

2.3. capture_followed_by

Captures all data up to 'match' and consumes the match

Arguments

  • name (string) - name of the capture group variable
  • match (string) - value to match up to

Return

  • grammar (LPEG user data object) or an error is thrown

source code: syslog.lua

results matching ""

    No results matching ""