logsync

command module
v0.0.0-...-f0b9d49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 1 Imported by: 0

README

logsync is a terminal based utility for viewing multiple log files from a distributed system such that their timestamps are in sync as you step through the logs. To run logsync, type: logsync file1 file2 ... filen

Once it loads, there will be 4 text boxes for each log file specified and a command edit box. Here are the valid commands: "head" jumps all files to the beginning "tail" jumps all files to the end Any positive number jumps that many steps, where each step chooses the next log line based on time stamp and advancing that file foward one. Any negative number goes back that many steps. Also it is possible to search based on a timestamp like "2020-05-25|08:47:33.663" to jump to the closest log line for all the files

To build:
make build
This will create the logsync executable in the current directory, and you can put it in a folder that 
is in your path or just run it where it is.

To test out the logsync utility, you can use the sample log files under test_data and run like this:
"./logsync test_data/logs/*"
This will run the logsync against the 4 log files that were generated from a Tendermint cluster.


To clean:
make clean

To test the filechunk code to make sure its valid:
make test

Documentation

Overview

Copyright © 2020 Joseph Allen <joecroninallen@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis
Package app is the main UI that used rivo/tview
Package app is the main UI that used rivo/tview
Package filechunk has code for reading file into memory in chunks as needed
Package filechunk has code for reading file into memory in chunks as needed

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL