Printing the contents of .snap and .xlog files
$ tt cat FILE ... [OPTION ...]
tt cat prints the contents of snapshot (.snap) and
WAL (.xlog) files to stdout. A single call of tt cat can
print the contents of multiple files.
-
--formatFORMAT¶ Output format:
yaml(default),json, orlua.
-
--fromLSN¶ Show operations starting from the given LSN.
-
--toLSN¶ Show operations up to the given LSN. Default:
18446744073709551615.
-
--replicaID¶ Filter the output by replica ID. Can be passed more than once.
When calling
tt catwith filters by LSN (--fromand--toflags) and replica ID (--replica), remember that LSNs differ across replicas. Thus, if you pass more than one replica ID via--fromor--to, the result may not reflect the actual sequence of operations.
-
--spaceID¶ Filter the output by space ID. Can be passed more than once.
-
--show-system¶ Show the contents of system spaces.
Output contents of
00000000000000000000.xlogWAL file in the YAML format:$ tt cat 00000000000000000000.xlog
Output operations on spaces with
space_id512 and 513 from the00000000000000000012.snapsnapshot file in the JSON format:$ tt cat 00000000000000000012.snap --space 512 --space 513 --format json
Output operations on all spaces, including system spaces, from the
00000000000000000000.xlogWAL file:$ tt cat 00000000000000000000.xlog --show-system
Output operations with LSNs between 100 and 500 on replica 1 from the
00000000000000000000.xlogWAL file:$ tt cat 00000000000000000000.xlog --from 100 --to 500 --replica 1