Splunk Search

Can I load the document in splunk where the loading options are linked to a specific change request and viewable for future reference?

nrnirmal
New Member

Hi,

I have a requirement to be developed in Splunk. Please provide your inputs.

I need to provide an option to load the document in Splunk. In future, I should be able to view the document whenever I click the link for the specific change request.
So the loading options need to be linked to the specific Change request and also the document should be able to be viewed for future reference.

This is feasible in Splunk?
Thanks.

0 Karma

493669
Super Champion

Hi @nrnirmal,
Yes, you can do this. You need to Copy the file to the appserver/static folder.. suppose I use the search app and the file name splunker.pdf and path is $SPLUNK_HOME$/etc/apps/search/appserver/static/docs/splunker.pdf
in below I have given panel id as something and on click that splunker.pdf will get open..below is the js:

 var components = [
     "splunkjs/ready!",
     "splunkjs/mvc/simplexml/ready!",
     "jquery"
 ];

 // Require the components
 require(components, function(
     mvc,
     ignored,
     $
 ) {
      $('#something').click(function() {
       window.open('/en-US/static/app/search/docs/Splunker.pdf', '_blank');
     });
 });

Hope this helps!

0 Karma

nrnirmal
New Member

Thanks for the details.
Is there a way the user will be able to load the document by clicking a button (upload) in the splunk and it should be stored in the respective path and in future if they access the respective change number (primary key) , they should be able to view the document loaded as part of it.

0 Karma

493669
Super Champion
0 Karma

nrnirmal
New Member

Thanks for the details.

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

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

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...