hello,
Please help me with the rex commands for extracting the below fields from the json data.
"resourceName" : "abcd",
"hostname" : "ipvalue",
"environment" : "development"
| rex "resourceName\"\s:\s\"(?<resourceName>[^\"]+)\""
| rex "hostname\"\s:\s\"(?<hostname>[^\"]+)\""
| rex "environment\"\s:\s\"(?<environment>[^\"]+)\""
Alternatively, since it is JSON, why not use spath?