Deployment Architecture

Error in 'where' command: The expression is malformed Splunkd error

spl10
Explorer

Hi Team

Getting this error message frequently in internal logs of Splunk.

Error
in 'where' command: The expression is malformed. An unexpected character is reached at '*) OR match(indicator, *_ip) OR match(indicator, *_host))

Any hints will be appreciated.

Thanks in advance  

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

The match function expects a regex string as the second parameter. In regex "*" is a modifier meaning zero or more of the previous match item. If "*" appears at the beginning of the regex expression, there is no previous match item, hence the error.

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...