https://github.com/antelopesystems/lop
lop command
https://github.com/antelopesystems/lop
Last synced: 5 months ago
JSON representation
lop command
- Host: GitHub
- URL: https://github.com/antelopesystems/lop
- Owner: antelopesystems
- License: other
- Created: 2020-09-30T09:14:54.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-30T12:02:56.000Z (almost 5 years ago)
- Last Synced: 2025-02-09T03:16:54.202Z (5 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Introduction
Tool to parse json logs to a fixed log standard display.
# Installation
```shell
npm i -g @antelope/lop
```# Usage
```shell
kubectl logs pod/example | lop
```# Examples
## Kubectl logs with follow
```shell
kubectl logs -f pod/example | lop
```## Filter by appender (log name)
```shell
kubectl logs pod/example | lop --appender standard
```
or
```shell
kubectl logs pod/example | lop -a standard
```## Filter by log level
```shell
kubectl logs pod/example | lop -l WARN # Will show WARN logs and above (ERROR)
```
or
```shell
kubectl logs pod/example | lop --level WARN # Will show WARN logs and above (ERROR)
```