1tlog-play.conf(5) File Formats Manual tlog-play.conf(5)
2
3
4
6 tlog-play.conf - tlog-play configuration file
7
8
10 tlog-play.conf is a JSON-format configuration file for tlog-play pro‐
11 gram. Contrary to the strict JSON specification, both C and C++ style
12 comments are allowed in the file.
13
14 The file must contain a single JSON object with the objects and fields
15 described below. Some of them are optional and assume a default value.
16 Those that do require a value can still be omitted and specified to
17 tlog-play via command-line options.
18
19
21 Root object
22 reader (string)
23 The type of "log reader" to use for retrieving log messages. The
24 chosen reader needs to be configured using its own dedicated
25 parameters.
26
27 One of: "file", "journal", "es"
28 Default: "file"
29
30 file (object)
31 File reader object, see below.
32
33 es (object)
34 Elasticsearch reader object, see below.
35
36 journal (object)
37 Systemd journal reader object, see below.
38
39 persist (boolean)
40 If true, ignore any keyboard-generated signals and the quit key.
41
42 Default: false
43
44 lax (boolean)
45 If true, ignore missing (dropped, or lost) log messages. Other‐
46 wise report an error and abort when a message is missing.
47
48 Default: false
49
50 file - File reader object
51 path (string)
52 The path to the file the "file" reader should read logs from.
53
54 No default.
55
56 match (string)
57 The recording id of the recording the "file" reader should seek
58 to for playback.
59
60 No default.
61
62 es - Elasticsearch reader object
63 baseurl (string)
64 The base URL to request Elasticsearch through. Should not con‐
65 tain query (?...) or fragment (#...) parts.
66
67 No default.
68
69 query (string)
70 The query string to send to Elasticsearch
71
72 No default.
73
74 verbose (boolean)
75 If true, enable verbose output on Elasticsearch HTTP client.
76
77 Default: false
78
79
81 A configuration specifying only the reader:
82
83 {
84 "reader": "file"
85 }
86
87
88 A configuration specifying Elasticsearch reader, along with the base
89 URL.
90
91 {
92 "reader": "es"
93 "es" : {
94 "baseurl": "http://localhost:9200/tlog/tlog/_search"
95 }
96 }
97
98
100 tlog-play(8), http://json.org/
101
102
104 Nikolai Kondrashov <spbnick@gmail.com>
105
106
107
108Tlog March 2016 tlog-play.conf(5)