Thanks
I am trying to extract three fields in below given message
"message" : "BatchId : 7, RequestId : 100532188, Msg : Batch status to be update to SUCCESS",
Extract : BatchId ,RequestId ,Status need to extract SUCCESS .
| rex "BatchId\s*:\s*(?<batch>[^,]+),\s*RequestId\s:\s*(?<RequestID>[^,]+),\s*Msg : Batch status to be update to (?<Status>\w+)"
Hi
you could try this
| rex "BatchId\s*:\s*(?<batch>[^,]+),\s*RequestId\s*(?<RequestID>[^,]+),\s*Msg : Batch status to be update to (?<Status>[^,]+)"
If this is in any other field than _raw then add into rex field=<your field name>
See https://regex101.com/r/U5IB8G/1
r. Ismo
Hi
you could try this
| rex "BatchId\s*:\s*(?<batch>[^,]+),\s*RequestId\s*(?<RequestID>[^,]+),\s*Msg : Batch status to be update to (?<Status>[^,]+)"
If this is in any other field than _raw then add into rex field=<your field name>
See https://regex101.com/r/U5IB8G/1
r. Ismo