Grafana K6 Output send to Splunk / Grafana

Hey @sujeetp06,
you should evaluate using Grafana Cloud k6, because it solves already all the issues you are facing.
You have there also the option to run the test locally (or in any other machine, like CI pipelines) and stream the metrics results to the Cloud. In this way, you can run the script whatever you want but use Grafana Cloud k6 to visualize and get the insights on your test.

You can do that by running the command: k6 run -o cloud script.js.

Instead, if you don’t want to use the Cloud then you have to use one of the other real-time metrics output. Check the documentation Real time | Grafana k6 documentation.
Note, that Splunk seems to support OpenTelemetry, so you might use the OTel output for it.

I hope it helps.