Commands ======== Basic usage ----------- :: gop server -config [options] gop run -config [options] gop ls [[/[/YYYY[/MM]]]] [-path ] gop watch [-config ] [-source ] [options] Version ------- :: gop version gop -version Modes ----- - ``server``: collect + write logs + API - ``run``: console output only (sar style) - ``ls``: list configs/sources/years/months/files - ``watch``: query saved logs (auto-discover log files) Run options ----------- :: -interval -interval-ms Watch options ------------- :: -config -source -time 'yyyy-mm-dd hh24:mi:ss.fff' 'yyyy-mm-dd hh24:mi:ss.fff' -name -tag -head -tail -f -follow | -F -path -csv The default log root is ``data/``. You can also set ``GOP_LOG_PATH``. If no ``-head``/``-tail`` and no ``-time`` are provided, watch shows the latest 20 rows. The optional ``tail`` token (e.g., ``gop watch -source mysql-local tail``) is accepted. If the same source exists under multiple config folders, watch picks the most recent one. Use ``-follow`` to stream new log lines (tail -f style). If ``-source`` is omitted, watch prints all sources under the selected config. List options ------------ :: gop ls gop ls gop ls / gop ls //YYYY gop ls //YYYY/MM Option: ``-path `` (default: ``data/`` or ``GOP_LOG_PATH``)