Syslog Module
1. Variables
1.1. LPEG Grammars
severity
- LPEG grammar to parse a syslog severity string and return the numeric valuefacility
- LPEG grammar to parse a syslog facility string and return the numeric valueinteger
- converts an integer string to a numberfloat
- converts a floating point string to a numbernotspace
- consumes everything that is not a spacecommonmac
- matches a MAC address string
2. Functions
2.1. build_rsyslog_grammar
Constructs an LPEG grammar based on the rsyslog template configuration string.
Arguments
- template (string) - http://rsyslog-5-8-6-doc.neocities.org/rsyslog_conf_templates.html
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