Reads the specified number of events and inserts them into the database.
LogReader
LogReader is a lightweight Windows Event Log extraction tool designed to collect, filter, normalize, and store Application Log events into a MySQL database.
It provides a minimal web interface for triggering log collection, clearing the database, and inspecting stored entries.
Windows Event Viewer is powerful but slow and inconvenient for quick analysis.
LogReader offers a fast, script‑driven alternative that:
- Reads events directly from PowerShell
- Filters only relevant Event IDs
- Normalizes timestamps and messages
- Stores everything in a structured MySQL table
- Provides a simple HTML interface for interaction
This makes it ideal for debugging, monitoring, or forensic‑style inspection on local systems.
- PowerShell-based log extraction using
Get-EventLogorGet-WinEvent - Customizable Event ID filtering
- Automatic message sanitization (removes paths, noise, blank lines)
- MySQL storage with normalized fields
- One-click database wipe (TRUNCATE)
- Minimal UI for:
- Starting log extraction
- Clearing all logs
- Setting the number of events to read
- Viewing stored logs
Clears the entire log table using TRUNCATE.
Defines how many events to extract from Windows logs.
Outputs all stored log entries (raw format).
Get-WinEventmay fail with large event counts;Get-EventLogis more stable.- Some event categories may require elevated privileges.
- JSON output from PowerShell may need increased depth for complex messages.
- The project is intentionally minimal and easy to extend (filters, categories, export, etc.).