4281adfd95
* Introduced logging task for the ui * Do not update repo to allow multiple apps * Setup logging first * Different template names * Separate docker logging config * Removed duplication * Common logging task. * Tests. * Lint. * Commented out syslog server port for ui * Testing file permissions.
16 lines
452 B
Django/Jinja
16 lines
452 B
Django/Jinja
if $programname startswith 'ui_' then {
|
|
action(
|
|
type="omfwd"
|
|
protocol="{{ syslog_server_port.split(":")[0] }}"
|
|
target="{{ (syslog_server_port.split(":")[1])[2:] }}"
|
|
port="{{ syslog_server_port.split(":")[2] }}"
|
|
template="RemoteForwardFormat"
|
|
queue.SpoolDirectory="/var/spool/rsyslog"
|
|
queue.FileName="remote"
|
|
queue.MaxDiskSpace="1g"
|
|
queue.SaveOnShutdown="on"
|
|
queue.Type="LinkedList"
|
|
ResendLastMSGOnReconnect="on"
|
|
)
|
|
}
|