Log Analyzer

A skill to analyze log files for errors and warnings using a Python script.

cloudwego 0ecc318 2 files · 2.0 KB Updated

File contents

Log Analyzer Skill

This skill analyzes a log file to count the occurrences of "ERROR" and "WARNING" and lists the lines where they appear.

Capability

The skill provides a Python script named analyze.py located in this directory. You can use this script to analyze any text file.

Usage

To use this skill, execute the analyze.py script with the target log file as an argument.

Example

python3 {{.BaseDirectory}}/scripts/analyze.py /path/to/logfile.log

Note: Replace /path/to/logfile.log with the actual path of the file you want to analyze.

cloudwego/eino-examples/tree/main/adk/middlewares/skill/workdir/skills/log_analyzer commit 0ecc31806d

Frequently asked questions

npx skillmds@latest add cloudwego/log-analyzer