From 11c5cd5bde526ed37891d40b6d840e321faf09d3 Mon Sep 17 00:00:00 2001 From: Yiting Qiang Date: Sat, 14 Nov 2020 21:02:10 +0800 Subject: [PATCH] prepare v1.0.0-alpha --- README.md | 5 ++++- RELEASE_HISTORY.md | 10 +++++++--- static_files/AppVersion | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bdd8639..b0612db 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ Extra feature includes filtering by log level, by time ranage, helpful for daily Download the executable binary (https://github.com/qiangyt/jog/releases/) to $PATH. For ex., for Mac OSX and Linux, ```shell - curl -L https://github.com/qiangyt/jog/releases/download/v0.9.20/jog.$(echo `uname -s` | tr A-Z a-z) -o /usr/local/bin/jog + curl -L https://github.com/qiangyt/jog/releases/download/v1.0.0-alpha/jog.$(echo `uname -s` | tr A-Z a-z) -o /usr/local/bin/jog chmod +x /usr/local/bin/jog ``` @@ -87,6 +87,7 @@ Extra feature includes filtering by log level, by time ranage, helpful for daily 8) natural timestamp range: jog --after "1 week" --before "2 days" app-20200701-1.log 9) output raw JSON and apply time range filter: jog --after "1 week" --before "2 days" app-20200701-1.log --json 10) disable colorization: jog -cs colorization=false app-20200701-1.log + 11) view apache log, non-JSON log jog -g COMMONAPACHELOG example_logs/grok_apache.log") Options: -a, --after 'after' time filter. Auto-detect the timestamp format; can be natural datetime @@ -96,10 +97,12 @@ Extra feature includes filtering by log level, by time ranage, helpful for daily -cg, --config-get Get value to specified config item -d, --debug Print more error detail -f, --follow Follow mode - follow log output + -g, --grok For non-json log line. The default patterns are saved in ... -j, --json Output the raw JSON but then able to apply filters -h, --help Display this information -l, --level Filter by log level. For ex. --level warn -n, --lines Number of tail lines. 10 by default, for follow mode + --reset-grok-library-dir Save default GROK patterns to [%s] -t, --template Print a configuration YAML file template -V, --version Display app version information ``` diff --git a/RELEASE_HISTORY.md b/RELEASE_HISTORY.md index 80c765b..c0c709c 100644 --- a/RELEASE_HISTORY.md +++ b/RELEASE_HISTORY.md @@ -2,20 +2,24 @@ 1. User manual - English 2. User manual - Chineses 3. Unit test coverage: 100% +3. New feature: field path # v1.0.0-rc-2 (TODO) 1. Unit test coverage: >= 80% -2. Fix: +2. Fix: ... +3. New feature: initial arbitrary field filter # v1.0.0-rc-1 (TODO) 1. Unit test coverage: >= 50% -2. Fix: +2. Fix: ... +3. Enhancement: Log json log # v1.0.0-belta (TODO) 1. Enhancement: improve grok support 2. Enhancement: merge multiple configuration +3. Replace dynamic object design with https://github.com/imdario/mergo & https://github.com/mitchellh/mapstructure -# v1.0.0-alpha (TODO) +# v1.0.0-alpha 1. New feature: initial support flat (non-JSON) log, using logstash GROK to parse 2. New feature: new configuration parameter `print-format`, for ex., able to tabularize log output - by @frudolph77 3. Fix: replace tab in log lines by four spaces - by @frudolph77 diff --git a/static_files/AppVersion b/static_files/AppVersion index 94e2977..d0a68ee 100644 --- a/static_files/AppVersion +++ b/static_files/AppVersion @@ -1 +1 @@ -v0.9.21 \ No newline at end of file +v1.0.0-alpha \ No newline at end of file