Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. ##CEE TEMPLATE
  2. template(name="cee" type="list") {
  3. constant(value="<") property(name="pri") constant(value=">")
  4. property(name="timereported" dateFormat="rfc3339")
  5. constant(value=" ") property(name="$myhostname")
  6. constant(value=" ") property(name="programname")
  7. constant(value=" ")
  8. constant(value="@cee: {")
  9. #SYSLOG
  10. constant(value="\"using_cee_relp\":\"yes\", ")
  11. property(name="uuid" format="jsonf" outname="uuid") constant(value=", ")
  12. property(name="$myhostname" format="jsonf" outname="host") constant(value=", ")
  13. property(name="syslogtag" format="jsonf" outname="tag") constant(value=", ")
  14. property(name="programname" format="jsonf" outname="prog") constant(value=", ")
  15. property(name="syslogfacility-text" format="jsonf" outname="facility") constant(value=", ")
  16. property(name="syslogpriority-text" format="jsonf" outname="priority") constant(value=", ")
  17. property(name="timegenerated" dateFormat="rfc3339" format="jsonf" outname="@ts_cli") constant(value=", ")
  18. ##ES TIMESTAMP
  19. constant(value="\"@timestamp\":\"")
  20. property(name="timereported" dateFormat="unixtimestamp")
  21. constant(value="000\", ")
  22. #REST
  23. property(name="$!all-json" position.from="2")
  24. }
  25.  
  26. ---
  27.  
  28.  
  29. ruleset(name="client_relp_cee" queue.filename="client_relp_cee" queue.highwatermark="10000" queue.lowwatermark="500" queue.size="12000000" queue.discardmark="10000000" queue.dequeuebatchsize="2000" queue.type="linkedlist" queue.saveonshutdown="on" queue.checkpointinterval="30" queue.timeoutshutdown="2000" queue.workerthreads="2") {
  30. action(type="omrelp" action.resumeRetryCount="-1" action.resumeInterval="15" action.reportSuspension="on" action.reportSuspensionContinuation="on" Template="cee" Target="localhost" Port="20516")
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement