Dashboards & Visualizations
Highlighted

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

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
Highlighted

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

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
Highlighted

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

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
Highlighted

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

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

Highlighted

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

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
Highlighted

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

Champion

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
Highlighted

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

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