Crates.io | loggi |
lib.rs | loggi |
version | 0.1.1 |
source | src |
created_at | 2024-06-18 06:13:30.064681 |
updated_at | 2024-06-18 06:25:26.611455 |
description | log inspection tool that allows running logql queries (partialy) on local files |
homepage | |
repository | |
max_upload_size | |
id | 1275158 |
size | 65,551 |
Explore the docs ยป
Report Bug
.
Request Feature
Loggi is a CLI tool for parsing log files using logql (partial syntax).
Today when using project logging on local projects (without grafana integration) I found it hard to debug with grep only, wanting something that will allow me to use number filter queries from loki (x > 2, ...) also the tool allows to use this while tracing a stream which is a great option for runtime usage.
Install the tool using cargo
cargo install loggi
We will run loggi on a web server log to filter baseUrl for example:
loggi <PATH_TO_WEB_LOG> "logfmt | baseUrl == \"/test/\""
The long way
Parse logs and allow querying them based on Logql syntax
Usage: loggi <PATH> <QUERY>
Arguments:
<PATH> Log file or directory path to query from
<QUERY> Logql query to run on each log line
Loggi can iterate through directory or one file only, it's you choice
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the GPLv3 License. See LICENSE for more information.