1tlog-play.conf(5)             File Formats Manual            tlog-play.conf(5)
2
3
4

NAME

6       tlog-play.conf - tlog-play configuration file
7
8

DESCRIPTION

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

OBJECTS AND FIELDS

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   es - Elasticsearch reader object
57       baseurl (string)
58              The  base  URL to request Elasticsearch through. Should not con‐
59              tain query (?...) or fragment (#...) parts.
60
61              No default.
62
63       query (string)
64              The query string to send to Elasticsearch
65
66              No default.
67
68

EXAMPLES

70       A configuration specifying only the reader:
71
72              {
73                  "reader": "file"
74              }
75
76
77       A configuration specifying Elasticsearch reader, along  with  the  base
78       URL.
79
80              {
81                  "reader": "es"
82                  "es" : {
83                      "baseurl": "http://localhost:9200/tlog/tlog/_search"
84                  }
85              }
86
87

SEE ALSO

89       tlog-play(8), http://json.org/
90
91

AUTHOR

93       Nikolai Kondrashov <spbnick@gmail.com>
94
95
96
97Tlog                              March 2016                 tlog-play.conf(5)
Impressum