Splunk Search

Date Conversion

mrdeterville
Explorer

Hi SMEs;

I'd like to convert the following date format into epoch:  yyyymmdd. E.g 20220508.

Any assistance would be appreciated!

 

Labels (1)
0 Karma
1 Solution

mrdeterville
Explorer

Figured it out;

| eval reg_date=strptime(newdate, "%Y%m%d")

View solution in original post

0 Karma

mrdeterville
Explorer

Figured it out;

| eval reg_date=strptime(newdate, "%Y%m%d")

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...