Splunk takes the raw data an indexes it, you can then run searches against the data.
You can access the data by running searches in Splunk, which can be done via the REST API:
https://dev.splunk.com/restapi
The following is a list of the aggregate functions that can be used:
https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Stats
Via rest, you could run a basic search like "index=*" , which would return the raw events.
You use the stats functions against fields in the data, "index=* | stats sum(kb) as "kb sent" by host"
What aggregates you can calculate will depend on the data you have, and what fields are available.
Splunk has several add-on available for parsing and reporting on data from common tools, systems, etc..
... View more