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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...