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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...