Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- output {
- rabbitmq {
- exchange => "${RABBITMQ_EXCHANGE}"
- exchange_type => "direct"
- key => "%{[driftwood][rabbitmq][key]}"
- host => "${RABBITMQ_BOOTSTRAP_SERVER_BLUE}"
- user => "${logstash_user}"
- password => "${logstash_pass}"
- }
- # Backup stack if blue goes down
- # rabbitmq {
- # exchange => "${RABBITMQ_EXCHANGE}"
- # exchange_type => "direct"
- # key => "%{[driftwood][rabbitmq][key]}"
- # host => "${RABBITMQ_BOOTSTRAP_SERVER_GREEN}"
- # user => "${logstash_user}"
- # password => "${logstash_pass}"
- # }
- # Detected message that this dev team requests also get sent to SumoLogic
- if [driftwood][sumologic][category] {
- rabbitmq {
- exchange => "${RABBITMQ_EXCHANGE}"
- exchange_type => "direct"
- key => "${RABBITMQ_KEY_SUMOLOGIC}"
- host => "${RABBITMQ_BOOTSTRAP_SERVER_BLUE}"
- user => "${logstash_user}"
- password => "${logstash_pass}"
- }
- # Debugging: Separate log of just events destined for SumoLogic
- # file {
- # path => "/tmp/to_sumo.log"
- # }
- }
- # Debugging: To make sure events getting to output stage
- file {
- path => "/tmp/debug.log"
- }
- }
Add Comment
Please, Sign In to add comment