Token 1:
<label>OS</label>
<choice value="Windows">Windows</choice>
<choice value="RedHat">RedHat</choice>
Token 2:
I want to set Token 2 to be based on whatever was selected for Token1.
For example:
If RedHat was selected for token1, make Token2: "OS01"
If Windows, was selected for token1, make Token2: "OS02"
Check out the Simple XML reference (https://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML)
Specifically, the <change>
(https://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#change_.28for...) and <condition>
(https://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML#condition_.28...) attributes. You'll want to update Token 2 whenever Token 1 changes with a condition using match
.