Dashboards & Visualizations

Visualization using php sdk


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

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!

Splunk Observability Cloud | Unified Identity - Now Available for Existing Splunk ...

Raise your hand if you’ve already forgotten your username or password when logging into an account. (We can’t ...

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...