nerdexam
Splunk

SPLK-1004 · Question #75

Which of the following elements sets a token value of sourcetype=access_combined?

The correct answer is D. <set token="NewToken" prefix="sourcetype=">$click.value$</set>. In Splunk, tokens are used in dashboards to dynamically pass values between different components, such as dropdowns, text inputs, or clickable elements. The <set> tag is a Simple XML element that allows you to define or modify the value of a token. When setting a token value…

Creating and Using Lookups and Workflow Actions

Question

Which of the following elements sets a token value of sourcetype=access_combined?

Options

  • A<set token="NewToken">sourcetype=$click.value$</set>
  • B<set token="NewToken"> prefix="sourcetype=">$click.value$</set>
  • C<set token="NewToken">sourcetype=$click.value$</set>
  • D<set token="NewToken" prefix="sourcetype=">$click.value$</set>

How the community answered

(22 responses)
  • A
    14% (3)
  • B
    9% (2)
  • C
    5% (1)
  • D
    73% (16)

Explanation

In Splunk, tokens are used in dashboards to dynamically pass values between different components, such as dropdowns, text inputs, or clickable elements. The <set> tag is a Simple XML element that allows you to define or modify the value of a token. When setting a token value, you can use attributes like prefix and suffix to construct the desired value format. Question Analysis: The goal is to set a token named NewToken with the value sourcetype=access_combined. This requires constructing the token value by combining a static prefix (sourcetype=) with a dynamic value (e.g., $click.value$, which represents the value clicked or selected by the user).

Topics

#token syntax#set token#prefix attribute#XML drilldown

Community Discussion

No community discussion yet for this question.

Full SPLK-1004 Practice