Gilles has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/380943 )
Change subject: Thumbor: don’t rewrite host value in logstash messages
......................................................................
Thumbor: don’t rewrite host value in logstash messages
Bug: T150734
Change-Id: Ibe1f4f0242ca74d335b575366c033c2282e54b7a
---
M modules/role/files/logstash/filter-logback.conf
1 file changed, 6 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/43/380943/1
diff --git a/modules/role/files/logstash/filter-logback.conf
b/modules/role/files/logstash/filter-logback.conf
index 8af363b..2f38919 100644
--- a/modules/role/files/logstash/filter-logback.conf
+++ b/modules/role/files/logstash/filter-logback.conf
@@ -3,8 +3,13 @@
filter {
if [type] == "logback" {
# General message cleanup
+ if "thumbor" not in [tags] {
+ mutate {
+ replace => [ "host", "%{HOSTNAME}" ]
+ }
+ }
+
mutate {
- replace => [ "host", "%{HOSTNAME}" ]
add_tag => [ "logback", "es" ]
}
--
To view, visit https://gerrit.wikimedia.org/r/380943
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibe1f4f0242ca74d335b575366c033c2282e54b7a
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Gilles <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits