Skip to content

Commit

Permalink
adding it in a separate pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ivukotic committed Jan 23, 2024
1 parent da5a600 commit e49f24b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
1 change: 1 addition & 0 deletions Dockerfile.ps_collector
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ COPY configs/ps-throughput.conf /usr/share/logstash/configs/ps-throughput.conf
COPY configs/ps-trace.conf /usr/share/logstash/configs/ps-trace.conf
COPY configs/ps-intake.conf /usr/share/logstash/configs/ps-intake.conf
COPY configs/es-output.conf /usr/share/logstash/configs/es-output.conf
COPY configs/nebraska.conf /usr/share/logstash/configs/nebraska.conf
COPY configs/ps-debug.conf /usr/share/logstash/configs/ps-debug.conf

COPY pipelines/ps-collector.yml /usr/share/logstash/config/pipelines.yml
Expand Down
11 changes: 1 addition & 10 deletions configs/es-output.conf
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,7 @@ output {
document_id => "%{[@metadata][id]}"
}

rabbitmq {
host => "clever-turkey.rmq.cloudamqp.com"
user => "uc-nma"
password => "WT5hc7NLVp3mPC4it"
vhost => "osg-nma"
exchange => "uc-osg-nma-push"
exchange_type => "fanout"
}


pipeline { send_to => ["nebraska"] }

}

Expand Down
22 changes: 22 additions & 0 deletions configs/nebraska.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
input {
pipeline { address => "nebraska" }
}

filter {
mutate{
add_field => { "_index" => "[@metadata][type]" }
}
}

output {

rabbitmq {
host => "clever-turkey.rmq.cloudamqp.com"
user => "uc-nma"
password => "WT5hc7NLVp3mPC4it"
vhost => "osg-nma"
exchange => "uc-osg-nma-push"
exchange_type => "fanout"
}

}
3 changes: 3 additions & 0 deletions pipelines/ps-collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
- pipeline.id: es-output
path.config: "/usr/share/logstash/configs/es-output.conf"
pipeline.workers: 1
- pipeline.id: nebraska
path.config: "/usr/share/logstash/configs/nebraska.conf"
pipeline.workers: 1
# - pipeline.id: ps-debug
# path.config: "/usr/share/logstash/configs/ps-debug.conf"
# pipeline.workers: 1
Expand Down

0 comments on commit e49f24b

Please sign in to comment.