Dashboards & Visualizations

Get multiple splunk query results onto different google graph

yande
New Member

I am trying to output splunk multiple splunk search results onto different google graphs. I loop through my function but it only display graphs with the last value. If I include the variable inside the for loop, it appends the results onto the different graphs. I am trying out only 2 graphs at the moment for testing.

code: https://jsfiddle.net/#&togetherjs=NaL0vLU7Eh

Tags (2)
0 Karma

niketn
Legend

@yande for some reasons the JSFiddle is not opening. Can you make sure the link is correct? Would it be possible for you to add more details as to what is your requirement (possibly a mock up of what is required) and with the SPL/Code that you have tried. Which Google Graph are you trying to use?

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

yande
New Member

@niketnilay Sorry for the broken link, this link should work now. https://jsfiddle.net/yamero/c461br3j/.

right now I am testing my functions with pie graph but I hope to explore various different graphs such as bar graph and line graph in the future.

I am trying to do a side project where I use a query Splunk through a web page to get results back in a form of graphs. I am trying to create graphs dynamically instead of having my codes pasted multiple time just to create more than one graph.

The val,val1,val2 variables in my code does not seem to work as intended in my head. I want them to have data in the array and output it into a graph, when looped the array becomes empty again, ready to output data into a new graph on the same page again.

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...