Free, open-source multi-GB log viewer and search engine for Windows — in-memory SIMD/multicore search, live tail, SSH remote Linux logs, Notepad++ plugin, CLI, and MCP server for AI agents.
English | 简体中文
LogRAM (HBZHSN/LogRAM) loads log files into RAM and searches them with byte-level SIMD instructions, multi-core parallelism, and virtualized rendering. Built for multi-gigabyte logs that freeze ordinary text editors, it ships four entry points sharing one search engine: a Notepad++ plugin (listed in the official Plugins Admin list), a standalone portable Windows GUI, a scriptable CLI, and a caching stdio MCP server for AI coding agents.
Latest releases: LogRAM 1.5.0 · Notepad++ plugin 1.5.0 · Official Notepad++ plugin list: PR #1220 & PR #1301 (merged).
| Mode | Best for | Start here |
|---|---|---|
| Notepad++ Plugin | Open multi-GB .log files inside Notepad++ without freezing the editor |
Install via Plugins Admin |
| Standalone GUI | Multi-tab log inspection, pinned timeline lines, live tail, and SSH browsing | Download · GUI Usage |
CLI (LogRAM-cli) |
Terminal queries, boolean filters, match counts, and JSON pipelines | Command Line |
MCP Server (LogRAM-mcp) |
Let AI coding agents repeatedly search and read multi-GB logs from RAM cache | MCP Server |
- Built for repeated interactive search on multi-GB logs: Once a file is loaded into RAM and indexed, follow-up searches scan memory across CPU cores with SIMD vectorization in tens of milliseconds instead of re-reading from disk.
- Native Notepad++ integration without duplicating file memory: The plugin intercepts
.log/.LOGloading before Notepad++ buffers the file, keeping Notepad++ lightweight (~77.5 MiB working set in 3 GB validation) while LogRAM handles indexing and search in a dedicated worker process. - Remote Linux logs over SSH with zero server setup: Browse and search multi-GB Linux logs via your existing
%USERPROFILE%\.ssh\configand an ephemeral in-memory Python 3.7+ read-only worker — no SFTP downloads, no remote daemons, and explicit Linux/cgroup memory guardrails. - One engine for humans and AI agents: Use the exact same OR/AND/NOT, regex, and encoding semantics in the GUI, Notepad++, CLI, and stdio MCP server.
- Honest trade-off: Local logs are held completely in RAM alongside their line index. LogRAM trades memory for sub-100 ms repeated search; if you only need a single grep on a low-RAM machine, a streaming tool like
ripgrepor a disk-backed viewer likekloggmay fit better.
Reproducible automated benchmarks (benchmarks/RESULTS.md · run-benchmark.ps1) measured on Windows 11, Intel Core Ultra 7 270K Plus (24C/24T), 63.4 GiB RAM (warm OS page cache, exact match counts cross-verified against ripgrep 15.2.0):
| File Size | Lines | Initial Load | 100x Repeated Median | Throughput (100x Mean) | 100-Query Total vs ripgrep (Incl. Load) |
Cached MCP search_log / read_log |
Working Set RSS |
|---|---|---|---|---|---|---|---|
| 100 MB | 862,068 | 79.1 ms |
52.2 ms |
2.57 GB/s |
3.97 s vs ~5.36 s (~1.4×) |
12.9 ms / 0.14 ms |
142.5 MiB |
| 1 GB | 8,620,675 | 653.3 ms |
36.5 ms |
36.4 GB/s |
3.40 s vs ~43.38 s (~12.8×) |
27.0 ms / 0.22 ms |
1,162.9 MiB |
| 5 GB | 43,103,374 | 2,965.8 ms |
197.7 ms |
35.7 GB/s |
16.97 s vs ~226.22 s (~13.3×) |
85.7 ms / 0.15 ms |
5,696.7 MiB |
Also verified on a real ~3.06 GB (
21,217,913-line) log inside Notepad++ 8.9.8.1 x64 (LogRAM.Npp/VALIDATION.md):3.674 sload,0.045 s–0.072 ssearch, while Notepad++'s own editor buffer stayed at105 bytes(77.5 MiBworking set). Timings depend on CPU, RAM bandwidth, disk, and OS cache and are not guarantees; single-pass regex and low-RAM one-shot scans remain faster in streaming tools likeripgrep.
Reproduce on your own machine or log file:
# Run full 100 MB / 1 GB / 5 GB suite (LogRAM + MCP + auto-detected ripgrep)
.\benchmarks\run-benchmark.ps1 -Sizes '100MB','1GB','5GB'
# Or benchmark directly against any local log file (read-only)
dotnet run --project LogRAM-cli/LogRAM-cli.csproj -c Release -- --benchmark 'C:\path\large.log' --repeat 100| Tool | Platform | Data Model | Multi-GB Repeated Search | Notepad++ Plugin | SSH Remote Logs (No Download) | Live Tail | MCP Server | Editing |
|---|---|---|---|---|---|---|---|---|
| LogRAM | Windows | Full in-memory (local) / remote index (SSH) | Very fast (RAM + SIMD + multicore) | Yes (official list) | Yes (zero-install Python worker) | Yes | Yes (caching stdio) | Read-only |
| klogg / glogg | Win / macOS / Linux | Disk-backed index | Fast, disk/page-cache bound | No | No | Yes | No | Read-only |
| LogExpert | Windows | Disk-backed / buffered | Moderate on multi-GB | No | Via plugins / SFTP | Yes | No | Read-only |
| Notepad++ (built-in) | Windows | Full editor buffer (Scintilla) | Fails or stalls on multi-GB | Host app | Via NppFTP (downloads file) | Monitoring | No | Full editor |
ripgrep (rg) |
Win / macOS / Linux | Streaming CLI scan | Fast per run, re-reads file/cache | No | Over manual SSH shell | No | No | Read-only |
- Choose LogRAM when you repeatedly search, filter, pin timeline lines, or inspect multi-GB logs on Windows (standalone, inside Notepad++, over SSH, or via AI agents) and have enough RAM.
- Choose klogg if you need macOS/Linux support or low RAM usage on huge files.
- Choose ripgrep for one-shot recursive search across many files in a terminal.
- Choose Notepad++ directly when you need to edit smaller files (
Ctrl+Alt+Lin LogRAM switches back to the regular editor anytime).
- Open and search multi-gigabyte log files; the standalone GUI checks available physical memory before loading.
- Multi-tab browsing; files opened again from Windows Explorer are forwarded to the existing window.
- Plain text, regular expressions, case sensitivity, and include/exclude (
in(...);notin(...)) queries. - Streaming, cancellable search results; pin key lines to a chronological right-hand timeline pane across searches; run VS Code-style secondary
Ctrl+Ffind inside results with dual right-pane tabs; jump to source context and export results. - Manual refresh and real-time live tail for appended log output.
- UTF-8 and GBK (GB2312) encoding support.
- Remote Linux log viewing over SSH in both the standalone GUI and the Notepad++ plugin — indexing, search, and live append run remotely without downloading full logs.
- Recent files, search history, go-to-line (
Ctrl+G), dark/light themes, and English / Simplified Chinese interfaces. - Four modes sharing one engine: Notepad++ plugin, standalone GUI, CLI, and stdio MCP server.
- Windows 10 1809 (build 17763) or later
- Standalone source supports x64, x86, or ARM64; published standalone GUI/CLI/MCP releases are x64
- Notepad++ plugin requires Notepad++ 8.9.8.1 or later; x64 and x86 packages must match the Notepad++ host architecture
- Enough free RAM for the open log file(s) and line index
Each open local file is loaded fully into memory, so memory usage accumulates across tabs. Reserve extra headroom for line indexes and search results; use x64 for multi-GB logs.
LogRAM is listed in the official Notepad++ plugin list (PR #1220 added LogRAM; PR #1301 updated the list to 1.5.0 on 2026-11-25):
- Recommended (Plugins Admin): Open Notepad++ → Plugins → Plugins Admin... → search
LogRAM→ check and click Install. (If your installed Notepad++ version still carries an older plugin list snapshot, use a manual package below to get 1.5.0 immediately.) - Manual packages (include the .NET 8 runtime — no separate runtime install needed):
| File | Download | Notes |
|---|---|---|
LogRAM.Npp-1.5.0-x64.zip |
Download x64 | Manual install; recommended for multi-GB logs |
LogRAM.Npp-1.5.0-x86.zip |
Download x86 | For 32-bit Notepad++ |
*-plugin-admin.zip |
Release page | Plugins Admin layout; if extracting manually, extract into plugins/LogRAM.Npp/ |
All standalone executables are portable single-file binaries — download and run directly, no installer required:
| File | Runtime | Recommended for |
|---|---|---|
| LogRAM-win-x64.exe | Self-contained (.NET 8 included) | Most Windows users; runs directly after download |
| LogRAM-win-x64-fd.exe | Requires .NET 8 Desktop Runtime | Smaller download (< 2 MB) |
| LogRAM-cli.exe | Self-contained | Terminal search, scripting, and JSON output |
| LogRAM-mcp.exe | Self-contained | stdio MCP integration for AI coding agents |
Validated manifests for microsoft/winget-pkgs (HBZHSN.LogRAM) and Scoop (logram.json) are maintained in packaging/.
Install via Plugins Admin: Open Plugins → Plugins Admin..., search LogRAM, and click Install.
Or install manually:
- Check your Notepad++ architecture (
? → Debug Info...) and download the matching x64 or x86 manual archive. - Close Notepad++ and copy the entire
LogRAM.Nppfolder from the ZIP into Notepad++'spluginsdirectory (overwrite when upgrading). - Restart Notepad++. Opening any
.log/.LOGfile via Open, recent files, command line, or file tabs automatically activates the LogRAM workspace.
Notepad++/plugins/LogRAM.Npp/
LogRAM.Npp.dll
LogRAM.Npp.Viewer.exe
...supporting DLLs, runtime, and license files
The upper pane displays source lines and surrounding context; the lower pane displays search results (with a collapsible right-hand pane for pinned lines and secondary Ctrl+F find results). Its single-row toolbar groups search, search options (.*, Aa, Adv), refresh/live/SSH, line jump, and navigation/export. Remote logs are also available via Plugins → LogRAM → Open SSH log....
LogRAM loads .log content directly into its worker process; Notepad++'s own editor holds only a short read-only notice. File open/close, tabs, and recent files remain managed by Notepad++. Choose UTF-8 or Encoding → Character sets → Chinese → GB2312 from Notepad++'s menu. Press Ctrl+Alt+L to switch between LogRAM and the regular editor (remappable in Notepad++ Shortcut Mapper).
| Shortcut | Plugin Action |
|---|---|
Ctrl+O / Ctrl+W / Ctrl+N |
Notepad++ open / close / new |
Ctrl+Tab / Ctrl+Shift+Tab |
Switch Notepad++ tabs |
Ctrl+F / Ctrl+G |
Focus search (or secondary find inside results) / go to line |
F3 / Shift+F3 |
Next / previous result |
Ctrl+Alt+L |
Toggle between LogRAM and regular Notepad++ editor |
Esc |
Cancel current operation / close floating find bar |
See LogRAM.Npp/README.md (Chinese) for detailed plugin behavior and memory limits, and LogRAM.Npp/VALIDATION.md for test evidence. Screenshots use a generated demo log.
- Click Open and select a log file (or drag and drop / pass via Explorer).
- Choose UTF-8 or GBK to match the file encoding.
- Enter a query and press
Enter; toggle regex, case sensitivity, or Advanced Search when needed. - Click a search result to jump to its source line. Click a result's line number to pin key events chronologically on the right pane across searches, or press
Ctrl+Finside the results pane for secondary filtering. - Use Refresh to reload the file or Live to follow appended output.
| Shortcut | Action |
|---|---|
Ctrl+F |
Focus the search box (or open floating find bar when focused in results) |
Ctrl+G |
Go to a line number |
F3 / Shift+F3 |
Next / previous search result |
Advanced search supports visual include/exclude terms or the inline syntax:
in(error,warning);notin(retry,ignored)
Both the standalone GUI (SSH button) and the Notepad++ plugin (SSH toolbar button or Plugins → LogRAM → Open SSH log...) browse and search remote Linux logs directly over SSH without downloading full files.
- Requires Windows OpenSSH (
ssh.exe) locally and Python 3.7+ on the remote Linux host. - Reads hosts from
%USERPROFILE%\.ssh\config(including explicit aliases inIncludefiles), honoring configured user, port,IdentityFile,ProxyJump, andProxyCommand. - Verify the host key and prepare key or
ssh-agentauthentication once in a terminal (ssh HOST). LogRAM uses non-interactive authentication and does not prompt for passwords or passphrases. - Click Connect / Browse and filter remote entries as you type (
/var/log/alists entries in/var/log/starting withaafter a 250 ms pause), or type a full path directly (~expands to the remote user's home directory).
How remote execution and safety guardrails work:
- LogRAM streams an embedded read-only Python 3.7+ worker into remote memory over SSH — no remote installation, .NET runtime, or extra ports required. Logs and line indexes stay on the Linux host; no full file is transferred or cached locally.
- Before indexing, the worker preflights line count and longest line using fixed-size buffers and enforces both Linux available memory and cgroup v1/v2 limits, keeping at least 20% of available memory or 64 MiB (whichever is larger) free. Operations are rejected with a clear message if memory stats cannot be read or headroom is insufficient; failures preserve the previous valid index.
- The footer displays unified
Free memory · In usemetrics per tab (remote tabs report the remote host's available memory and the worker process RSS, refreshed every 2 s while idle; disconnected workers show as unavailable rather than zero). - Transfer caps: searches report the full match count while returning up to the first 1,000 matches / ~1 MiB (whichever hits first); individual lines cap at 16 KiB with truncation markers; directory listings cap at 1,000 entries (any path can still be typed directly). Remote regex uses Python
rewith a 2 s per-line timeout.
LogRAM-cli shares the GUI's search engine and supports OR, AND, NOT, regex, line ranges, context lines, result caps, and machine-readable JSON output.
# Match error or warning, require orderId=42, and exclude retry
LogRAM-cli.exe app.log --any error --any warning --all orderId=42 --exclude retry --context 3 --max-count 100 --json
# Search a line range and print only the match count
LogRAM-cli.exe app.log timeout --start-line 100000 --end-line 200000 --count-onlyRun LogRAM-cli.exe --help to see all options.
LogRAM-mcp is a stdio Model Context Protocol (MCP) server designed for AI coding agents (Claude Desktop, Codex, Cursor, VS Code, Windsurf, etc.). A large log file is loaded into RAM on the first call and stays cached for the lifetime of the MCP process, letting agents perform repeated targeted searches and bounded line reads without blowing up context windows or re-scanning multi-GB files from disk.
Available tools (all marked readOnlyHint: true, destructiveHint: false):
search_log: Search with plain text, regex,include_any(OR),include_all(AND),exclude(NOT), line ranges, context lines, andmax_results.read_log: Read a bounded range of lines (1–2,000 lines) around a match without another search.list_open_logs: Inspect cached log paths and current RAM usage.close_log: Release one or all cached logs from memory.
Option A — Portable Windows executable: Download LogRAM-mcp.exe and add it to your MCP client configuration (Claude Desktop / Cursor / Windsurf / VS Code):
{
"mcpServers": {
"logram": {
"command": "C:\\path\\to\\LogRAM-mcp.exe"
}
}
}Option B — Cross-platform .NET Tool (LogRAM.Mcp, Windows / macOS / Linux): LogRAM.Core and LogRAM-mcp target cross-platform net8.0 and ship with an Official MCP Registry manifest (LogRAM-mcp/.mcp/server.json) and NuGet packaging (LogRAM-mcp/README.md):
{
"mcpServers": {
"logram": {
"command": "dnx",
"args": ["LogRAM.Mcp@1.5.0", "--yes"]
}
}
}Or build from source and register automatically for Codex:
dotnet publish LogRAM-mcp/LogRAM-mcp.csproj -c Release -p:PublishProfile=win-x64
.\scripts\install-mcp.ps1 -ConfigureCodexDownload the 64-bit standalone LogRAM-win-x64.exe (or install the x64 Notepad++ plugin). Ensure your machine has enough free physical RAM for the file plus its line index (roughly 1.15–1.3× file size depending on average line length; for a 10 GB file, 16 GB+ free RAM is recommended). Once loaded, repeated text and regex searches run directly in RAM across CPU cores.
Standard Notepad++ loads file text into its Scintilla editor buffer and often stalls or hits memory limits on multi-GB logs. With the LogRAM Notepad++ plugin (available via Plugins → Plugins Admin → LogRAM), opening .log / .LOG files automatically routes loading into LogRAM's x64 worker process while keeping Notepad++'s own buffer at a tiny read-only placeholder.
Streaming tools like grep or ripgrep are excellent for one-shot scans, but each query rescans the file. LogRAM keeps the log bytes and line-offset index resident in RAM and searches with SIMD and multiple cores — in 3 GB validation, follow-up searches completed in 45–72 ms.
Point your MCP-compatible AI client (Claude, Codex, Cursor, etc.) at LogRAM-mcp.exe. The agent calls search_log with tight max_results and context, drills into interesting regions with read_log, and releases RAM via close_log when finished — avoiding context overflow and repeated full-file scans.
Click SSH in LogRAM's standalone GUI or Notepad++ plugin, select a host from %USERPROFILE%\.ssh\config, and open the remote path. LogRAM runs a read-only Python 3.7+ worker in remote memory so indexing, pagination, search, and live tail execute on the Linux host without downloading the log file.
klogg and glogg are cross-platform and keep log content primarily on disk, using much less RAM. LogRAM is Windows-focused and keeps local logs fully in RAM for faster repeated interactive search, while also offering native Notepad++ integration, SSH remote Linux browsing, a JSON CLI, and an MCP server for AI agents.
For local files, LogRAM loads the entire raw file into memory plus a line-offset index (8 bytes per line) and active search match buffers. For example, a 3.06 GB file with 21.2M lines used ~3.51 GiB in the worker process during validation. Multi-tab sessions accumulate memory, and manual refresh temporarily holds the new copy before releasing the old one. For remote SSH logs, local RAM stays minimal because indexing remains on the Linux host under strict memory guardrails.
Requires the .NET 8 SDK. Building the Notepad++ plugin also requires CMake and a C++ toolchain (MinGW-w64 for x64, or Visual Studio C++ build tools for x86/ARM64):
# Build and install Notepad++ plugin (self-contained x64)
.\scripts\build-npp.ps1 -Architecture x64
.\scripts\install-npp.ps1 -NotepadDirectory 'C:\Program Files\Notepad++' -Architecture x64
# Run standalone GUI or CLI
dotnet run --project LogRAM/LogRAM.csproj
dotnet run --project LogRAM-cli/LogRAM-cli.csproj -- app.log error
# Publish standalone GUI (self-contained / framework-dependent) and MCP server
dotnet publish LogRAM/LogRAM.csproj -c Release -p:PublishProfile=win-x64
dotnet publish LogRAM/LogRAM.csproj -c Release -p:PublishProfile=win-x64-fd
dotnet publish LogRAM-mcp/LogRAM-mcp.csproj -c Release -p:PublishProfile=win-x64Self-checks (SSH protocol tests require local Python 3 and do not connect to production hosts):
python -B scripts/test_ssh_agent.py
dotnet run --project LogRAM-cli/LogRAM-cli.csproj -- --ssh-self-test
dotnet run --project LogRAM.Npp.Viewer/LogRAM.Npp.Viewer.csproj -- --self-test
dotnet run --project LogRAM-mcp/LogRAM-mcp.csproj -- --self-test
.\LogRAM\bin\x64\Release\net8.0-windows\LogRAM.exe --ssh-ui-self-test .\LogRAM\bin\ssh-ui-testArchitecture, design decisions, and 1.4.0/1.5.0 verification records (in Chinese): Product · Architecture · Verification Guide · Tasks & Evidence · Maintenance.
- Windows only and read-only; LogRAM does not edit log files.
- Local files are loaded fully into memory; SSH remote logs are indexed on the remote Linux host.
- Currently supports UTF-8 and GBK (GB2312) encodings.
- Fast SIMD case-insensitive search applies to ASCII patterns; non-ASCII text falls back to a slower decoded path.
- Large files require an initial line-indexing pass when first opened.
This project is licensed under the MIT License.



