Advertisement
Guest User

Untitled

a guest
Nov 12th, 2012
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ModLoad imfile #Only needs to be loaded once like most rsyslog modules
  2.  
  3. $InputFileName /var/log/fnc/deploy.log #path to the file which you want to monitor
  4.  
  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. $InputRunFileMonitor #No Parameters *this is necessary for file monitoring. Don't forget it!
  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. & ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement