Splunk Search

Error in eval command

carlyleadmin
Contributor

Hi everyone i am runnig the following search and getting an error.i am sure it is something so simple that i am missing but i can't see it. can someone please help?

alt text

thanks in advance

Tags (1)
0 Karma
1 Solution

DalJeanis
Legend

This kind of thing usually turns out to be an invisible special character.

You can either copy it to an editor where you can turn on "view invisible characters" or just retype the | eval code character by character.

There is exactly one | eval in your code, and the error must be after an open paren ( and before the corresponding close paren ), so start by just retyping the space-minus-space - in the middle of each parenthetical expression.

If that doesn't work, then type over the parenthesis themselves or retype the whole eval.

View solution in original post

0 Karma

DalJeanis
Legend

This kind of thing usually turns out to be an invisible special character.

You can either copy it to an editor where you can turn on "view invisible characters" or just retype the | eval code character by character.

There is exactly one | eval in your code, and the error must be after an open paren ( and before the corresponding close paren ), so start by just retyping the space-minus-space - in the middle of each parenthetical expression.

If that doesn't work, then type over the parenthesis themselves or retype the whole eval.

0 Karma

carlyleadmin
Contributor

will do thanks

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 ...