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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...