Trying to get logs to splunk

I m trying to get logs from Cloudflare to splunk to calculate sessions and page views of our site based on traffic

Hello, to get logs from Cloudflare to Splunk, you can use Cloudflare Logpush service. This service is available on the Enterprise plan- Logpush ยท Cloudflare Logs docs

However, you can also use Cloudflare Workers, to receive logs from the edge with a little technical effort, regardless of which plan you are using. For more details, please check the following blog article: Logs from the Edge