29-Mar-2023 04:56:35:PM: |CPU Utilization % Average ------- 11
Expected result:
11
| rex "(?<expected>\d+)$"
rex field=_raw "MemoryUsage %(?<MemoryUtilization>[^']+)"
MY result is
------------ 41.4
expected result
41.4
If you move the goal posts by providing different examples, you can expect the solution to break. Try something like this (based on the two examples given so far!)
| rex "(?<expected>[\d\.]+)$"