All integrationsMonitoring
Grafana Loki
Search your Grafana Loki logs without writing LogQL, count matching lines, run LogQL metric queries and send log lines from workflows.
- actions
- 7
- triggers
- 2
Triggers
Start a workflow when something happens in Grafana Loki.
- New log lineRuns for each new log line that matches, oldest first, such as each error from checkout, up to 50 lines a look. Lines logged before the workflow is turned on don't run it.
- Log count crosses a thresholdRuns when the number of matching log lines over the last few minutes goes above (or below) a threshold, such as more than 50 errors in 5 minutes, once per crossing. It runs again only after the count has come back.
Actions
Steps a workflow can run in Grafana Loki.
- Search logsFind the log lines from some apps or servers that contain a word, in the last few minutes or hours or between two times, newest first. Get each line with its time and labels, and all of them as text for an AI step or a message.
- Count log linesCount the log lines that match in the last few minutes or hours, such as errors from checkout in the last 15 minutes, in all or for each value of a label, to compare with a threshold.
- Run metric queryRun a LogQL metric query, such as an error rate or bytes logged per app, and get its numbers. 'value' holds the first result's number.
- Send log linesSend one or several log lines to Loki under labels you choose, such as an audit trail of what a workflow did. Each line keeps its order.
- List labelsList the labels Loki's logs are filed under, such as app, env and level.
- List label valuesList the values a label takes, such as every app or host sending logs, optionally only on logs with some other labels.
- List streamsList the log streams (each set of labels, such as one app on one server) that match, and so which are sending logs.
No actions match that.
Automate Grafana Loki with Lodol.
Connect Grafana Loki, then hand Lodol the job in Slack, Claude or ChatGPT.
Free plan, no credit card