Assuming you want something simple/easy, there are vendors that have already created this solution (e.g.
https://www.cloudextend.io/ I think there are a few others, that's just the one I'm most familiar with). I recommend purchasing one of these type of solutions rather than trying to build something yourself. If you want something more complex/hands-on the other option you could look into is the SuiteAnalytics Connect ODBC/JDBC driver thingy. It has an additional annual cost associated with it, but it allows you to connect directly to the database tables. Bit steeper of a learning curve, but if the 3rd party solutions don't get you what you need, that's the only other non-scripting alternative that I'm aware of.