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. * Left: ⇧ Shift + ← * Right: ⇧ Shift + → * Up: ⇧ Shift + ↑ * Down: ⇧ Shift + ↓
When focused on a tab, list or table, use the Arrows to change the selection * Left: ⇧ Shift + ← * Right: ⇧ Shift + → * Up: ⇧ Shift + ↑ * Down: ⇧ Shift + ↓
When focused on a tab, list or table, use the Arrows to change the selection * Left: ← * Right: → * Up: ↑ * Down: ↓
inner navigation
to select a filter*
* Use 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
Search results
you can go to the selected index in Log module
: ⏎ EnterYou can use a json file to customize the application look and preload formats and filters
{INCLUDE, EXCLUDE, MARKER}
{column_name: regex and color: RGB tuple (reed, green, blue)}
. All fields are optionalExample file
json
{
"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.