Splunk Search

iam receiving a message unbalanced quotes , i tried using back slash

pavanraghav
Explorer
 | eval e="$time_token.earliest$", l=$time_token.latest$"| eval e=case(match(e,"^\d+$"),e,e="" OR e="now" , "0" , true(), relative_time(now(),e)) | eval l=case(match(l,"^\d+$"),l,l="" OR l="now" , "2145916800", true(), relative_time(now(),l)) 
Tags (1)
0 Karma
1 Solution

renjith_nair
Legend

@pavanraghav ,

In your search above, you are missing a " in I=$time_token.latest$"

Also , please use the Code Sample to add your search snippets. I edited it for now

---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

0 Karma

arjunpkishore5
Motivator

your missing a quote in your eval

| eval e="$time_token.earliest$", l="$time_token.latest$"
| eval e=case(match(e,"^\d+$"),e,e="" or e="now" , "0" , true(), relative_time(now(),e)) 
| eval l=case(match(l,"^\d+$"),l,l="" or l="now" , "2145916800", true(), relative_time(now(),l)) 
0 Karma

pavanraghav
Explorer

thanks arjun

0 Karma

renjith_nair
Legend

@pavanraghav ,

In your search above, you are missing a " in I=$time_token.latest$"

Also , please use the Code Sample to add your search snippets. I edited it for now

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

pavanraghav
Explorer

thanks renjith

0 Karma
Get Updates on the Splunk Community!

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Community Content Calendar, October Edition

Welcome to the October edition of our Community Spotlight! The Splunk Community is a treasure trove of ...