Skip to content

Playing Back Logs

Ben Kroop edited this page Feb 26, 2019 · 1 revision

Play back a log

  • Start a new container with jet run
    • Export the log path environment variable: export LOG_PATH=/jet/logs/20190101035913/
  • Run any BQs you want running during log playback
  • Run the LoggedMessagePlayerBQ inside the container and the messages in the log will be played back

The LoggedMessagePlayerBQ reads logged messages and republishes them in order. It attempts to time publishes to match the message timing during log creation. The spacing between messages is approximate. Improvements to this are planned.

You can also write log processing scripts that read the log directly using the LogReader class. The LoggedMessagePlayerBQ serves as an example of how the LogReader is meant to be used.