Created
November 19, 2013 20:11
-
-
Save jjrussell/7551735 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/rsyslog.conf Configuration file for rsyslog. | |
# | |
# For more information see | |
# /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html | |
# | |
# Default logging rules can be found in /etc/rsyslog.d/50-default.conf | |
#if $syslogtag == "tjs-rails" then { | |
# action(type="omfwd" target="logstash-us-east-1e.tapjoy.net" Port="5544" Protocol="tcp") | |
# stop | |
#} | |
$ActionQueueType FixedArray | |
$ActionQueueSize 10000 | |
$ActionQueueTimeoutEnqueue 0 | |
# we aren't queueing to disk but just in case make sure there's a limit. | |
$ActionQueueMaxDiskSpace 300m | |
$ActionQueueDequeueSlowdown 100000 | |
$ActionQueueDiscardSeverity 0 | |
:syslogtag, isequal, "tjs_rails:" @@logstash-us-east-1d.tapjoy.net:5544 | |
& ~ | |
$ActionQueueType FixedArray | |
$ActionQueueSize 10000 | |
$ActionQueueTimeoutEnqueue 0 | |
# we aren't queueing to disk but just in case make sure there's a limit. | |
$ActionQueueMaxDiskSpace 300m | |
$ActionQueueDequeueSlowdown 100000 | |
$ActionQueueDiscardSeverity 0 | |
:syslogtag, isequal, "unicorn:" @@logstash-us-east-1d.tapjoy.net:5544 | |
& ~ | |
################# | |
#### MODULES #### | |
################# | |
$ModLoad imuxsock # provides support for local system logging | |
$ModLoad imklog # provides kernel logging support (previously done by rklogd) | |
$ModLoad imfile | |
#$ModLoad immark # provides --MARK-- message capability | |
# provides UDP syslog reception | |
#$ModLoad imudp | |
#$UDPServerRun 514 | |
# provides TCP syslog reception | |
#$ModLoad imtcp | |
#$InputTCPServerRun 514 | |
########################### | |
#### GLOBAL DIRECTIVES #### | |
########################### | |
# | |
# Use traditional timestamp format. | |
# To enable high precision timestamps, comment out the following line. | |
# | |
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat | |
# Filter duplicated messages | |
$RepeatedMsgReduction on | |
# | |
# Set the default permissions for all log files. | |
# | |
$FileOwner syslog | |
$FileGroup adm | |
$FileCreateMode 0640 | |
$DirCreateMode 0755 | |
$Umask 0022 | |
$PrivDropToUser syslog | |
$PrivDropToGroup syslog | |
# | |
# Where to place spool files | |
# | |
$WorkDirectory /var/spool/rsyslog | |
$MainMsgQueueType FixedArray | |
$MainMsgQueueSize 10000 | |
$MainMsgQueueTimeoutEnqueue 0 | |
# we aren't queueing to disk but just in case make sure there's a limit. | |
$MainMsgQueueMaxDiskSpace 300m | |
$MainMsgQueueDequeueSlowdown 100000 | |
$MainMsgQueueDiscardSeverity 0 | |
$InputFileName /mnt/log/tapjoyserver/production.log | |
$InputFileTag tjs_rails: | |
$InputFileStateFile state-tjs_rails | |
$inputFileReadMode 1 | |
$InputRunFileMonitor | |
$InputFileName /mnt/log/tapjoyserver/tapinabox.log | |
$InputFileTag tapinabox: | |
$InputFileStateFile state-tapinabox | |
$inputFileReadMode 1 | |
$InputRunFileMonitor | |
$InputFileName /mnt/log/tapjoyserver/chore.log | |
$InputFileTag chore: | |
$InputFileStateFile state-chore | |
$inputFileReadMode 1 | |
$InputRunFileMonitor | |
$InputFileName /mnt/log/unicorn/stdout.log | |
$InputFileTag unicorn: | |
$InputFileStateFile state-unicorn | |
$inputFileReadMode 1 | |
$InputRunFileMonitor | |
$InputFileName /mnt/log/unicorn/stderr.log | |
$InputFileTag unicorn: | |
$InputFileStateFile state-unicorn_err | |
$inputFileReadMode 1 | |
$InputRunFileMonitor | |
$InputFileName /mnt/log/chef/client.log | |
$InputFileTag chef: | |
$InputFileStateFile state-chef | |
$inputFileReadMode 1 | |
$InputRunFileMonitor | |
# | |
# Include all config files in /etc/rsyslog.d/ | |
# | |
$IncludeConfig /etc/rsyslog.d/*.conf | |
*.* /var/log/syslog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment