The translation is temporarily closed for contributions due to maintenance, please come back later.
English Korean
%msg:::drop-last-lf%
%msg:::drop-last-lf%
%timegenerated:1:10:date-rfc3339%
%timegenerated:1:10:date-rfc3339%
Template Examples 템플릿트 예제
`RSYSLOG_DebugFormat` `RSYSLOG_DebugFormat`
Global Directives 전역 지시문
Log Rotation 로그 순환
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# uncomment this if you want your log files compressed
compress
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# uncomment this if you want your log files compressed
compress
/var/log/messages {
rotate 5
weekly
postrotate
/usr/bin/killall -HUP syslogd
endscript
}
/var/log/messages {
rotate 5
weekly
postrotate
/usr/bin/killall -HUP syslogd
endscript
}
$InputFileName /tmp/inputfile
$InputFileTag tag1:
$InputFileStateFile inputfile-state
$InputRunFileMonitor
$InputFileName /tmp/inputfile
$InputFileTag tag1:
$InputFileStateFile inputfile-state
$InputRunFileMonitor
$RuleSet _rulesetname_
_rule_
_rule2_
$RuleSet _rulesetname_
_rule_
_rule2_
ruleset(name="pass:attributes[{blank}]_rulesetname_pass:attributes[{blank}]") {
_rule_
_rule2_
call _rulesetname2_
…
}
ruleset(name="pass:attributes[{blank}]_rulesetname_pass:attributes[{blank}]") {
_rule_
_rule2_
call _rulesetname2_
…
}
ruleset(name="remote-10514") {
action(type="omfile" file="/var/log/remote-10514")
}
ruleset(name="remote-10514") {
action(type="omfile" file="/var/log/remote-10514")
}
ruleset(name="remote-10515") {
cron.* action(type="omfile" file="/var/log/remote-10515-cron")
mail.* action(type="omfile" file="/var/log/remote-10515-mail")
}
ruleset(name="remote-10515") {
cron.* action(type="omfile" file="/var/log/remote-10515-cron")
mail.* action(type="omfile" file="/var/log/remote-10515-mail")
}
input(type="imtcp" port="10514" ruleset="remote-10514");
input(type="imtcp" port="10515" ruleset="remote-10515");
input(type="imtcp" port="10514" ruleset="remote-10514");
input(type="imtcp" port="10515" ruleset="remote-10515");
Compatibility with syslogd syslogd와의 호환성
Disk Queues 디스크 대기열
~]#{nbsp}mkdir pass:quotes[`/rsyslog/work/`]
~]#{nbsp}mkdir pass:quotes[`/rsyslog/work/`]
$ActionQueueType LinkedList
$ActionQueueFileName example_fwd
$ActionResumeRetryCount -1
$ActionQueueSaveOnShutdown on
*.* @@example.com:18
$ActionQueueType LinkedList
$ActionQueueFileName example_fwd
$ActionResumeRetryCount -1
$ActionQueueSaveOnShutdown on
*.* @@example.com:18
Where: 장소:
Forwarding To Multiple Servers 다중 서버로 전달하기