tlog-play.conf(5)

✨ NAME ✨

okay so bestie, welcome to tlog-play.conf(5) β€” this is the manual for the tlog-play.conf configuration file, aka the lil glow-up doc that tells tlog-play how to behave. it's giving "File Formats Manual" energy and honestly? iconic. πŸ’…


🌸 DESCRIPTION 🌸

tlog-play.conf is a JSON-format configuration file for the tlog-play program. now, plot twist: even though strict JSON says "no comments, bestie," this file is not like other files β€” both C and C++ style comments are allowed in it. so go ahead and annotate your config, you've earned it. ✨

the file has to contain a single JSON object with the objects and fields described below. some of them are optional and just assume a default value if you don't show up for them. and the ones that do require a value? you can still totally omit them and pass them to tlog-play via command-line options instead. flexible queen behavior. πŸ‘‘


πŸ’– OBJECTS AND FIELDS πŸ’–

🫢 Root object

  • reader (string) β€” the type of "log reader" to use for retrieving log messages. the reader you pick needs to be configured using its own dedicated parameters, so don't leave it hanging. one of: "file", "journal", "es". default: "file".
  • file (object) β€” the File reader object, see below. πŸ“
  • es (object) β€” the Elasticsearch reader object, see below. πŸ”
  • journal (object) β€” the Systemd journal reader object, see below. πŸ““
  • persist (boolean) β€” if true, ignore any keyboard-generated signals and the quit key. yes, really. it just won't quit on you. default: false.
  • lax (boolean) β€” if true, ignore missing (dropped, or lost) log messages. otherwise it reports an error and aborts when a message is missing. default: false.
ngl, lax: true is the "we don't talk about the dropped messages" setting. choose wisely, bestie. πŸ’€

πŸ“ file - File reader object

  • path (string) β€” the path to the file the "file" reader should read logs from. no default. 🚫
  • match (string) β€” the recording id of the recording the "file" reader should seek to for playback. no default. 🚫

πŸ” es - Elasticsearch reader object

  • baseurl (string) β€” the base URL to request Elasticsearch through. should not contain query (?...) or fragment (#...) parts. no default. 🚫
  • query (string) β€” the query string to send to Elasticsearch. no default. 🚫
  • verbose (boolean) β€” if true, enable verbose output on the Elasticsearch HTTP client. default: false.

🌈 EXAMPLES 🌈

a configuration specifying only the reader β€” minimal, lowkey, does the job:

{
    "reader": "file"
}

a configuration specifying the 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/ β€” go read these too, fr fr. πŸ“š


πŸ‘‘ AUTHOR πŸ‘‘

Nikolai Kondrashov <spbnick@gmail.com> β€” the main character who wrote this. we stan. 🫢


and that's a wrap on the tlog-play.conf(5) manual page, bestie!! this was Tlog, dated March 2016 β€” yeah, she's a vintage icon and she still ate. go configure something cute. periodt. πŸ’…βœ¨πŸŽ€