Dashboards & Visualizations

How to create a textbox to enter comments on a dashboard panel?

pallavibalasa
Explorer

Hello team,

I added a textbox to enter comments in it on a dashboard panel.
The comments entered need to be visible to everyone who view the dashboard.
How do I retain the comments entered? Please help.

Regards,
Pallavi

0 Karma

pallavibalasa
Explorer

Hi,
I am now able to read the csv file. I have modified the permissions given for the folder in which the file resides.
My scenario is as below:

I have a report. I want to add a comment box so that the user will enter his comments . Next time when the user logs into the system,
he should be able to read his comments. Modify them if required and save.

Approach which I am following:

I tired to create a file and read it using inputcsv command.
I put a textbox in the form.

I am not sure how to read from file and put that value into form textbox.
And also write to the file reading the textbox.
I am totally new to splunk and coding in java script.
Appreciate any help here..

thanks,

0 Karma

sundareshr
Legend

You can use an HTML panel

<html>
<div>Comments for everyone to see</div>
</html>

*OR, add it as default value for the text box*

<default>Comments for everyone to see</default>
0 Karma

pallavibalasa
Explorer

I cannot default the comments. User whoever view the report in the panel should be able to enter the comments, modify them and etc.
I need to save these comments entered somewhere so that next time when the user views the report, he can add/delete/modify the same.

Thanks

0 Karma

sundareshr
Legend

You will have to save the comments in a kvstore or lookup file and retrieve them when page loads to set the token value.

See if you get any ideas from this posting http://dev.splunk.com/view/webframework-tutorials/SP-CAAAEZT

pallavibalasa
Explorer

I am trying to save in a csv file placed in splunk/var/run/splunk/csv..

I use command inputcsv filename.csv
I get File couldn't be read. Not sure how to resolve this. Please help.

Regards,
Pallavi

0 Karma

inventsekar
SplunkTrust
SplunkTrust

Hi Pallavi, the csv file got read permissions ah? may i know if the dashboard is working fine? can you give us some more info about the whats this dashboard for and this comment? what is the full command you use for inputlookup? check this example one -

Find this code:
"search": "TBD",
Replace it with this code:
"search": " | inputlookup kvstore_lookup | eval KeyID = _key | table KeyID, CustID, CustName, CustStreet, CustCity, CustState, CustZip",

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...