Log File Analyzer (nginx, Apache, JSON)
Load a log file, type filters such as status:5xx path:/api, see a timeline and top lists of paths, IPs, 404s and user agents, and export the filtered lines.
ブラウザ内で動作します。ファイルは端末の外に出ません。 確認方法を見る
…
使い方
- 1Open logs
Press Open log files and pick one or more access or app logs, or paste text.
- 2Filter
Type tokens such as status:5xx or path:/api in the filter bar.
- 3Read the overview
Check the timeline, status classes and methods; click bars to filter.
- 4Check top lists
Open Top lists for paths, IPs, 404s, user agents and referrers.
- 5Inspect lines
Use the Lines tab to page through the matching lines.
- 6Export
Export the filtered lines as CSV or JSON.
このツールについて
Server logs answer practical questions: which pages break, who is hammering the login form, when traffic peaks and how much of it is bots. This analyser reads access logs in the Common and Combined Log Format used by default in Apache and nginx, JSON lines from modern servers and log shippers, and plain application logs with levels such as ERROR and WARN. It detects the format line by line, so mixed files work. A filter bar with simple tokens narrows the view, every chart updates instantly, and you can click any bar to add it as a filter.
Who it is for
Web developers investigating errors after a release, site owners checking crawler activity, support staff looking for one customer's requests, and students learning what a web server records.
Formats it understands
- **Combined Log Format**: IP, identity, user, [time], "request line", status, bytes, "referrer", "user agent", optionally followed by a response time ($request_time). - **Common Log Format**: the same without referrer and user agent. - **JSON lines**: one object per line with common field names (time or @timestamp, status, remote_addr or ip, request or method and path, body_bytes_sent, user_agent, level, message). Nested objects are flattened. - **Text logs**: timestamps in ISO form or nginx error log style and levels from TRACE to FATAL.
Filtering
Combine tokens with spaces; all must match. status:404, status:5xx, status:>399, ip:203.0.113, path:/api, method:POST, level:error, ua:iphone and bot:yes or bot:no are supported, a leading minus negates (-status:200) and any other word searches the raw line. Save frequent filters as chips.
Views
The overview shows a timeline per minute, five minutes, hour or day with errors in red, status classes and codes, and methods. Top lists rank paths, IP addresses, 404 paths, 5xx paths, user agents, referrers and the paths that transfer the most data. The Lines tab shows the matching lines 200 at a time.
Exports
Filtered lines export as CSV (with ISO times, IP, method, path, status, bytes, response time, level, user agent and the raw line) or JSON for spreadsheets and scripts.
Worked example
In the sample log, the filter status:404 shows only /wp-login.php and a few random misses, almost all from one IP using python-requests: a typical scanner. Adding -bot:yes removes it, and status:5xx path:/api reveals 502 errors on /api/cart, with slow response times, which points at the back end behind that route.
Limits
Very large files (hundreds of MB) may exceed browser memory; split them or filter with grep first. Custom log_format layouts that reorder fields are only partly recognised, times are shown in UTC, and bot detection is based on user-agent words, which bots can fake. The tool reads logs; it does not monitor servers or alert you.
計算例
status:5xx path:/api shows 502 errors on /api/cart with response times above 1 second.
ポイント
- カテゴリ: 開発・データ
- ブラウザ内で動作し、登録もアップロードも不要です。
- 入力した情報は端末内にとどまります。
- 英語で利用できます。
- 内容の最終確認日:
- 公式情報源: Apache HTTP Server log formats (Common and Combined Log Format) and the nginx log_format directive
よくある質問
Which log formats work?
Apache and nginx Common and Combined formats, JSON lines and plain text logs with levels.
Are my logs uploaded?
No. Files are read in your browser; small ones are saved locally so they reopen next time.
How do I find the slowest requests?
If your log has $request_time at the end of each line, the overview shows p50 and p95, and lines can be exported with response times.
How do I hide bots?
Add bot:no to the filter, or -bot:yes, which uses common crawler and script words in the user agent.
Can I open several files at once?
Yes. Select multiple files and they are joined in order.
Which time zone is used?
Times are converted to UTC from the offset in each line, so files from different servers line up.
