Skip to content

Commit 6fb001e

Browse files
author
Zef Hemel
committed
README update
1 parent 81177c3 commit 6fb001e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ You can also pipe logs directly into Ax:
101101

102102
tail -f /var/log/something.log | ax
103103

104+
## Use with (compressed) log files
105+
An alternative to tailing files into Ax, you can also read them directly. This even supports gzip and bzip2 compression (decided based on the `.gz` and `.bz2` extensions):
106+
107+
ax --file mylog.log
108+
ax --file mylog.log.gz
109+
104110
# Filtering and selecting attributes
105111
Looking at all logs is nice, but it only gets really interesting if you can start to filter stuff and by selecting only certain attributes.
106112

pkg/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func BuildConfig() RuntimeConfig {
118118
rc.Env["pattern"] = *dockerFlag
119119
}
120120
if *fileFlag != "" {
121-
rc.ActiveEnv = fmt.Sprintf("docker.%s", *fileFlag)
121+
rc.ActiveEnv = fmt.Sprintf("file.%s", *fileFlag)
122122
rc.Env["backend"] = "file"
123123
rc.Env["filename"] = *fileFlag
124124
}

0 commit comments

Comments
 (0)