← Back to list

logfire-read
by michaeltschreiber
Structured logging of python function calls for use with containerized applications and docker compose
⭐ 4🍴 0📅 Jan 11, 2026
SKILL.md
name: logfire-read description: "Query Logfire logs via the Logfire query API using read tokens and JSONL output. Use when you need to fetch or filter Logfire records, build log queries, or provide agent-ready log retrieval from this repo. Triggers: Logfire read, query API, JSONL logs, read token, log retrieval, log queries."
Logfire Read Skill
Use this skill to read Logfire records with JSONL output using the repo’s reader utilities.
Quick Start
- Load
.envfrom the repo root:
set -a
. ./.env
set +a
- Run the JSONL reader:
python scripts/logfire-fetch.py
Or use the bundled script:
./.codex/skills/logfire-read/scripts/read_logs.sh --message-like "Processing failed" --limit 10
Agent-Friendly CLI
Use the agent helper for targeted queries:
python scripts/logfire-read-agent.py --since 2026-01-11T00:00:00Z --message-like "Processing failed" --limit 10
Module API
Use query_logfire() for programmatic access:
from logger import query_logfire
rows = query_logfire(jsonl=True, level=21, message_like="Processing failed", limit=10)
for row in rows:
print(row)
Environment Variables
Required:
LOGFIRE_READ_URL(e.g.,https://logfire-us.pydantic.dev/v1/query)LOGFIRE_READ_TOKEN
Optional filters:
LOGFIRE_READ_COLUMNSLOGFIRE_READ_LIMITLOGFIRE_READ_SINCELOGFIRE_READ_LEVELLOGFIRE_READ_MESSAGE_LIKELOGFIRE_READ_TRACE_IDLOGFIRE_READ_SPAN_IDLOGFIRE_READ_JSONL=true
Output Format
- JSONL output returns one JSON object per record.
levelis converted to severity strings (trace,debug,info,warn,error,fatal).
Score
Total Score
65/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
3ヶ月以内に更新
+5
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon
