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.
- 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(name="tpl1" type="list") { |
Properties |
Description |
msg |
message part of rsyslog |
fromhost | hostname of the system to transmit |
fromhost-ip |
same as hostname but IP address |
syslogtag |
Syslog Messasge TAG |
programname |
Static part of tag defined in BSD syslogd |
pri | PRI value of syslog message |
syslogfacility | facility of syslog message |
syslogfacility-text |
Syslog Message's facility
text form |
syslogseverity |
Syslog Message's sverity
numerical form |
syslogseverity-text |
Syslog Message's severity
text form |
timegenerated |
timestamp of received time |
timereported | timestamp of reported time |
timestamp |
same of timereported |
app-name | APP-NAME field defined in |
Comments
Post a Comment