Splunk Search

len(-5d@d)

yasaswinipotta
New Member

I am trying to solve a query and I came across a time modifier with len() function. I did not understand the behavior.

Tags (1)
0 Karma

nickhills
Ultra Champion

I think the short answer is whatever you have come across is wrong.

|eval result=len(-5d@d) will not execute.
However
|eval result=len("-5d@d") will execute and return the value of 5 (as there are 5 characters in that string)

Can you share a link to the material?

If my comment helps, please give it a thumbs up!
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@yasaswinipotta

Can you please share more information of your issue? How you are using len() with time modifier and what is the purpose/requirement OR your sample search?

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...