tlog-play.conf man page

tlog-play.conf — tlog-play configuration file

Description

tlog-play.conf is a JSON-format configuration file for tlog-play program. Contrary to the strict JSON specification, both C and C++ style comments are allowed in the file.

The file must contain a single JSON object with the objects and fields described below. Some of them are optional and assume a default value. Those that do require a value can still be omitted and specified to tlog-play via command-line options.

Objects and Fields

Root object

reader (string)

The type of "log reader" to use for retrieving log messages. The chosen reader needs to be configured using its own dedicated parameters.

One of: "file", "es"
Default: "file"

file (object)
File reader object, see below.
es (object)
ElasticSearch reader object, see below.

file - File reader object

path (string)

The "file" reader log file path.

No default.

es - ElasticSearch reader object

baseurl (string)

The base URL to request ElasticSearch through. Should not contain the query (?...) or fragment (#...) parts.

No default.

query (string)

The query string to send to ElasticSearch

No default.

Examples

A config specifying only the reader:
{
    "reader": "file"
}
A config specifying ElasticSearch reader, along with the base URL.
{
    "reader": "es"
    "es" : {
        "baseurl": "http://localhost:9200/tlog/tlog/_search"
    }
}

See Also

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

Author

Nikolai Kondrashov <spbnick@gmail.com>

Referenced By

tlog-play(8).

March 2016 Tlog