I can't find examples of our celery logs anywhere in logstash. Maybe we should configure this? The events seem particularly interesting, but I guess they would be redundant with the events we collect directly from the app?
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Restricted Task | |||||
Resolved | • Ladsgroup | T169586 Send celery logs and events to logstash |
Event Timeline
How do logs get sent to logstash anyway? I'm not even sure how to get started on this task.
[05:13]<mutante> celery seems to mean it's an analytics thing
[05:13]<mutante> is this about getting into stats?
[05:13]<mutante> +https://wikitech.wikimedia.org/wiki/Wikimetrics, ?
[05:13]<mutante> eh, gettin data OUT of stats?
[05:14]<mutante> maybe it's a question for #wikimedia-analytics if they run celerey ?
[05:14]<mutante> the word "celery" doesnt appear in site.pp either
It seems that @Dzahn isn't familiar with our use of celery. I think analytics used celery for something at some point in the past. We use celery for ORES' distributed processing now. Celery's daemon works just like uwsgi. We should be able to direct the logs and roll them in any way we want.
That's right. When i was asked about it on IRC there was no context, basically just the word "celery" and i am not familiar with it.
1:53 PM <ebernhardson> depending on which thing is sending to logstash ... for example amir started sending ores logs to logstash with https://gerrit.wikimedia.org/r/#/c/321096/11/modules/service/manifests/uwsgi.pp
1:53 PM <ebernhardson> basically just stuffs python logging on a socket that logstash reads
Change 377553 had a related patch set uploaded (by Awight; owner: Awight):
[mediawiki/services/ores/deploy@master] [WIP] Send logs to logstash
Looks like we already have messages going to logstash, per T175736#3604901. Confirm that celery logs are included, before closing this task.
Celery is in another service (and in case of labs, it's even in another node) by checking ores-worker-01 node in labs I can confirm we are not sending any logs :/
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 468314 had a related patch set uploaded (by Ladsgroup; owner: Ladsgroup):
[mediawiki/services/ores/deploy@master] Add uwsgi logging
Change 468314 merged by Ladsgroup:
[mediawiki/services/ores/deploy@master] Add uwsgi logging
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