Loki logs

From bidewio/better-openclaw · View interactive version

Loki logs is an AI agent skill from the GitHub repository bidewio/better-openclaw. Log aggregation with Grafana Loki

How to use this skill

Skill file

Grafana Loki – Log Aggregation

Loki is a horizontally scalable log aggregation system designed to

be cost-effective and easy to operate — "like Prometheus, but for logs."

Environment Variables

| Variable | Description |

|---|---|

| {{LOKI_URL}} | Base URL of the Loki instance |

Usage Examples

Push log entries

curl -s -X POST "{{LOKI_URL}}/loki/api/v1/push" \
  -H "Content-Type: application/json" \
  -d '{"streams": [{"stream": {"app": "myapp"}, "values": [["'$(date +%s)000000000'", "Log message"]]}]}'

Query logs

curl -s "{{LOKI_URL}}/loki/api/v1/query_range" \
  --data-urlencode 'query={app="myapp"}' \
  --data-urlencode "start=$(date -d '1 hour ago' +%s)000000000"

AI Agent Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.