diff --git a/docs/en/14-reference/02-tools/11-taosgen.md b/docs/en/14-reference/02-tools/11-taosgen.md index a6b59511110c..917c81919812 100644 --- a/docs/en/14-reference/02-tools/11-taosgen.md +++ b/docs/en/14-reference/02-tools/11-taosgen.md @@ -57,6 +57,8 @@ taosgen -h 127.0.0.1 -c config.yaml | -u/--user | Username for connecting to the server, default is root | | -p/--password | Password for connecting to the server, default is taosdata | | -c/--config-file | Path to the YAML configuration file | +| -d/--log-dir | Specify log output directory, default is ./log | +| -f/--log-file | Specify complete log file path (overrides --log-dir) | | -?/--help | Show help information and exit | | -V/--version | Show version information and exit. Cannot be used with other parameters | @@ -168,7 +170,7 @@ By combining multiple steps, jobs can implement complex logic flows, such as TDe - timestamp_offset: Timestamp offset configuration. - offset_type (string): Offset type, options: "relative", "absolute". - value (string/int): Offset value (relative) or starting timestamp (absolute): - - For "relative": string format `±[value][unit]` (e.g., "+1d3h" means add 1 day 3 hours), units: y (year), m (month), d (day), s (second). + - For "relative": string format `±[value][unit]` (e.g., "+1d3h30m" means add 1 day 3 hours 30 minutes), units: y (year), M (month, uppercase), d (day), h (hour), m (minute, lowercase), s (second). - For "absolute": int or string, either timestamp value (precision as per timestamp_precision) or ISO 8601 string ("YYYY-MM-DD HH:mm:ss"). - tbname: Table name generation configuration: - prefix (string): Table name prefix, default: "d". diff --git a/docs/zh/14-reference/02-tools/11-taosgen.md b/docs/zh/14-reference/02-tools/11-taosgen.md index 70afe5d7c833..d233268fa655 100644 --- a/docs/zh/14-reference/02-tools/11-taosgen.md +++ b/docs/zh/14-reference/02-tools/11-taosgen.md @@ -56,6 +56,8 @@ taosgen -h 127.0.0.1 -c config.yaml | -u/--user | 指定用于连接服务器的用户名,默认为 root | | -p/--password | 指定用于连接服务器的密码,默认值为 taosdata | | -c/--config-file | 指定 yaml 格式配置文件的路径 | +| -d/--log-dir | 指定日志输出目录,默认值为 ./log | +| -f/--log-file | 指定完整的日志文件路径(优先级高于 --log-dir) | | -?/--help | 显示帮助信息并退出| | -V/--version | 显示版本信息并退出,不能与其它参数混用 | @@ -166,10 +168,12 @@ taosgen -h 127.0.0.1 -c config.yaml - timestamp_offset:描述时间戳数值的偏移配置参数。 - offset_type(字符串):表示时间戳偏移类型,可选值为:"relative"、"absolute"。 - value(字符串或整型):表示时间戳的偏移量(relative)或起始时间戳(absolute): - - 时间戳偏移类型为 "relative" 时:字符串类型,格式为 ±[数值][单位] 组合(示例:"+1d3h" 表示加 1 天 3 小时),支持以下时间单位: + - 时间戳偏移类型为 "relative" 时:字符串类型,格式为 ±[数值][单位] 组合(示例:"+1d3h30m" 表示加 1 天 3 小时 30 分钟),支持以下时间单位: - y:年偏移量 - - m:月偏移量 + - M:月偏移量(大写) - d:天偏移量 + - h:小时偏移量 + - m:分钟偏移量(小写) - s:秒偏移量 - 时间戳偏移类型为 "absolute" 时:整型或字符串类型,格式如下: - 时间戳数值(精度由 timestamp_precision 参数决定)