tlog-play(8) | System Manager's Manual | tlog-play(8) |
tlog-play - play back terminal I/O recorded by tlog-rec(8)
tlog-play [OPTION...]
Tlog-play is a playback program for terminal I/O recorded with tlog-rec(8). It reproduces the recording on the terminal it's run under, and can't change its size, so the playback terminal size needs to match the recorded terminal size for proper playback.
Tlog-play loads its parameters from the system-wide configuration file /etc/tlog/tlog-play.conf, which can be overridden with command-line options described below.
NUMBER is a floating-point number to multiply playback speed by. Can be adjusted during playback.
Value minimum: 0
If specified, when the end of the recorded session is reached, wait for new messages to be added and play them back when they appear.
STRING is a logical location, or a time to which recording should be fast-forwarded. Can be a "start", or an "end" string, or a timestamp formatted as HH:MM:SS.sss, where any part can be omitted to mean zero.
If specified, playback is started in a paused state.
STRING is the type of "log reader" to use for retrieving log messages. The chosen reader needs to be configured using its own dedicated parameters.
Value should be one of: "file", "journal",
"es"
If specified, ignore any keyboard-generated signals and the quit key.
If specified, ignore missing (dropped, or lost) log messages. Otherwise report an error and abort when a message is missing.
FILE is the path to the file the "file" reader should read logs from.
STRING is the recording id of the recording the "file" reader should seek to for playback.
STRING is the base URL to request Elasticsearch through. Should not contain query (?...) or fragment (#...) parts.
STRING is the query string to send to Elasticsearch
If specified, enable verbose output on Elasticsearch HTTP client.
SECONDS is the number of seconds since epoch to seek to before searching for the first matching log entry.
Value minimum: 0
SECONDS is the number of seconds since epoch at which searching for log entries should stop.
Value minimum: 0
Each STRING specifies a journal match symbol: either a name-value pair, according to sd_journal_add_match(3), or an "OR" or "AND" string signifying disjunction or conjunction, as with sd_journal_add_disjunction(3) and sd_journal_add_conjunction(3)
STRING is the Specifies a specific journal namespace to use.
Playback can be controlled using the following keys:
E.g. pressing just 'G' would fast-forward to the end, which is useful with following enabled. Pressing '3', '0', 'G' (typing "30G") would fast-forward to 30 seconds from the start of the recording. Typing "30:00G" would fast-forward to 30 minutes, and so would "30:G", and "1800G". Typing "2::G" would fast-forward to two hours into the recording, the same as "120:G" and "7200G".
Recordings can include control sequences attempting to communicate with the terminal, and the playback terminal would dutifully reply to them. Tlog-play tries to filter these responses out, but since it's not a full terminal emulator itself, and since there's a great variety of such control sequences, it can sometimes fail, and interpret some of these as playback control keys described above, with corresponding effects.
This is going to be fixed in future releases, possibly by embedding a proper terminal emulator in tlog-play. For now, most recordings would reproduce correctly, but some might exhibit erratic behavior, and it is possible to e.g. make a recording which would skip (hide) a part of itself on playback. However, there are other, easier ways to hide actions on a terminal, of course.
tlog-play.conf(5), tlog-rec(8)
Nikolai Kondrashov <spbnick@gmail.com>
March 2016 | Tlog |