代码拉取完成,页面将自动刷新
通过ob_admin工具能解析clog和slog文件,并对所选时间范围内的clog和slog进行一键收集。
usage: ./obdiag gather clog [-h] [--from datetime datetime] [--to datetime datetime] [--since 'n'<m|h|d>] [--store_dir store_dir]
[--ob_install_dir ob_install_dir] [--mode mode] --cluster_name cluster_name [--encrypt encrypt]
Example: ./obdiag gather clog --cluster_name demo1 --from 2022-06-16 18:25:00 --to 2022-06-16 18:30:00
执行结果:
./obdiag gather clog --cluster_name demo1 --from 2023-01-16 18:25:00 --to 2023-01-17 01:30:00
Gather clog Summary:
+----------------+-----------+---------+--------+----------------------------------------------------------------------+
| Node | Status | Size | Time | PackPath |
+================+===========+=========+========+======================================================================+
| 192.168.2.11 | Completed | 15.762K | 6 s | gather_pack_20230118002457/clog_192.168.2.11 _20230118002458.zip |
+----------------+-----------+---------+--------+----------------------------------------------------------------------+
usage: ./obdiag gather slog [-h] [--from datetime datetime] [--to datetime datetime] [--since 'n'<m|h|d>] [--store_dir store_dir]
[--ob_install_dir ob_install_dir] [--mode mode] --cluster_name cluster_name [--encrypt encrypt]
Example: ./obdiag gather clog --cluster_name demo1 --from 2022-06-16 18:25:00 --to 2022-06-16 18:30:00
执行结果:
./obdiag gather slog --cluster_name demo1 --from 2023-01-16 18:25:00 --to 2023-01-17 01:30:00
Gather slog Summary:
+----------------+-----------+---------+--------+----------------------------------------------------------------------+
| Node | Status | Size | Time | PackPath |
+================+===========+=========+========+======================================================================+
| 192.168.2.11 | Completed | 15.762K | 6 s | gather_pack_20230118002457/slog_192.168.2.11 _20230118002458.zip |
+----------------+-----------+---------+--------+----------------------------------------------------------------------+
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。