Forum Discussion
Monitor receive String Regex
Receive string Regex is not working as expected on HTTP response.
Below is HTTP Respone:{"status":"UP","diskSpace":"status":"UP","total":30927785984,"free":25661333504,"threshold":10485760}}
We wanted monitor to be marked up if we see Status : UP from the response and ignore rest from above HTTP response. The regex created is not working for us can some one please help to accomplish this. Thanks
Current Receive which F5 is not accepting in monitor Config : ^{\s?"status"\s?:\s?(?:"UP"|"UNKNOWN")[\s\d\w\W\D\S\n]}
- mrkbgm_240216
Nimbostratus
Here is our Receive string configured on Monitor.
- Simon_Blakely
Employee
You need to escape
with"
\"
(\"status\":)\"UP\"|\"UNKNOWN\"
should work.
I develop my regex here and keep them as simple as I can.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com