Splunk Dev

Remove Timezone information from datetime field using spath while reading data from json file

Skhunte
Engager

Hi team,

I am extracting JSON data using spath. There is done datetime field and which is coming with zone name as below.

Skhunte_0-1604500410305.png

 

I want it without UTC word. like 2020-11-03 10:10:10 

Can we do this using spath.

if yes please provide me example.

 

thank you for your help.

Sanket K

 

Labels (1)
0 Karma

isoutamo
SplunkTrust
SplunkTrust
Can you post your original json?

Skhunte
Engager

Thank you for your comment. 

to be honest i don't have JSON now because I am getting CSV as source which has JSON as source.

I have to suggest solution to trim zone factor. 

If you can take any JSON file for sample which has time with zone as mentioned in my original post that will help me.

Thank you agian.

Sanket

 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...