Hi,
I want to extract a value from the following line:
systemGuid=9516e36a-e5e9-4ec5-a449-edcaeb5f227f,
I need the value between systemGuid= and comma (,) at the end. I am looking for value 9516e36a-e5e9-4ec5-a449-edcaeb5f227f from the above line.
Hi,
You can use the below regex.
systemGuid=(?.*),
It will regex till comma.
It has given me everything coming after systemGuid=. I just want value between = and comma.
systemGuid=9516e36a-e5e9-4ec5-a449-edcaeb5f227f,
The actual string where I am extracting the value is this: -
systemGuid=9516e36a-e5e9-4ec5-a449-edcaeb5f227f, calculationName=Data Reconciliation, pointId=fi_12101_01.pv_ag, batchId=, modelId=model-cps-kkru-qa2, unisimModelName=CPS_PLATF_R, epochUTC=1543310100000, itemValue=372891.642424334, itemValueStr=null, quality=Good, timeOffset=P0000)","severityLevel":"Informational","timestamp":"2018-11-27T09:31:11+00:00","sourceType":"LOGBack","loggerName":"com.honeywell.pmt.cps.dao.RcDataPointDaoImpl","level":"INFO","threadName":"Thread-19"}],"internal":{"data":{"id":"2d554756-f227-11e8-b34a-1953e7591063","documentVersion":"1.61"}},"context":{"data":{"eventTime":"2018-11-27T09:31:11.027Z","isSynthetic":false,"samplingRate":100.0},"device":{"id":"2d52dcf8e7d2","type":"PC","osVersion":"Linux","roleInstance":"2d52dcf8e7d2","deviceName":"Other","deviceModel":"Other","locale":"en-US","browser":"Apache-HttpClient","browserVersion":"Apache-HttpClient 4.5","screenResolution":{}},"user":{"isAuthenticated":false},"session":{"isFirst":false},"operation":{},"location":{"clientip":"0.0.0.0","continent":"North America","country":"United States","province":"Virginia","city":"Boydton"},"custom":{"dimensions":[{"LoggerName":"com.honeywell.pmt.cps.dao.RcDataPointDaoImpl"},{"LoggingLevel":"INFO"},{"SourceType":"LOGBack"},{"ThreadName":"Thread-19"},{"TimeStamp":"Tue,
Try this:
|rex "systemGuid=(?<GUID>[^,]+)"