node-log-viewer

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

README

New Relic Node.js Agent Logs Viewer

[!IMPORTANT] This is an ongoing work in progress. Expect to encounter bugs. We expect this tool to improve over time as we use it and learn what we want out of it.

This tool reads, parses, and presents New Relic Node.js Agent troubleshooting logs.

$ nrlv -f newrelic_agent.log 2>nrlv.log

Lines with » preceding the message string have more information available by selecting the line and pressing the enter key.

Note: the log view writes its own internal logs to stderr.

Installation

Go Install

This tool supports being installed directly with the go install command:

go install github.com/newrelic/node-log-viewer@latest
Homebrew

This tool is installable via Homebrew:

brew install newrelic/agents/node-log-viewer

Note: this is the preferred installation method. This is the easiest way to install the tool on macOS without needing to utilize the "open anyway" work around.

Application Usage

Navigation

The application has two distinct views: "lines view" and "line detail view." The lines view is a scrollable list of all log lines showing the timestamp, log level, log component, and log message for each log line. The line detail view is what is shown when choosing a log line from the lines view to inspect. It shows all pertinent information from the log along with any embedded data in an easy to review format.

  • Lines view:
    • up arrow, j: move line selection down
    • down arrow, k: move line selection up
    • enter: view detail of selected line
    • s: open search box
    • g: open go to line box
    • q, ctrl+c: quit the application
  • Line detail view:
    • up/down navigation is same as lines view
    • esc: return to lines view

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
log
tui
v0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL