Custom Splunk Datasource Plugin?

Hello,

I’d like to import data from Splunk into Grafana so I can use Grafana’s visualization and Splunk’s backend. Is it realistic for me to be able to develop a simple custom datasource to do this? For example, could I make some Splunk API calls from a modified simple json datasource to return splunk events? It wouldn’t need advanced gui functionality like the official plugin, just the ability to feed a splunk search string in and get event data back out. Where could I start with that?

Or, would I be stuck purchasing the premium splunk-grafana plugin for anything like that?

Thanks