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
|
## Loads UDP
|
||||||
module(load="imudp" port="514")
|
module(load="imudp" port="514")
|
||||||
|
|
||||||
ruleset(name="remote") {
|
ruleset(name="remote") {
|
||||||
action(type="omfile" DynaFile="RemoteHost")
|
action(type="omfile" DynaFile="RemoteHost" zipLevel="5")
|
||||||
}
|
}
|
||||||
|
|
||||||
input(type="imudp" port="514" ruleset="remote")
|
input(type="imudp" port="514" ruleset="remote")
|
||||||
|
Reference in New Issue
Block a user