I noticed that a recent server error didn't seem to appear in logstash. I'm not sure if we're failing to send errors, or if the level is not being recorded.
See also T149010#3136402.
I noticed that a recent server error didn't seem to appear in logstash. I'm not sure if we're failing to send errors, or if the level is not being recorded.
See also T149010#3136402.
When returning error responses, ores.wsgi.util.format_error summarizes as type=error class name, message=str cast. This response error handling code might be a good place to log the complete traceback as well.
Today I realized this is very important, we don't report anything outside of uwsgi logs to the logstash and I don't have access to syslog or deamon.log, Basically I can't see any errors of ORES
Hm, it seems to me the way forward here would be to include python-logstash and then add it as logging handler via the deployed [[https://phabricator.wikimedia.org/source/ores-deploy/browse/master/logging_config.yaml|logging_config.yaml]].
The library seems unmaintained :/ but beside that it's a good idea to use it, worst case, we fork and maintain it.
The library is basically four files, the last commit on it was two years ago and it doesn't support python3, we basically can write it from scratch. I will do it.
Change 466716 had a related patch set uploaded (by Ladsgroup; owner: Amir Sarabadani):
[operations/puppet@production] ores: Add logstash config
Change 466716 merged by Alexandros Kosiaris:
[operations/puppet@production] ores: Add logstash config
Change 466857 had a related patch set uploaded (by Ladsgroup; owner: Amir Sarabadani):
[mediawiki/services/ores/deploy@master] Start using logstash
Change 466857 merged by Ladsgroup:
[mediawiki/services/ores/deploy@master] Start using logstash
Change 470827 had a related patch set uploaded (by Ladsgroup; owner: Ladsgroup):
[operations/puppet@production] ores: Change logstash port from GELF to json lines
Change 470827 merged by Dzahn:
[operations/puppet@production] ores: Change logstash port from GELF to json lines