DCausse has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/392591 )

Change subject: [WIP] [logstash] Add a way to move some data to debug_blob
......................................................................

[WIP] [logstash] Add a way to move some data to debug_blob

NOTE: do not work with logstash 5.5.
(5.6 is required)

Bug: T180051
Change-Id: Id0e8d3b16c55a937096aef9ad9a81865cf17b544
---
A modules/role/files/logstash/filter-debug_blob.conf
M modules/role/manifests/logstash/collector.pp
2 files changed, 14 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/91/392591/1

diff --git a/modules/role/files/logstash/filter-debug_blob.conf 
b/modules/role/files/logstash/filter-debug_blob.conf
new file mode 100644
index 0000000..938d967
--- /dev/null
+++ b/modules/role/files/logstash/filter-debug_blob.conf
@@ -0,0 +1,9 @@
+filter {
+  if "es" in [tags] {
+    if [channel] == "EventBus" {
+      mutate {
+        rename => { "[events][params]" => 
"[debug_blob][eventbus][events][params]" }
+      }
+    }
+  }
+}
diff --git a/modules/role/manifests/logstash/collector.pp 
b/modules/role/manifests/logstash/collector.pp
index 7113d5a..941472f 100644
--- a/modules/role/manifests/logstash/collector.pp
+++ b/modules/role/manifests/logstash/collector.pp
@@ -181,6 +181,11 @@
         priority => 70,
     }
 
+    logstash::conf { 'filter_debug_blob':
+        source   => 'puppet:///modules/role/logstash/filter-debug_blob.conf',
+        priority => 70,
+    }
+
     ## Outputs (90)
     # Template for Elasticsearch index creation
     file { '/etc/logstash/elasticsearch-template.json':

-- 
To view, visit https://gerrit.wikimedia.org/r/392591
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id0e8d3b16c55a937096aef9ad9a81865cf17b544
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: DCausse <dcau...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to