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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...