Splunk Search

Contact strptime date conversion

jcisha
Path Finder

is converted to,2013-03-1 strftime (_time, "%Y-%m-%W").
However, the
and strptime (strftime (_time, "%Y-%m-%W"), "%Y-%m-%W"), not converted.

I want to know how to solve.

Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

In case you're trying to "round down" a timestamp to the start of the week you should do this instead:

eval my_time = relative_time(_time, "@w1")

If you consider Sunday to be the start of the week you can use @w or @w0.

0 Karma
Get Updates on the Splunk Community!

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

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