Skip to content

Commit

Permalink
add: Logstash config file
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioscardace committed Jun 11, 2024
1 parent f20f381 commit 2f73177
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions logstash-logging/logstash.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
input {
rabbitmq {
host => "${RABBITMQ_HOST}"
user => "${RABBITMQ_USER}"
password => "${RABBITMQ_PSW}"
exchange => "${RABBITMQ_EXCHANGE}"
exchange_type => "fanout"
durable => true
key => ""
threads => 1
}
}

filter {
mutate {
remove_field => ["@version", "host", "path", "event", "log"]
}
}

output {
stdout {
codec => rubydebug
}
elasticsearch {
hosts => ["elasticsearch:9200"]
index => "alerts"
document_type => "_doc"
}
}

0 comments on commit 2f73177

Please sign in to comment.