Splunk Enterprise

Why is Save ID not working in Splunk?

_pravin
Communicator

Hi,

 

_pravin_0-1652091002937.png

In the above figure, I save the test results using a save ID and then I get a list of ID's like the one below.

_pravin_1-1652093762315.png

But when I click on 'save new test', it doesn't work.

I have the same code on the test site as well where it works as usual.

A sample xml code is provided as well.

<panel depends="$host_token$">
<title>Save Test</title>
<!--When button is pressed the the token execute_save_test is set up with a outputlookup at the end, this is used later on to push the data back into the lookup in order-->
<input type="text" token="save_test_name_token" searchWhenChanged="true">
<label>Test_Name</label>
</input>
<input type="text" token="save_test_comments" searchWhenChanged="true">
<label>Comments</label>
<default>-</default>
</input>
<input type="dropdown" token="save_test_status" searchWhenChanged="true">
<label>Mark test as gold, bad test or ordinary</label>
<choice value="ORDINARY">ORDINARY</choice>
<choice value="GOLD">GOLD</choice>
<choice value="BAD TEST">BAD TEST</choice>
<default>ORDINARY</default>
</input>
<html>
<button class="btn" data-token-json="{&quot;execute_save_test&quot;:&quot;| eventstats max(ID) as max_ID | eval ID = if(isnull(ID),max_ID + 1,ID) | fields - max_ID | dedup ID | outputlookup Saved_Tests.csv&quot;}">Save new test</button>
</html>
<html depends="$saved_test_id$">
<button class="btn" data-token-json="{&quot;execute_save_test&quot;:&quot;| eval ID = if(isnull(ID),$saved_test_id$,ID) | dedup ID | outputlookup Saved_Tests.csv&quot;}">Update current test (ID: $saved_test_id$)</button>
</html>
</panel>

 

Could someone please advise what has gone wrong?

 

Regards,

Pravin

 

 

Labels (1)
Tags (2)
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

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

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