Guest User

Untitled

a guest
Apr 22nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. template (name="my_fmt" type="string" string="<%PRI%>%TIMESTAMP% %HOSTNAME% %syslogtag% %msg%n")
  2. if ( ... ) then {
  3. action(type="ompipe" Pipe="/tmp/SITENAME/pipe" Template="my_fmt")
  4. stop
  5. }
  6.  
  7. set ACTUAL_SITE = "foo";
  8.  
  9. template (name="my_fmt" type="string" string="<%PRI%>%TIMESTAMP% %HOSTNAME% %syslogtag% %msg%n")
  10. if ( ... ) then {
  11. action(type="ompipe" Pipe="/tmp/$ACTUAL_SITE/pipe" Template="my_fmt")
  12. stop
  13. }
Add Comment
Please, Sign In to add comment