SPLK-1002 practice question 20 of 35

Which of the following searches will return events contains a tag name Privileged?

Full set: 297 questions

Domain Tags and Event Types

Answer options
A: Tag= Priv
B: Tag= Pri* Correct answer
C: Tag= Priv* Correct answer
D: Tag= Privileged Correct answer
Correct Answer:
B. Tag= Pri*; C. Tag= Priv*; D. Tag= Privileged
Explanation

In Splunk, you can search for events associated with a specific tag using the syntax tag=. This search supports both exact matches and wildcards. Option D (tag=Privileged) is a direct, exact match for the tag. Options B (tag=Pri) and C (tag=Priv) use the asterisk () as a wildcard character. The wildcard matches any sequence of characters, so both Pri and Priv will successfully match the tag name "Privileged". Therefore, all three searches will return the desired events.

Why Incorrect

A. Tag= Priv: This search performs an exact match for a tag named "Priv". It will not match the longer tag name "Privileged".

References

1. Splunk Enterprise Documentation. Knowledge Manager Manual, Version 9.2.1, "Use tags in searches". This section explicitly states, "You can use wildcards when you search on tags. For example, if you have tag=priv and tag=privileged, you can search for tag=priv to return events that have either tag." This directly validates options B and C.

2. Splunk Enterprise Documentation. Search Manual, Version 9.2.1, "Use wildcards in searches". This page details the use of the asterisk () as a wildcard to match multiple characters in field values, which applies to the tag field. It confirms that a search like host=local matches localhost and localdomain, illustrating the principle used in options B and C.

3. Splunk Enterprise Documentation. Search Manual, Version 9.2.1, "Search for field-value pairs". This section explains the fundamental syntax for searching fields, field="value", which is the basis for the exact match search in option D (tag=Privileged).

Scroll to Top