Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ModLoad imfile #Only needs to be loaded once like most rsyslog modules
- $InputFileName /var/log/fnc/deploy.log #path to the file which you want to monitor
- #$InputFileTag deploy: #The tag apache can be changed to whatever you'd like *note this is referenced in the if $programname
- $InputFileTag tomcat:
- $InputFileStateFile stat-deploy #the name of file within rsyslogs working directory
- $InputFileSeverity info #By default this is set to 'notice' options include standard syslog severity level of your choice
- $InputRunFileMonitor #No Parameters *this is necessary for file monitoring. Don't forget it!
- $InputFilePollInterval 1 #Set to how often you'd like rsyslog to check out that file every second (defaults to 10 seconds)
- #if $programname == 'deploy' then @@logs.loggly.com:41111 # This is a filter to the Loggly port number without a template
- #if $programname == 'tomcat' then @@logs.loggly.com:41111
- *.* @@logs.loggly.com:41111
- & ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement