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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...