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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...