You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-22Lines changed: 29 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,27 +4,47 @@
4
4
5
5
tztail (TimeZoneTAIL) allows you to view logs in the timezone you want.
6
6
7
-
> This project is work in progress
8
-
9
7
## Usage
10
8
11
9
```bash
12
-
tztail 0.1.1
10
+
$ tztail --help
11
+
tztail 1.0.0
13
12
tztail (TimeZoneTAIL) allows you to view logs in the timezone you want
14
13
15
14
USAGE:
16
-
tztail --timezone <TIMEZONE>[FILE]
15
+
tztail [FILE]
17
16
18
17
OPTIONS:
19
-
-t, --timezone <TIMEZONE> Sets the timezone in which output should be printed
20
-
-f, --format <FORMAT> Custom format for parsing dates
18
+
-t, --timezone <TIMEZONE> Sets the timezone in which output should be printed. (Default: local timezone)
19
+
-f, --format <FORMAT> Custom format for parsing dates. (Default: autodetected patterns)
21
20
-h, --help Prints help information
22
21
-V, --version Prints version information
23
22
24
23
ARGS:
25
-
<FILE> File to tail
24
+
<FILE> File to tail. STDIN by default
26
25
```
27
26
27
+
## Features
28
+
29
+
- Supports few standard formats with which auto detection is done when parsing logs.
30
+
- Supports specifying custom format for parsing in case it is a non-standard format. See [here](https://docs.rs/chrono/0.4.6/chrono/format/strftime/index.html#specifiers) for formats.
31
+
- Autodetect source timezone if present in logs. Example (`2014-11-28T12:00:09+0100` is CET)
This tool can be used to convert timestamps in a log to any desired timezone while tailing logs. Eg. In case your logs are in UTC and you want to view it in a different timezone say. Asia/Kolkata (IST), pipe the logs through `tztail`.
2018-11-04 01:37:20 mvcc: finished scheduled compaction at 106120 (took 933.25µs)
54
74
```
55
75
56
-
## Features
57
-
58
-
- Supports few standard formats with which auto detection is done when parsing logs.
59
-
- Supports specifying custom format for parsing in case it is a non-standard format. See [here](https://docs.rs/chrono/0.4.6/chrono/format/strftime/index.html#specifiers) for formats.
0 commit comments