Dashboards & Visualizations

How to add image in my Dashboard panel along with the Result

abhayneilam
Contributor

Hi,
I have created a form in SPLUNK and I want to add some images on the panel of results.

Could you please help me out , how it could be done throught the .xml files ( if possible )

Thanks in Advance !!

Tags (4)
0 Karma

sideview
SplunkTrust
SplunkTrust

If you want to embed an image into each row of a table of results, I think the easiest way is to install the latest Sideview Utils app (http://sideviewapps.com/apps/sideview-utils), which is free for internal use, and use its Table module. The Table module is new in the 2.2 version of the app and among other things it has a feature whereby you can embed other modules inside the rendered tablecells. The most commonly used configuration is to embed a Sideview HTML module into the Table, and with some search language to get the correct filenames for each row, you can use this to construct your own <img> tags whose src attribute points to one of a set number of images you have put into etc/apps/YOUR_APP_NAME/appserver/static.

There's a page of documentation in Sideview Utils dedicated to this particular feature, although through an oversignt it doesn't actually appear in the navigation. To get to it, navigate to "Module Documentation > Table module > Table - Custom rendering", and then once you're on that page, click the "Next Page" link to go to the "Table - Custom Embedding" page. My apologies about the messed up docs link - I'll fix this in the next release.

rroberts
Splunk Employee
Splunk Employee

There are several approaches to this see:
http://docs.splunk.com/Documentation/Splunk/5.0.1/AdvancedDev/UseHTML

With Advanced XML use the SSI module to call a HTML wrapper file.

splunkn
Communicator

Robert,
How to do in Simple XML?

0 Karma

nfilippi_splunk
Splunk Employee
Splunk Employee

There are a few options here depending on what exactly you are trying to do. In either case, I would recommend taking a look at the following app.

Splunk 6.x Dashboard Examples (https://apps.splunk.com/app/1603/)

(1) Include an html element within your simple xml panel
- refer to the example app for a method to do this
- you can with reference a source html, or embed html directly
- In either case, you can reference an img that exists in your appserver/static directory

(2) For advanced use cases such as embedding images/icons in tables based on cell values
- refer to the examples app for this as well

Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...