-
Notifications
You must be signed in to change notification settings - Fork 2
Configuration file syntax
alhafoudh edited this page Sep 13, 2010
·
1 revision
parameter | description |
---|---|
:logfile | file where all messages will be output |
:jabber_debug | this will set Jabber::debug variable from xmpp4r library |
:debug | debug for this application, if true then debug messages will be output to /stdout/, logfile will be always generated |
:username | JID which will be used for login |
:password | … the password |
:friends_list | list of JID’s which will be notified |
:watch | configuration of file watchers |
:watch > :file | file which will be watched |
:watch > :interval | delay between scans in seconds |
:watch > :rules | list of rules which will be matched against every line got from watcher |
:watch > :rules > ARG1 | regex patter which will be matched |
:watch > :rules > ARG2 | action which will be performed |
--- :logfile: syslog2jabber.log :jabber_debug: false :debug: true :username: [email protected]/ruby :password: supersecret :friends_list: - [email protected] - [email protected] :watch: - :file: /var/log/syslog :interval: 1 :rules: - "CRON" : exclude - "" : include - :file: /var/log/auth.log :interval: 1 :rules: - "authentication failure" : include - "" : exclude