# ### begin forwarding rule #### The statement between the begin ... end define a SINGLE forwarding# rule. They belong together, do NOT split them. If you create multiple# forwarding rules, duplicate the whole block!# Remote Logging (we use TCP for reliable delivery)## An on-disk queue is created for this action. If the remote host is# down, messages are spooled to disk and sent when it is up again.$WorkDirectory /var/spool/rsyslog # where to place spool files$ActionQueueFileName fwdRule1 # unique name prefix for spool files$ActionQueueMaxDiskSpace 1g # 1gb space limit (use as much as possible)$ActionQueueSaveOnShutdown on # save messages to disk on shutdown$ActionQueueType LinkedList # run asynchronously$ActionResumeRetryCount -1 # infinite retries if host is down# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional*.* @192.168.20.6:1514# ### end of the forwarding rule ###
My /etc/rsyslog.conf
hi Dahlgren,
--
You received this message because you are subscribed to a topic in the Google Groups "Fluentd Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fluentd/r8TlUdYwtSE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fluentd+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
thanks a lot ~
--$template nginxlog,"/home/logs/rsyslog/nginx.log.gzif $syslogfacility-text == 'local2' then ?nginxlog$template @127.0.0.1:1514,"127.0.0.1:1514"if $syslogfacility-text == 'local2' th...@192.168.20.124:1514#:rawmsg, contains, "sdns_log" @@192.168.20.124#:rawmsg, contains, "sdns_log" ~$WorkDirectory /usr/local/nginx/logs/ # where to place spool files
$ActionQueueFileName fwdRule1 # unique name prefix for spool files$ActionQueueMaxDiskSpace 1g # 1gb space limit (use as much as possible)$ActionQueueSaveOnShutdown on # save messages to disk on shutdown$ActionQueueType LinkedList # run asynchronously$ActionResumeRetryCount -1 # infinite retries if host is down# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
#*.* @192.168.20.124:1514Is it ok ? thank you very much. andLook forward to hearing from you
thanks a lot ~
$WorkDirectory /usr/local/nginx/logs/ # where to place spool files
$ActionQueueFileName fwdRule1 # unique name prefix for spool files$ActionQueueMaxDiskSpace 1g # 1gb space limit (use as much as possible)$ActionQueueSaveOnShutdown on # save messages to disk on shutdown$ActionQueueType LinkedList # run asynchronously$ActionResumeRetryCount -1 # infinite retries if host is down# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
#
*.* @192.168.20.124:1514Is it ok ? thank you very much. and