Splunk Search

Problem with a wildcard in a field name

terryloar
Path Finder

This works: | chart count(eval(file_date="invalid")) AS "Invalid Date Syntax"
It returns "6"

This doesn't work: | chart count(eval(*_date="invalid")) AS "Invalid Date Syntax"
It returns "0"

The documentation sez its suppose to work.

Any ideas?

Tags (1)
0 Karma

dart
Splunk Employee
Splunk Employee

Does this work:

 | chart count(eval(searchmatch("*_date=\"invalid\""))) AS "Invalid Date Syntax"
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

What doc would that be? I'd have expected eval to treat the asterisk as multiplication.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...