QuestionQ16

VerifiedFiltering and Formatting Results

Which wildcard character would a user specify to match multiple characters when using the where command?

Explanation

In Splunk SPL, wildcard matching with the where command uses the like() function (or the LIKE syntax). Its % wildcard matches a sequence of characters, while _ matches one character. For example, | where like(host, "web%") keeps results whose host value begins with web. Regular-expression matching through match() is a separate pattern language; it does not make * the multiple-character wildcard for a like() pattern.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!