Skip to content

Commit

Permalink
fix(hermes): swap logstash mutate of initiator project/domain
Browse files Browse the repository at this point in the history
  • Loading branch information
IvoGoman committed Nov 23, 2023
1 parent 69572ba commit 88b28e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openstack/hermes/templates/etc/_logstash.conf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ filter {
if ![initiator][project_id] and ![initiator][domain_id] {
if [project] {
mutate {
add_field => { "%{[initiator][project_id]}" => "%{[project]}" }
add_field => { "%{[project]}" => "%{[initiator][project_id]}" }
id => "f06a_mutate_initiator_project_id"
}
} else if [domain] {
mutate {
add_field => { "%{[initiator][domain_id]}" => "%{[domain]}" }
add_field => { "%{[domain]}" ==> "%{[initiator][domain_id]}"}
id => "f06b_mutate_initiator_domain_id"
}
}
Expand Down

0 comments on commit 88b28e9

Please sign in to comment.