Skip to content

Commit

Permalink
Merge pull request #1444 from arooshap/master
Browse files Browse the repository at this point in the history
Update API name for WM central services in Grafana dashboard.
  • Loading branch information
arooshap authored Dec 28, 2023
2 parents 9a0eed8 + d5f350a commit ce15f87
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions kubernetes/cmsweb/monitoring/logstash.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,34 @@ filter {
pattern_definitions => { "WORDHYPHEN" => "\b[\w\-]+\b" }
match => { "request" => '/%{WORDHYPHEN:system}%{UNIXPATH:uri_path}%{URIPARAM:uri_params}?' }
}
if [uri_params] {
grok { match => { "uri_path" => '/.*/%{DATA:api}$' } }
if [api] == "" {
grok { match => { "uri_path" => '/.*/%{DATA:api}/$' } }
if [system] =~ /^(wmstatsserver|reqmgr2|t0_reqmon|ms-pileup|ms-transferor|ms-monitor|ms-output|ms-unmerged|ms-rulecleaner)$/ {
grok {
match => { "uri_path" => '/[^/]+/%{WORD:api}' }
}
} else {
grok { match => { "request" => '/.*/%{DATA:api}$' } }
if [api] == "" {
grok { match => { "request" => '/.*/%{DATA:api}/$' } }
grok {
match => { "uri_path" => '/[^/]+/%{DATA:api}/' }
}
}
}else {
if [uri_params] {
grok {
match => { "uri_path" => '/.*/%{DATA:api}$' }
}
if [api] == "" {
grok {
match => { "uri_path" => '/.*/%{DATA:api}/$' }
}
}
} else {
grok {
match => { "request" => '/.*/%{DATA:api}$' }
}
if [api] == "" {
grok {
match => { "request" => '/.*/%{DATA:api}/$' }
}
}
}
}
if [uri_params] and ![api] {
Expand Down

0 comments on commit ce15f87

Please sign in to comment.