The best parser for filtering and handling files of any size with ease. Inspecting or filtering large files can be a real pain. Logy let's you open any file in a paginated manner so that there is no overhead of opening the whole file when all you want is searching for a small chunk of text. Besides file paths, it also supports folder paths.
There is no need to install anything. If you want to skip the setup process and just use the tool, follow this link and use the build that is specific to your OS (Mac, Linux or Windows). All binaries were built against 64bit architectures.
Otherwise clone the repository. This way you can contribute to the project :)
After the file is parsed you can navigate to any page by specifying the desired page number
$ logy path/to/file.log # By default it outputs 50 lines per page
$ logy path/to/folder --ext=log,txt # The extensions (-ext) flag must be specified for folder paths to mention what file types should be scanned. In this example the parser will search the folder recursively for all files ending with .log or .txt extension
$ logy path/to/file.log --lines=25 # Now it will output 25 lines per page
$ logy path/to/folder --ext=log,txt --lines=25 # Now it will output 25 lines per page
$ logy path/to/file.log --text=json # Every json structure that is found will be nicely formatted
$ logy path/to/folder --ext=log,txt --text=json # Every json structure that is found will be nicely formatted
$ logy path/to/file.log --filter=Exception # Every text that is found will be nicely colored to be easily observed
$ logy path/to/folder --ext=log,txt --filter=Exception # Every text that is found will be nicely colored to be easily observed
$ logy path/to/file.log --page=10 # The parser will directly navigate to the specified page number
$ logy path/to/folder --ext=log,txt --page=10 # The parser will directly navigate to the specified page number
$ logy path/to/file.log --filter=[0-9]{2}:[0-9]{2}:[0-9]{2} --with-regex # The parser will search for any text that matches whatever was specified in the filter option flag
$ logy path/to/folder --ext=log,txt --filter=[0-9]{2}:[0-9]{2}:[0-9]{2} --with-regex # The parser will search for any text that matches whatever was specified in the filter option flag
$ logy path/to/file.log --no-color # The parser will display all text with the same color (black/white). Probably you will never want this behavior but it's here just in case :)
$ logy path/to/folder --ext=log,txt --no-color # The parser will display all text with the same color (black/white). Probably you will never want this behavior but it's here just in case :)
Of course all the flag options can be combined in any manner to obtain the desired results
Because regex implementation in Go is not highly performant, use the --with-regex
flag when it is absolutely necessary, especially with large files.
Please use the issue tracker to report any bugs or feature requests.
The Logy CLI tool is open-sourced software licensed under the MIT license.