Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Highlighted
Trusted Contributor.. ganchu1 Trusted Contributor..
Trusted Contributor..
260 views

Parse MM:dd:yy HH:mm:ss timestamp

Jump to solution

On my log timestamp is formatted "04/15/19 13:43:28" , So how I map to device.receiptTime field? My config file is below but it can't parse it.

token[2].name=Timestamp
token[2].type=TimeStamp
token[2].format=MM\:dd\:yy HH\:mm\:ss

Labels (1)
0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

Re: Parse MM:dd:yy HH:mm:ss timestamp

Jump to solution

If you look at your format and your example date you can see that there is something wrong there 🙂

The example format you have is actually this:

MM/dd/yy HH\:mm\:ss
-----------------------------------------------------------------------------------------
All topics and replies made is based on my personal opinion, viewpoint and experience, it does not represent the viewpoints of MicroFocus.
All replies is based on best effort, and can not be taken as official support replies.
//Marius
0 Likes
1 Reply
Micro Focus Expert
Micro Focus Expert

Re: Parse MM:dd:yy HH:mm:ss timestamp

Jump to solution

If you look at your format and your example date you can see that there is something wrong there 🙂

The example format you have is actually this:

MM/dd/yy HH\:mm\:ss
-----------------------------------------------------------------------------------------
All topics and replies made is based on my personal opinion, viewpoint and experience, it does not represent the viewpoints of MicroFocus.
All replies is based on best effort, and can not be taken as official support replies.
//Marius
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.