@@ -7,16 +7,23 @@ tztail (TimeZoneTAIL) allows you to view logs in the timezone you want. Its tail
77
88## Install
99
10- ```
10+ _ Using Homebrew_
11+
12+ ``` bash
1113brew tap thecasualcoder/stable
1214brew install tztail
1315```
1416
17+ _ Using Cargo_
18+
19+ ``` bash
20+ cargo install tztail
21+ ```
22+
1523## Usage
1624
1725``` bash
1826$ tztail --help
19- tztail 1.1.0
2027tztail (TimeZoneTAIL) allows you to view logs in the timezone you want
2128
2229USAGE:
@@ -52,7 +59,7 @@ Most used autodetectable formats
5259| ---------------- | ------------------------------- |
5360| RFC2822 | Fri, 28 Nov 2014 12:00:09 +0000 |
5461| RFC3339 | 2014-11-28T12:00:09+0000 |
55- | Nginx Log format | 04/Nov/2018:12:13:49 |
62+ | Nginx Log format | 04/Nov/2018:12:13:49 +0000 |
5663
5764## Usecase
5865
@@ -77,7 +84,7 @@ $ cat somelog # A log in non-standard format
77842018-11-03 20:07:20 mvcc: store.index: compact 106120
78852018-11-03 20:07:20 mvcc: finished scheduled compaction at 106120 (took 933.25µs)
7986
80- $ cat somelog | tztail -t Asia/Kolkata -f " %Y-%m-%d %H:%M:%S"
87+ $ cat somelog | tztail -t Asia/Kolkata --format " %Y-%m-%d %H:%M:%S"
81882018-11-04 01:37:20 mvcc: store.index: compact 106120
82892018-11-04 01:37:20 mvcc: finished scheduled compaction at 106120 (took 933.25µs)
8390```
@@ -99,14 +106,3 @@ $ cargo install
99106# To run tests
100107$ cargo test
101108```
102-
103- ## Roadmap
104-
105- - [x] Support all standard datetime formats.
106- - [x] Allow custom datetime format.
107- - [x] Add option to read from file.
108- - [x] Auto-detect source timezone if possible.
109- - [ ] Allow specifying source timezone explicitly.
110- - [ ] Support GCP/AWS cloud logging formats.
111- - [ ] Performance optimizations
112- - [ ] Add support to pass time-window which would only show the logs in that time period
0 commit comments