Page MenuHomePhabricator

Improve logstash logging for mathoid
Open, LowPublic

Description

There are no logs for mathoid in logstash at all. The logging settings for mathoid look like this:

logging:
  name: mathoid
  streams:
    - type: stdout
    - host: logstash.svc.eqiad.wmnet
      port: 12201
      type: gelf

Local logging is not great either:

ppchelko@deploy1001:/srv/deployment-charts/helmfile.d/services/eqiad/mathoid$ source .hfenv; kubectl logs -c mathoid-production -f --since 90m mathoid-production-69874f6494-sqmgm 
TeX parse error: Double subscripts: use braces to clarify
TeX parse error: Undefined control sequence \emph
TeX parse error: Extra close brace or missing open brace

We need to make mathoid log meaningful messages both locally and to logstash.