Skip to content
Back to skills

Logs Errors On Day

ASecurity

Count the error logs of one service on one earlier day.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agents

Works with

  • mcp

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add yeeyon/toolscript-mcp --skill logs-errors-on-day --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Logs Errors On Day?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Logs Errors On Day
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yeeyon-logs-errors-on-day/badge)](https://www.skillsdirectory.com/skills/yeeyon-logs-errors-on-day)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: logs-errors-on-day
description: Count the error logs of one service on one earlier day.
---

Use this when a request asks for the logs of one earlier calendar day, not the last 24 hours. query_logs returns the last 24 hours unless `from` is `archive:` followed by the day.

Parameters: `day` (YYYY-MM-DD), `service`. Change them to fit the request, then run the program below with `run_code` and answer from its return value.

```js
// playbook logs-errors-on-day
const day = '2026-10-01'
const service = 'payments'
const text = await call('mcp__bench__query_logs', { from: 'archive:' + day })
const rows = text
  .split('\n')
  .map(line => line.split('\t'))
  .filter(c => c.length === 4 && c[0] === service && c[2] === 'error')
return { day, service, errors: rows.reduce((n, c) => n + Number(c[3]), 0) }
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.