nerdexam
Splunk

SPLK-1002 · Question #85

Which search would limit an "alert" tag to the "host" field?

The correct answer is D. tag::host=alert. The search below would limit an "alert" tag to the "host" field. The search does the following: It uses tag syntax to filter events by tags. Tags are custom labels that can be applied to fields or field values to provide additional context or meaning for your data. It specifies…

Creating Tags and Event Types

Question

Which search would limit an "alert" tag to the "host" field?

Options

  • Atag=alert
  • Bhost::tag::alert
  • Ctag==alert
  • Dtag::host=alert

How the community answered

(45 responses)
  • A
    4% (2)
  • B
    2% (1)
  • C
    4% (2)
  • D
    89% (40)

Explanation

The search below would limit an "alert" tag to the "host" field. The search does the following: It uses tag syntax to filter events by tags. Tags are custom labels that can be applied to fields or field values to provide additional context or meaning for your data. It specifies tag::host=alert as the tag filter. This means that it will only return events that have an "alert" tag applied to their host field or host field value. It uses an equal sign (=) to indicate an exact match between the tag and the field or field value.

Topics

#Splunk Search Language (SPL)#Tags#Field-specific tags#Searching tags

Community Discussion

No community discussion yet for this question.

Full SPLK-1002 Practice