jenkins-bot has submitted this change and it was merged.

Change subject: Logging: Add ApiRequest kafka logging
......................................................................


Logging: Add ApiRequest kafka logging

Log 1 in 5000 Action API requests to a Kafka topic as Avro encoded data.

Bug: T108618
Depends-On: I94c730f196bb8629cac9408e61139fab79a34f8d
Depends-On: I694a3000bab0d569dfe41d711f05121b917e6104
Depends-On: I07f36b678633bc6bc33169049606e69ca2bbb72a
Depends-On: Ie5a402018b347a6fbcd08fb25ebdf59e7ca2bdf4
Depends-On: I13553099498cd351047f6ff18d37cc0b3504782d
Change-Id: Id03cb0a2359add88571d809083bfcc97fd1074d6
---
M wmf-config/InitialiseSettings.php
M wmf-config/event-schemas
2 files changed, 11 insertions(+), 0 deletions(-)

Approvals:
  BryanDavis: Looks good to me, approved
  EBernhardson: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index d0664c1..6ba9503 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -4436,6 +4436,10 @@
                        'schema' => file_get_contents( __DIR__ . 
'/event-schemas/avro/mediawiki/CirrusSearchRequestSet/111448028943.avsc' ),
                        'revision' => 111448028943,
                ),
+               'ApiRequest' => array(
+                       'schema' => file_get_contents( __DIR__ . 
'/event-schemas/avro/mediawiki/ApiRequest/101453221640.avsc' ),
+                       'revision' => 101453221640,
+               ),
        ),
 ),
 # @} end of wmgAvroSchemas
@@ -4456,6 +4460,13 @@
                'antispoof' => 'debug',
                'api' => array( 'logstash' => false ),
                'api-feature-usage' => 'debug',
+               'ApiRequest' => array(
+                       'udp2log' => false,
+                       'logstash' => false,
+                       'kafka' => 'debug',
+                       'buffer' => true,
+                       'sample' => 5000,
+               ),
                'badpass' => 'debug',
                'BounceHandler' => 'debug',
                'Bug58676' => 'debug', # Invalid message parameter
diff --git a/wmf-config/event-schemas b/wmf-config/event-schemas
index 3ae2974..c9456af 160000
--- a/wmf-config/event-schemas
+++ b/wmf-config/event-schemas
-Subproject commit 3ae2974957d160ed11173252c4ddc4c4a26d5255
+Subproject commit c9456af43d26a6e20df958530bed68b99898ad7d

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Id03cb0a2359add88571d809083bfcc97fd1074d6
Gerrit-PatchSet: 3
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: BryanDavis <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: GergÅ‘ Tisza <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to