Dashboards & Visualizations

Visualization using php sdk

leordimalanta
Explorer

How to render data to a graph example google charts using php sdk? Need some specific answers, example or hint.

Thanks in advance.

Tags (1)
0 Karma

Damien_Dallimor
Ultra Champion

There are some good examples online. Simply by googling "php google charts" you can find many examples of integrating PHP and Google Charts ie: https://developers.google.com/chart/interactive/docs/php_example

Based on that above example , it is using a PHP function on the server side to output a JSON document that gets sent to the browser for rendering with some JS (Google Viz API)

So in a Splunk context , on the server side , you'd execute a Splunk search using the Splunk SDK for PHP and output the search results in JSON. Code examples of executing a Splunk search are here.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...