- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Remove Timezone information from datetime field using spath while reading data from json file
Skhunte
Engager
11-04-2020
06:35 AM
Hi team,
I am extracting JSON data using spath. There is done datetime field and which is coming with zone name as below.
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
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
isoutamo

SplunkTrust
11-04-2020
06:53 AM
Can you post your original json?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Skhunte
Engager
11-04-2020
08:36 AM
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
