Is it possible to trigger notification (e.g.- for HTTP 500) from Stackdriver log/monitoring?
- 阅读更多 关于 Is it possible to trigger notification (e.g.- for HTTP 500) from Stackdriver log/monitoring?
问题 I have set up Stackdriver logging agents on Google Compute Engine VMs, and collecting logs from apache and some other sources. Is it possible to trigger a notification when a http 500 log is produced? If parsing textPayload for notification is not an option, can it be done by modifying the fluentid configs to send in a specific label when it uploads a matching log? 回答1: I think that a logging metric is your best bet. https://cloud.google.com/logging/docs/logs-based-metrics/charts-and-alerts