SHOW:
|
|
- or go back to the newest paste.
| 1 | $ModLoad imfile #Only needs to be loaded once like most rsyslog modules | |
| 2 | ||
| 3 | - | #$InputFileTag deploy: #The tag apache can be changed to whatever you'd like *note this is referenced in the if $programname |
| 3 | + | |
| 4 | ||
| 5 | - | $InputFileStateFile stat-deploy#the name of file within rsyslogs working directory |
| 5 | + | #$InputFileTag deploy: #The tag apache can be changed to whatever you'd like *note this is referenced in the if $programname |
| 6 | ||
| 7 | $InputFileTag tomcat: | |
| 8 | ||
| 9 | $InputFileStateFile stat-deploy #the name of file within rsyslogs working directory | |
| 10 | ||
| 11 | $InputFileSeverity info #By default this is set to 'notice' options include standard syslog severity level of your choice | |
| 12 | ||
| 13 | - | *.* @@logs.loggly.com:41892 |
| 13 | + | |
| 14 | ||
| 15 | $InputFilePollInterval 1 #Set to how often you'd like rsyslog to check out that file every second (defaults to 10 seconds) | |
| 16 | ||
| 17 | #if $programname == 'deploy' then @@logs.loggly.com:41111 # This is a filter to the Loggly port number without a template | |
| 18 | ||
| 19 | #if $programname == 'tomcat' then @@logs.loggly.com:41111 | |
| 20 | ||
| 21 | *.* @@logs.loggly.com:41111 | |
| 22 | & ~ |