lbcli fetch logs

Fetches all Lightbits services logs from the local api-service server (the local server, or the server that --endpoint points to).

Bash
Copy

Example:

Bash
Copy
FlagShortTypeDefaultDescription
--capture-cpu-and-tcpdump-cboolCapture CPU and tcpdump stats for 5 seconds to tcpdump.cap + sar.log in network/<interfaces>/.
--collect-services-lbcli-etcd-CboolCollect services info, lbcli and etcd dump only.
--do-not-collect-var-log-NboolDo not collect /var/log.
--dont-compress-output-zboolDo not compress the output tar file. Default is gzip but can switch to xz with -x flag.
--interval-between-BE-read-cycles-iunint32Interval in seconds between FE/BE statistics captures.
--io-nice-pboolSet nicest IO / CPU priority on most commands via 'ionice -c 2 -n 7 nice -n 19'. Default: ''ionice -c 2 -n 7'
--log-filename-LstringLog filename prefix for convenience (do not use spaces).
--num-days-to-collect-logs-suint32Number of days back to collect the logs.
--num-of-statistics-to-capture-nuint321Number of FE/BE statistics to capture.
--use-high-compression-xboolIf compressing, use stronger xz compression instead of gzip. File extension will be txz instead of tgz.
--pathStringThe path to the logs file that the command will create (required). Must end with '.tar.gz'. If the file exists, the command will fail.
--help-hboolHelp for logs.
--skip-statisticsboolDo not capture Lightbits software information.
--servers-liststringSliceList of servers for logs collection. Use servers-list=all for collecting logs from all servers in the cluster, and --path flag for logs location.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
On This Page
lbcli fetch logs