Tibor Benke <btibi@sch.bme.hu>
new
cmd, ps, syslog_ng
all
plain ones and reload, start, or stop their syslog-ng by using this module.
The service module is not available on all system, so this module includes
syslog_ng.reloaded
,
syslog_ng.stopped
,
and syslog_ng.started
functions.
If the service module is available on the computers, users should use that.
Users can generate syslog-ng configuration with
syslog_ng.config
function.
For more information see syslog-ng state usage.
The syntax of a configuration snippet in syslog-ng.conf:
object_type object_id {<options>};
These constructions are also called statements. There are options inside of them:
option(parameter1, parameter2); option2(parameter1, parameter2);
You can find more information about syslog-ng's configuration syntax in the Syslog-ng Admin guide: http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.5-guides/en/syslog-ng-ose-v3.5-guide-admin/html-single/index.html#syslog-ng.conf.5
Builds syslog-ng configuration.
name : the id of the Salt document config : the parsed YAML code write : if True, it writes the config into the configuration file, otherwise just returns it
Reloads syslog-ng.
Ensures, that syslog-ng is started via the given parameters.
Users shouldn't use this function, if the service module is available on their system.
Kills syslog-ng.