Splunk Enterprise Security

How to make second token value be based on choice made for first token

arikanter
Observer

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"

0 Karma

jacobpevans
Motivator

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.

Cheers,
Jacob

If you feel this response answered your question, please do not forget to mark it as such. If it did not, but you do have the answer, feel free to answer your own post and accept that as the answer.
0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...