Loki alerting to ms teams

Can someone provide steps to create an alert to receive an alert notification when loki query receives log containg error, ERROR, WARNING, Error, with full log line to be included in the notification to ms teams,