Syslog Module

Variables

LPEG Grammars

  • severity - LPEG grammar to parse a syslog severity 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

Functions

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

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

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 ""