Big news! The community will be moving to a new platform April 21. Read more.
Big news! The community will be moving to a new platform April 21. Read more.
Lieutenant
Lieutenant
464 views

how can i parse a decimals for example: 123.45 only logger take 123 why?

 
0 Likes
3 Replies
Captain Captain
Captain

Hi,

What is the regex you have wrote for parsing that value in logs ?

Regards,

Sumanth.

0 Likes
Lieutenant
Lieutenant

Hi,

this is 3 lines of log:

1. sss,7829.16,nnn,

2. aaa.3265,idid

3. sss,459.16,nnn

event.deviceCustomNumber3=FIELD
event.deviceCustomNumber3Label=__stringConstant(FIELD)

but in logger dashboard only show the second line of log (3265) but dont show the first and third line with decimals (7829.16 and 459.16)

thanks

0 Likes
Lieutenant
Lieutenant

how can i use the regular expression,

i think so: 

event.deviceCustomNumber3=___regexTokenAsInteger(FIELD,"(.\\d+)")

Regards

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.