https://github.com/joehowarth/llq
Live Log Query
https://github.com/joehowarth/llq
Last synced: 6 months ago
JSON representation
Live Log Query
- Host: GitHub
- URL: https://github.com/joehowarth/llq
- Owner: JoeHowarth
- Created: 2024-08-05T02:18:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-05T03:26:25.000Z (almost 2 years ago)
- Last Synced: 2024-12-29T06:11:32.215Z (over 1 year ago)
- Language: C++
- Size: 1.9 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# llq (Live Log Query)
llq enables responsively quering your structured json logs to understand your application

## Query Syntax
- `msg`: Filters to logs that have the `msg` key and displays only the value of this key for each log
- `level == 'error', msg`: Filters to error logs with msg keys and displays both the level and msg
- `level == 'error', *`: Similar to above, but the wildcard means the entire log object is displayed
- `sequence > 20, sequence < 30, msg`: Binary comparisons are implemented for integers
Queries are made of a comma separated list of expressions.
An expression contains a json path and optionally an operation and rhs
```
level
foo.bar.baz
array.5.key1
level == 'info'
count == 5
count > 5
count < 5
name > 'a'
* # a wildcard is a special type of path specifier that matches all paths
```