@@ -7,16 +7,23 @@ tztail (TimeZoneTAIL) allows you to view logs in the timezone you want. Its tail
7
7
8
8
## Install
9
9
10
- ```
10
+ _ Using Homebrew_
11
+
12
+ ``` bash
11
13
brew tap thecasualcoder/stable
12
14
brew install tztail
13
15
```
14
16
17
+ _ Using Cargo_
18
+
19
+ ``` bash
20
+ cargo install tztail
21
+ ```
22
+
15
23
## Usage
16
24
17
25
``` bash
18
26
$ tztail --help
19
- tztail 1.1.0
20
27
tztail (TimeZoneTAIL) allows you to view logs in the timezone you want
21
28
22
29
USAGE:
@@ -52,7 +59,7 @@ Most used autodetectable formats
52
59
| ---------------- | ------------------------------- |
53
60
| RFC2822 | Fri, 28 Nov 2014 12:00:09 +0000 |
54
61
| 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 |
56
63
57
64
## Usecase
58
65
@@ -77,7 +84,7 @@ $ cat somelog # A log in non-standard format
77
84
2018-11-03 20:07:20 mvcc: store.index: compact 106120
78
85
2018-11-03 20:07:20 mvcc: finished scheduled compaction at 106120 (took 933.25µs)
79
86
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"
81
88
2018-11-04 01:37:20 mvcc: store.index: compact 106120
82
89
2018-11-04 01:37:20 mvcc: finished scheduled compaction at 106120 (took 933.25µs)
83
90
```
@@ -99,14 +106,3 @@ $ cargo install
99
106
# To run tests
100
107
$ cargo test
101
108
```
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