Skip to main content

Posts

Showing posts with the label Properties

Rsyslog Properties

To use Rsyslog well, it is essential to create a template that fits the desired output format, and this is an essential function of Rsyslog. We will deal with the detailed template later, and first of all, let's see what a template is. The main contents introduced in the Rsyslog document are as follows. Key Feature of Rsyslog It makes the format the user wants. It dynamically creates a file. Provides a customizing function to database users by using appropriate SQL. Template Example template(name="tpl1" type="list") { constant(value="Syslog MSG is: '") property(name="msg") constant(value="', ") property(name="timereported" dateFormat="rfc3339" caseConversion="lower") constant(value="\n") } If you define a template as above, you can output a specific log accordingly. However, to define a template, you need to know the properties used in Rsyslog. In this...