influxd inspect export-lp
influxd inspect export-lp
命令将存储桶中的所有时间结构化合并树 (TSM) 数据导出为 Line Protocol。
用法
influxd inspect export-lp [flags]
标志
标志 | 描述 | 输入类型 | |
---|---|---|---|
--bucket-id | (必需) 存储桶 ID | 字符串 | |
--compress | 使用 gzip 压缩输出 | ||
--end | 导出结束时间(RFC3339 格式) | 字符串 | |
--engine-path | (必需) 持久性 InfluxDB 引擎文件路径 | 字符串 | |
-h | --help | export-lp 命令的帮助。 | |
--log-level | 日志级别 (debug 、info (默认) 或 error ) | 字符串 | |
--measurement | 要导出的指标名称 | 字符串 | |
--output-path | (必需) 输出路径(文件路径或标准输出 (- )) | 字符串 | |
--start | 导出开始时间(RFC3339 格式) | 字符串 |
示例
将存储桶中的所有数据导出为 Line Protocol
influxd inspect export-lp \
--bucket-id 12ab34cd56ef \
--engine-path ~/.influxdbv2/engine \
--output-path path/to/export.lp
influxd inspect export-lp \
--bucket-id 12ab34cd56ef \
--engine-path ~/.influxdbv2/engine \
--output-path -
将指标中的数据导出为 Line Protocol
# Export a single measurement
influxd inspect export-lp \
--bucket-id 12ab34cd56ef \
--engine-path ~/.influxdbv2/engine \
--measurement example-measurement \
--output-path path/to/export.lp
# Export multiple measurements
influxd inspect export-lp \
--bucket-id 12ab34cd56ef \
--engine-path ~/.influxdbv2/engine \
--measurement example-measurement-1,example-measurement-2 \
--output-path path/to/export.lp
# Export a single measurement
influxd inspect export-lp \
--bucket-id 12ab34cd56ef \
--engine-path ~/.influxdbv2/engine \
--measurement example-measurement \
--output-path -
# Export multiple measurements
influxd inspect export-lp \
--bucket-id 12ab34cd56ef \
--engine-path ~/.influxdbv2/engine \
--measurement example-measurement-1,example-measurement-2 \
--output-path -
将指定时间范围内的数据导出为 Line Protocol
influxd inspect export-lp \
--bucket-id 12ab34cd56ef \
--engine-path ~/.influxdbv2/engine \
--start 2021-01-01T00:00:00Z \
--end 2021-01-31T23:59:59Z \
--output-path path/to/export.lp
influxd inspect export-lp \
--bucket-id 12ab34cd56ef \
--engine-path ~/.influxdbv2/engine \
--start 2021-01-01T00:00:00Z \
--end 2021-01-31T23:59:59Z \
--output-path -
此页是否对您有帮助?
感谢您的反馈!
支持和反馈
感谢您成为我们社区的一份子!我们欢迎并鼓励您提供关于 InfluxDB 和本文档的反馈和错误报告。要寻求支持,请使用以下资源
拥有年度或支持合同的客户 可以 联系 InfluxData 支持。