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.
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!
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.
have a look at https://answers.splunk.com/answers/350539/how-to-provide-the-upload-option-in-a-view-to-uplo.html it might help you...
Thanks for the details.