Splunk Dev

Can I build a UI for Splunk in AngularJS?

manojkrishnan
Engager

I want a rich UI. Can Splunk use AngularJS as the UI by fetching the necessary information from Splunk?

0 Karma

ehudb
Contributor

You can try the Angular Examples app, for demonstrations of using Angular within Splunk HTML dashboard:
https://splunkbase.splunk.com/app/4045/

0 Karma

niketn
Legend

@manojkrishnan, you can do a lot of rich customization to Splunk dashboards using Simple XML CSS and JS Extensions, there are several examples in Splunk Dashboard Example Apps , dev.splunk.com, blogs.splunk.com and Splunk .conf sessions.

However, if you want to include modules and frameworks, you would need to convert your Splunk Dashboard from Simple XML to HTML (then you would need to be aware of Splunk Web Framework to understand and code your Splunk Dashboards). You can refer to Create a Music Dashboard tutorial to understand an HTML Dashboard Example in Splunk.

Finally please refer to one of my Splunk Wiki Talk topics to use Angular JS in Splunk HTML dashboard (PS: I have not tried Angular 2 or Angular 4, but expect the same to work as well). I would however also recommend @martin_mueller 's approach of creating your dashboard in technology/framework of your choice and then use Splunk SDK of your choice to just fetch the required data in your webpage.

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

martin_mueller
SplunkTrust
SplunkTrust

You can build a UI in any language with any framework and use the REST API or one of the SDKs, e.g. JS, to fetch the necessary information from splunk.

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...