Guest User

Untitled

a guest
Dec 17th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. output {
  2. rabbitmq {
  3. exchange => "${RABBITMQ_EXCHANGE}"
  4. exchange_type => "direct"
  5. key => "%{[driftwood][rabbitmq][key]}"
  6. host => "${RABBITMQ_BOOTSTRAP_SERVER_BLUE}"
  7. user => "${logstash_user}"
  8. password => "${logstash_pass}"
  9. }
  10. # Backup stack if blue goes down
  11. # rabbitmq {
  12. # exchange => "${RABBITMQ_EXCHANGE}"
  13. # exchange_type => "direct"
  14. # key => "%{[driftwood][rabbitmq][key]}"
  15. # host => "${RABBITMQ_BOOTSTRAP_SERVER_GREEN}"
  16. # user => "${logstash_user}"
  17. # password => "${logstash_pass}"
  18. # }
  19.  
  20. # Detected message that this dev team requests also get sent to SumoLogic
  21. if [driftwood][sumologic][category] {
  22. rabbitmq {
  23. exchange => "${RABBITMQ_EXCHANGE}"
  24. exchange_type => "direct"
  25. key => "${RABBITMQ_KEY_SUMOLOGIC}"
  26. host => "${RABBITMQ_BOOTSTRAP_SERVER_BLUE}"
  27. user => "${logstash_user}"
  28. password => "${logstash_pass}"
  29. }
  30. # Debugging: Separate log of just events destined for SumoLogic
  31. # file {
  32. # path => "/tmp/to_sumo.log"
  33. # }
  34. }
  35.  
  36. # Debugging: To make sure events getting to output stage
  37. file {
  38. path => "/tmp/debug.log"
  39. }
  40. }
Add Comment
Please, Sign In to add comment