Page MenuHomePhabricator

The mediawiki-webserver image should only log in json format
Closed, ResolvedPublic

Description

Right now we get duplicated logs:

$ kubectl logs -f -n mwdebug mediawiki-pinkunicorn-6b5fd7d766-ps4mr mediawiki-pinkunicorn-httpd
2021-06-23T10:54:39	287	127.0.0.1	-/301	241	GET	http://donate.wikimedia.org/?foo	-	text/html	-	-	httpbb (https://wikitech.wikimedia.org/wiki/Httpbb) oblivian@cumin1001	-	-	-	-	127.0.0.1	8ca58453-39e6-4cc9-893f-873069f51802	-
{"timestamp": "2021-06-23T10:54:39", "RequestTime": "287", "Connect-IP": "127.0.0.1", "Handle/Status": "-/301", "ResponseSize": "241", "Method": "GET", "Url": "http://donate.wikimedia.org/?foo", "MimeType": "text/html", "Referer": "-", "X-Forwarded-For": "-", "User-Agent": "httpbb (https://wikitech.wikimedia.org/wiki/Httpbb) oblivian@cumin1001", "Accept-Language": "-", "X-Analytics": "-", "User": "-", "UserHeader": "-", "X-Request-Id": "8ca58453-39e6-4cc9-893f-873069f51802", "X-Client-IP": "-"}

we are logging in both the traditional format and in the json format we want to adopt here.

Event Timeline

Joe triaged this task as Medium priority.Jun 23 2021, 10:56 AM

Change 707257 had a related patch set uploaded (by Giuseppe Lavagetto; author: Giuseppe Lavagetto):

[operations/docker-images/production-images@master] http-fcgi: switch to json logging format

https://gerrit.wikimedia.org/r/707257

Change 707257 merged by Giuseppe Lavagetto:

[operations/docker-images/production-images@master] http-fcgi: switch to json logging format

https://gerrit.wikimedia.org/r/707257

Mentioned in SAL (#wikimedia-operations) [2021-07-23T14:36:46Z] <_joe_> rebuilding httpd-fcgi, mediawiki-http fixing logging T285384

Joe added a subscriber: jijiki.

Change 708036 had a related patch set uploaded (by Giuseppe Lavagetto; author: Giuseppe Lavagetto):

[operations/mediawiki-config@master] Build the mediawiki-webserver image again

https://gerrit.wikimedia.org/r/708036

Change 708036 merged by jenkins-bot:

[operations/mediawiki-config@master] Build the mediawiki-webserver image again

https://gerrit.wikimedia.org/r/708036

Change 708076 had a related patch set uploaded (by Giuseppe Lavagetto; author: Giuseppe Lavagetto):

[operations/deployment-charts@master] mwdebug: refresh the application images

https://gerrit.wikimedia.org/r/708076

Change 708076 merged by jenkins-bot:

[operations/deployment-charts@master] mwdebug: refresh the application images

https://gerrit.wikimedia.org/r/708076