SPLK-1002 · Question #4
What is the correct syntax to search for a tag associated with a value on a specific fields?
The correct answer is D. Tag::<filed>=<tagname>. In Splunk, the correct syntax to search for a tag that is associated with a specific value on a specific field is tag::<fieldname>=<tagname>. For example, tag::src_ip=server would find events where the field src_ip has been tagged with the value 'server'. The double-colon :: sepa
Question
What is the correct syntax to search for a tag associated with a value on a specific fields?
Options
- ATag-<field?
- BTag<filed(tagname.)
- CTag=<filed>::<tagname>
- DTag::<filed>=<tagname>
How the community answered
(60 responses)- A2% (1)
- C3% (2)
- D95% (57)
Explanation
In Splunk, the correct syntax to search for a tag that is associated with a specific value on a specific field is tag::<fieldname>=<tagname>. For example, tag::src_ip=server would find events where the field src_ip has been tagged with the value 'server'. The double-colon :: separates the tag keyword from the field name, and = maps it to the tag value.
Topics
Community Discussion
No community discussion yet for this question.