Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JSON Log Viewer is a development tool for working with structured JSON logging.

License

NotificationsYou must be signed in to change notification settings

allproxy/json-log-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Log Viewer is a web UI tool to analyze JSON formatted data.
  • It can be customized to highlight important fields.
  • Kubernettes objects can be analyzed.

Alt text

imageimageimage

JSON Log Viewer Online

Features

  1. Online web application served by GitHub Pages.
  2. Displays easy to read compact list of log entries.
  3. Expands to show the full prettified JSON.
  4. Fields are customizable.
  5. Filtering and highlighted search matches.
  6. Log levels are colorized.
  7. Display human readable or UTC timestamps.
  8. Supports JSON lines and JSON file formats.
  9. Analyze Kubernettes objects.

Run Locally

  1. Clone repo.
  2. npm install
  3. npm start # Opens tab in your default browser
  4. Click? in upper right for help.

Updating

The JSON Log Viewer uses theallproxy package.

To update theallproxy npm package run:

npm update

NOTE*:It is recommended thatUse hardware acceleration when available is disabled on Chrome.

Kubenettes Objects

The JSON output generated bykubectl get -o json can be imported and analyzed byjson-log-viewer.

  1. Use kubectl to get list of JSON Kubenettes objects:
    kubectl get pods,deployments,configmaps,secrets -A -o json
  2. Import the JSON output intojson-log-viewer.

Filtering

Advanced JSON field and boolean filters can be used to find relevant log records.

Example filters:

  • Filterresponse:>=400 shows responses with status greater than or equal to 400
  • Filterresponse:403 shows 403 responses
  • Filteragent:wget showswget clients
  • Filterbytes:>1000 shows responses that are greater than 1000 bytes
  • Filterremote_ip:* can be used to sort remote IP addresses in ascending order
  • Filter-request:GET shows non-GET requests

Filterresponse:>=400 shows responses with statusAlt text

Filterresponse:403 shows 403 responsesAlt text

Filteragent:wget showswget clientsAlt text

Filterbytes:>1000 shows responses that are greaterAlt text

Filterremote_ip:* can be used to sort remote IP addresses in ascending orderAlt text

Filter-request:GET shows non-GET requestsAlt text

Documentation

User documentation is integrated into the app. Click? in upper right corner.Alt text

Development Notes

Updating Version

To update the Log Viewer version to the latest:

  1. npm update # this update the allproxy package
  2. ./copyBuildFromAllProxy.sh
  3. Create branch matching the allproxy version.

Thedocs/index.html needs to be modified so the GitHub Pages app will render properly:

  1. These lines must be added to the start of the

    tag:

        <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
  2. Remove '/' from href and src properties.

Updating Configuration

  1. Modify any of these config files:
    • jsonQueries.json
    • queries
    • briefJsonFields.json
    • jsonFields
    • jsonSubQueries.json
    • jsonLogScript
  2. Runnode createApFileSystemJson.js to build a new docsapFileSystem.json file.

License

This code is licensed under theMIT License.

image

About

JSON Log Viewer is a development tool for working with structured JSON logging.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp