forked from gvalkov/tailon
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailon.toml
47 lines (34 loc) · 1.37 KB
/
tailon.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# The <title> of the index page.
title = "Tailon file viewer"
# The root of the web application.
relative-root = "/"
# The addresses to listen on. Can be an address:port combination or an unix socket.
# listen-addr = ["127.0.0.1:9001"]
listen-addr = ["0.0.0.0:9001"]
# Allow download of know files (only those matched by a filespec).
allow-download = true
# how many lines of code are displayed at once in the GUI terminal
# 0 means all of them
lines-of-history = 3001
# Number of lines to innitially show when tailing. If you want ALL of them, you must manually change the tail command, and insert "+1" instead of "$lines" in the conf file
lines-to-tail = 103
# Commands that will appear in the UI.
allow-commands = ["tail", "grep", "sed", "awk"]
# File, glob and dir filespecs are similar in principle to their
# command-line counterparts.
[commands]
[commands.tail]
action = ["tail", "-n", "$lines", "-F", "$path"]
# action = ["tail", "-n", "500", "-F", "$path"]
[commands.grep]
stdin = "tail"
action = ["grep", "--text", "--line-buffered", "--color=never", "-i", "-e", "$script"]
default = ".*"
[commands.sed]
stdin = "tail"
action = ["sed", "-u", "-e", "$script"]
default = "s/.*/&/"
[commands.awk]
stdin = "tail"
action = ["awk", "--sandbox", "$script"]
default = "{print $0; fflush()}"