Mechanical MOOC mailgun logs

Hey @chris

Wanted to ask, what do we do with the mailgun logs that gets sent to the mechanical mooc app running on Heroku?

@Dirk - We basically just store the info into our db. See here: https://github.com/mkcode/mechanicalmooc/blob/master/mooc.rb#L190

It’s basically a duplicate of what you see on the ‘logs’ tab in the control panel of mailgun. We could just use that, but mailgun only keeps the last 100,000 entries I believe - so if we want to store the data long term, we need to keep a copy ourselves.

That being said, when I initially set this up, it was intended for June, but he hasn’t used that info at all. You could get a lot of activity metrics from them, but he hasn’t needed it. My thought when I set this up originally was that I’ll log everything I can to make sure that June has everything he needs. But it turns out we don’t need them.

Cool, thanks. I think for the time being we’ll probably do without them.

I guess another possibility would be to have the webhooks implemented and then calculate and store aggregates instead of the logs themselves.