Crates.io | log-analyzer-pro |
lib.rs | log-analyzer-pro |
version | 1.0.3 |
source | src |
created_at | 2022-06-04 11:29:54.945857 |
updated_at | 2022-06-05 12:09:10.057751 |
description | Log Analyzer Pro is a command line application giving powerful filtering and searching capabilities to analyze software logs. Logs can come from log files (updates live if these are modified) or a socket connection. |
homepage | https://github.com/MrCasCode/log-analyzer-pro |
repository | https://github.com/MrCasCode/log-analyzer-pro |
max_upload_size | |
id | 599665 |
size | 14,256,400 |
A powerful log analyzer application for the terminal written in Rust
cargo install log-analyzer-pro
The binary executable is lap
Use Shift + Arrows or ⇥ Tab to navigate across the application menus and change focus.
When focused on a tab, list or table, use the Arrows to change the selection
When focused on a tab, list or table, use the Arrows to change the selection
Resize Left: ⇧ Shift + A
Resize Right: ⇧ Shift + D
Resize Up: ⇧ Shift + W
Resize Down: ⇧ Shift + S
inner navigation
to select a filterUse inner navigation
to navigate through the logs and apply horizontal scroll
Press ⌥ Option or Alt + inner navigation
for rapid scroll
Press Page Up or Page Down to paginate 1000 lines
Navigate to index (or closest): ⇧ Shift + G
Toggle columns ON/OFF:
i: Index
d: Date
d: Timestamp
a: App
s: Severity
f: Function
p: Payload
If you're in Search results
you can go to the selected index in Log module
: ⏎ Enter
You can highlight search results by using regex groups in your search. The name of the group should be the color you want to highlight the match with. The list of available colors is:
Search example:
(?P<GREEN>success_ok).*(?P<BLUE>message)
You can use a json file to customize the application look and preload formats and filters by using a command line argument:
lap --settings path_to_settings_file.json
{INCLUDE, EXCLUDE, MARKER}
{column_name: regex and color: RGB tuple (reed, green, blue)}
. All fields are optionalExample file
{
"primary_color": [0, 225, 255],
"formats": [
{
"alias": "Default",
"regex": "(?P<PAYLOAD>.*)"
},
{
"alias": "Application",
"regex": "(?P<DATE>[\\d]{4}-[\\d]{2}-[\\d]{2} [\\d]{2}:[\\d]{2}:[\\d]{2},[\\d]{3}) - \\[(?P<SEVERITY>[\\w]*)\\] - \\[([ \\w]{4})\\] - \\[(?P<TIMESTAMP>[ \\d]*)\\] (?P<PAYLOAD>.*)"
},
{
"alias": "System",
"regex": "(?P<DATE>[\\d]{4}-[\\d]{2}-[\\d]{2} [\\d]{2}:[\\d]{2}:[\\d]{2}.[\\d]*) \\((?P<APP>[\\w\\d]*)[/ ]?(?P<FUNCTION>.*)\\) (?P<PAYLOAD>.*)"
}
],
"filters": [
{
"alias": "System",
"action": "MARKER",
"filter": {
"app": "system",
"color": [100, 100, 0]
}
},
{
"alias": "SIGKILL",
"action": "MARKER",
"filter": {
"payload": "SIGKILL",
"color": [255, 0, 0]
}
}
]
}
Dual-licensed under MIT or the UNLICENSE.