Parses /etc/rsyslog.conf
Author: Raphael Pinson raphael@camptoc amp.com .pinsons
Rsyslog | Parses /etc/rsyslog.conf |
Reference | This lens tries to keep as close as possible to `man 5 rsyslog.conf` where possible. |
License | This file is licenced under the LGPL v2+, like the rest of Augeas. |
Lens Usage | To be documented |
Configuration files | This lens applies to /etc/rsyslog.conf. |
Examples | The Test_Rsyslog file contains various examples and tests. |
Augeas Lenses | |
users | Map :omusrmsg: and a list of users, or a single * |
file_tmpl | File action with a specified template |
entry | An entry contains selectors and an action |
prop_filter | Parses property-based filters, which start with “:” and the property name |
This lens applies to /etc/rsyslog.conf. See filter.
The Test_Rsyslog file contains various examples and tests.
let prop_filter = let sep = Sep.comma . Util.del_opt_ws " " in let prop_name = [ Util.del_str ":" . label "property" . store Rx.word ] in let prop_oper = [ label "operation" . store /[A-Za-z!-]+/ ] in let prop_val = [ label "value" . Quote.do_dquote (store /[^\n"]*/) ] in let prop_act = [ label "action" . action ] in [ label "filter" . prop_name . sep . prop_oper . sep . prop_val . Sep.space . prop_act . Util.eol ]
Parses property-based filters, which start with “:” and the property name
File action with a specified template
let file_tmpl = Syslog.file . [ label "template" . Util.del_str ";" . store Rx.word ]
An entry contains selectors and an action
let entry = [ label "entry" . Syslog.selectors . Syslog.sep_tab . [ label "action" . action ] . Util.eol ]
Parses property-based filters, which start with “:” and the property name
let prop_filter = let sep = Sep.comma . Util.del_opt_ws " " in let prop_name = [ Util.del_str ":" . label "property" . store Rx.word ] in let prop_oper = [ label "operation" . store /[A-Za-z!-]+/ ] in let prop_val = [ label "value" . Quote.do_dquote (store /[^\n"]*/) ] in let prop_act = [ label "action" . action ] in [ label "filter" . prop_name . sep . prop_oper . sep . prop_val . Sep.space . prop_act . Util.eol ]