Splunk Search

Eval is failing to set field values?

mixolydian
Path Finder

I'm sure I'm missing something simple, but I suddenly can't get the eval command to work. Simplest case, the following search never sets the test1 field.

index="*" | head 1 | eval test1 = 'splunk is driving me crazy' | table _time, test1

The _time field is populated, but test1 is always empty. Can anyone explain this to me?

Tags (1)
0 Karma
1 Solution

mixolydian
Path Finder

Nevermind, I figured it out. It's the single quotes quietly failing.

View solution in original post

0 Karma

mixolydian
Path Finder

Nevermind, I figured it out. It's the single quotes quietly failing.

0 Karma
Get Updates on the Splunk Community!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...