- Notifications
You must be signed in to change notification settings - Fork3
JSON Log Viewer is a development tool for working with structured JSON logging.
License
allproxy/json-log-viewer
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
- It can be customized to highlight important fields.
- Kubernettes objects can be analyzed.
- Clickhttps://allproxy.github.io/json-log-viewer/
- Click? in the upper right and click theEdit JavaScript button to define JavaScript code to extract the Date, Kind, Message from your log records.
- Online web application served by GitHub Pages.
- Displays easy to read compact list of log entries.
- Expands to show the full prettified JSON.
- Fields are customizable.
- Filtering and highlighted search matches.
- Log levels are colorized.
- Display human readable or UTC timestamps.
- Supports JSON lines and JSON file formats.
- Analyze Kubernettes objects.
- Clone repo.
npm installnpm start# Opens tab in your default browser- Click
?in upper right for help.
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.
The JSON output generated bykubectl get -o json can be imported and analyzed byjson-log-viewer.
- Use kubectl to get list of JSON Kubenettes objects:
kubectl get pods,deployments,configmaps,secrets -A -o json
- Import the JSON output into
json-log-viewer.
Advanced JSON field and boolean filters can be used to find relevant log records.
Example filters:
- Filter
response:>=400shows responses with status greater than or equal to 400 - Filter
response:403shows 403 responses - Filter
agent:wgetshowswgetclients - Filter
bytes:>1000shows responses that are greater than 1000 bytes - Filter
remote_ip:*can be used to sort remote IP addresses in ascending order - Filter
-request:GETshows non-GET requests
Filterresponse:>=400 shows responses with status
Filterresponse:403 shows 403 responses
Filteragent:wget showswget clients
Filterbytes:>1000 shows responses that are greater
Filterremote_ip:* can be used to sort remote IP addresses in ascending order
Filter-request:GET shows non-GET requests
User documentation is integrated into the app. Click? in upper right corner.
To update the Log Viewer version to the latest:
- npm update # this update the allproxy package
- ./copyBuildFromAllProxy.sh
- Create branch matching the allproxy version.
Thedocs/index.html needs to be modified so the GitHub Pages app will render properly:
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">Remove '/' from href and src properties.
- Modify any of these config files:
- jsonQueries.json
- queries
- briefJsonFields.json
- jsonFields
- jsonSubQueries.json
- jsonLogScript
- Runnode createApFileSystemJson.js to build a new docsapFileSystem.json file.
This code is licensed under theMIT License.
About
JSON Log Viewer is a development tool for working with structured JSON logging.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
