Hi,
How can you monitor the HTML content of a response from a HTTP service? In HQ (4.6.6, open source), I created a HTTP service to fetch the HTML (which is dynamically created by python).
- The HTML specificies the service' status. If one of its components is malfunctioning it will put the text 'ERROR' into the html.
- The service will always return a HTTP 200, so the status code cannot be used for monitoring.
The HTTP service is configured as follows:
- GET Method
- Pattern field: empty
- service.log_track.enable: true
- service.log_track.level: ERROR (Is this relevant? It's not a log file but an unstructured html)
The alert definition:
- If condition: Events/logs Level ANY and match substring ERROR
It's unclear if the log settings in the HTTP service and alert definition also apply to filtering HTTP content. I tried several combinations but none seem to work.
Egon