In case this is re-inventing the wheel, I’ve been search in the forums for existing code examples that simply open an event stream and log it to a mysql table. Does such a thing exist or is it time to create it?
I don't know that we have an official tutorial, but it looks like this is a common enough desire here in the community. Did a quick search, and found a few different threads--perhaps this one helps?