Discover Packages
github.com/yoanm/jsonTail
command
module
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Mar 17, 2018
License: GPL-3.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
jsonTail
tail command for json log file
How to install
Retrieve last version
go get github.com/yoanm/jsonTail
Then, install it
go install github.com/yoanm/jsonTail
Options
Following command will output available options
jsonTail --help
-date : will print line handling date in front of each processed lines
File
-f FILE_PATH : will open FILE_PATH and wait for update. Behaves like tail -f command
-F FILE_PATH : Same behavior than -f but file will be reopened if recreated. Behaves like tail -F command
Fields matching/exclusion
Fields matching or exclusion only work with objects
-only FIELD : will output only specified field. Multiple fields could be specified by using multiple -only.
Field matching is made thanks to github.com/tidwall/gjson package.
See github.com/tidwall/gjson path syntac for more information about paths
-exclude FIELD : will exclude specified field from output. Multiple fields could be specified by using multiple -exclude.
Field matching is made thanks to github.com/tidwall/sjson package.
See github.com/tidwall/sjson path syntac for more information about paths
Dependencies
Following external packages are used under the hood :
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.