Compression of syslog files received
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
template(name="RemoteHost" type="string" string="/srv/log/%HOSTNAME%/%$YEAR%-%$MONTH%-%$DAY%.log")
|
||||
template(name="RemoteHost" type="string" string="/srv/log/%HOSTNAME%/%$YEAR%-%$MONTH%-%$DAY%.log.gz")
|
||||
|
||||
## Loads UDP
|
||||
module(load="imudp" port="514")
|
||||
|
||||
ruleset(name="remote") {
|
||||
action(type="omfile" DynaFile="RemoteHost")
|
||||
action(type="omfile" DynaFile="RemoteHost" zipLevel="5")
|
||||
}
|
||||
|
||||
input(type="imudp" port="514" ruleset="remote")
|
||||
|
Reference in New Issue
Block a user