We don't have consistent centralized logging for our webapps. Some logs appear in /var/log/httpd/error_log, some have their own /var/log/<app> logs, etc.
I just documented how we can configure the Python logging module to output to SysLog, which will then get sent to our central rsyslog.
https://fedoraproject.org/wiki/Infrastructure/AppBestPractices
We should configure this for all our apps.
So, bodhi is the only one done now?
now need doing?
I'll whack away at this if it's still needed.
Cheers,
Steven
I'll take this.
Logging configuration for bodhi bodhi-prod.cfg.erb
Logging configuration for busmon busmon-prod.ini.erb
Logging configuration for fedocal alembic.ini.erb
Logging configuration for elections elections-prod.cfg.erb
Logging configuration for packages and tagger fedoracommunity-prod.ini.erb
Logging configuration for fedmsg logging.py.erb
Logging configuration for mirrormanager mirrormanager-prod.cfg.erb
Logging configuration for packagesdb pkgdb-prod.cfg.erb
Logging configuration for ask.fedoraproject setttings.erb
I did some investigation of the problem. You can find my solutions to the problem in the uploaded files. Please have a look and tell me what I did wrong and what I need to fix.
Didn't pay attention to details when I was reading Fedora Infrastructure getting started page. I hope this time the content of the files is correct. Probably some changes will be needed, because I wasn't sure in some cases. Anyway I need someone to have a look at files and tell what is ok and what is not.
attachment bodhi_logging.patch
attachment busmon_logging.patch
attachment elections_logging.patch
attachment fedmsg_logging.patch
attachment fedocal_logging.patch
attachment mirrormanager_logging.patch
attachment packagedb_logging.patch
attachment packages_logging.patch
attachment ask.fedoraproject.org_logging.patch
Sorry for the delay here... I asked lmacken to take a look at this and see this looks good. ;)
Thanks for working on it.
Your changes look good, janeznemanic! Thanks for doing this :) Setting the socktype to TCP is a good idea, since it apparently works nicely with rsyslog. I've updated my example on the wiki to include this.
As for rolling this out, I think doing one app at a time in staging is probably the best approach. I'm happy to help with this at some point next week if you've got some free time.
No problem. Just need to know what are the errors to correct them.
Anything new on this ticket?
Moving all currently open easyfix tickets to the HANDYWAVY-FUTURE milestone.
I'm clearing the assigned status on all easyfix tickets.
If you are an apprentice actively working on this ticket, feel free to reassign to yourself. Otherwise let a new apprentice have a look.
It look like most of the work is done (patchset). Any other apps that I can look off?
Some patches need to be reformatted for ansible. I'll dig into it.
ask_ansible.patch ask_ansible.patch
attachment bodhi-masher.patch
Does this needs to be redone due to migration to Ansible?
I don't think so, but we probibly need to see where we are at. Are there any applications not yet setup?
Looking on log01 in /var/log/merged/app* should show the ones that are logging ok.
Is anyone working on this ticket? May I take it?
Please do. I'd suggest asking folks in #fedora-apps for the best way forward.
Kevin, looks like it was all done, should we close this ticket?
It is? then sure, we can.
We might bring this up in the meeting thursday (tomorrow) however and make sure everyone agrees it's done before we close it.
Would you like to add it to the gobby document for discussion?
Log in to comment on this ticket.