Files
geedge-jira/md/OMPUB-999.md
2025-09-14 21:52:36 +00:00

7.7 KiB
Raw Blame History

亦庄POC环境百分点希望将日志中的时间精度调整为毫秒格式

ID Creation Date Assignee Status
OMPUB-999 2023-08-11T10:33:44.000+0800 窦凤虎 完成

亦庄P-19 POC环境与百分点调试过程中他们希望将日志中的时间精度调整为毫秒格式doufenghu commented on 2023-08-16T15:27:47.349+0800:

统一时间精度为毫秒方案:

  • 建议方案增加一列“_ms”存储毫秒数据。 ** 优点:字段类型无需改动(int64)计算更高效。现场环境TTL留存周期过后可启用毫秒精度字段。 ** 缺点:冗余存储,扩展性不够好。
  • 其它方案,{}非主键列{}由int64调整为浮点数float64 ** 优点:直接兼容秒与毫秒,可扩展性好。 ** 缺点查询性能和数据压缩比不高时间函数转换较复杂在原有环境E21修改数据类型效率低IO会在数天占用100%。

其它事项:

  • 查询接口,需要更改为毫秒时间函数。
  • Receive Time 为数据库主键,需要特殊考虑,无法直接更改。

doufenghu commented on 2023-08-29T11:23:09.489+0800:

结论原有时间字段新增一列X_timestamp_ms, 数据类型为Datatime64(3) 存储毫秒级Unix Timestamp。例如

  • 命名common_recv_timestamp_ms , common_start_timestamp_ms .... 
  • Unix Timestamp基于函数转换1693278926187
  • 字符串日期格式基于函数转换2019-09-16 19:20:12.345

doufenghu commented on 2023-09-11T17:50:12.263+0800:

Firewall 支持增加毫秒级别会话时间戳 common_start_timestamp_ms common_end_timestamp_ms 。[~yangwei] 


doufenghu commented on 2023-09-25T11:02:33.547+0800:

因P19 NFS PoC需要在23.07 增加该功能TSG在 23.10 展示。


gitlab commented on 2023-09-27T09:43:14.081+0800:

[刘学利|https://git.mesalab.cn/liuxueli] mentioned this issue in [a commit|19656a626a] of [TSG Appliance / tsg_master|https://git.mesalab.cn/tango/tsg_master] on branch [feature-add-timestamp-ms-OMPUB-999|https://git.mesalab.cn/tango/tsg_master/-/tree/feature-add-timestamp-ms-OMPUB-999]:{quote}OMPUB-999: 功能端输出common_start_timestamp_mscommon_end_timestamp_ms日志字段{quote}


gitlab commented on 2023-09-27T19:16:11.722+0800:

[刘学利|https://git.mesalab.cn/liuxueli] mentioned this issue in [a merge request|https://git.mesalab.cn/tango/tsg_master/-/merge_requests/409] of [TSG Appliance / tsg_master|https://git.mesalab.cn/tango/tsg_master] on branch [feature-add-timestamp-ms-OMPUB-999|https://git.mesalab.cn/tango/tsg_master/-/tree/feature-add-timestamp-ms-OMPUB-999]:{quote}Resolve OMPUB-999 "Feature add timestamp ms "{quote}


gitlab commented on 2023-09-27T20:09:09.223+0800:

[刘学利|https://git.mesalab.cn/liuxueli] mentioned this issue in [a commit|591aed729e] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [update-v23.07-firewall-v11|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/update-v23.07-firewall-v11]:{quote}更新sapp、tsg_master支持:{quote}


gitlab commented on 2023-09-27T20:09:44.654+0800:

[刘学利|https://git.mesalab.cn/liuxueli] mentioned this issue in [a merge request|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/merge_requests/1786] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [update-v23.07-firewall-v11|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/update-v23.07-firewall-v11]:{quote}更新sapp、tsg_master支持:{quote}


gitlab commented on 2023-10-11T18:23:05.896+0800:

[刘学利|https://git.mesalab.cn/liuxueli] mentioned this issue in [a commit|bda5dcebff] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [update-v23.07-tsg_master|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/update-v23.07-tsg_master]:{quote}更新tsg_master, 支持:{quote}


gitlab commented on 2023-10-11T18:23:32.057+0800:

[刘学利|https://git.mesalab.cn/liuxueli] mentioned this issue in [a merge request|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/merge_requests/1817] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [update-v23.07-tsg_master|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/update-v23.07-tsg_master]:{quote}更新tsg_master, 支持:{quote}


gitlab commented on 2023-10-12T09:59:35.046+0800:

[付明卫|https://git.mesalab.cn/fumingwei] mentioned this issue in [a commit|5850781fb1] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [update-v23.07-tsg_master|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/update-v23.07-tsg_master]:{quote}更新tsg_master, 支持:{quote}


gitlab commented on 2023-10-13T12:58:16.909+0800:

[刘学利|https://git.mesalab.cn/liuxueli] mentioned this issue in [a commit|34834d1a67] of [TSG Appliance / tsg_master|https://git.mesalab.cn/tango/tsg_master] on branch [feature-add-timestamp-ms-OMPUB-999-2|https://git.mesalab.cn/tango/tsg_master/-/tree/feature-add-timestamp-ms-OMPUB-999-2]:{quote}OMPUB-999: 功能端输出common_start_timestamp_mscommon_end_timestamp_ms日志字段{quote}


gitlab commented on 2023-10-13T13:04:07.643+0800:

[刘学利|https://git.mesalab.cn/liuxueli] mentioned this issue in [a merge request|https://git.mesalab.cn/tango/tsg_master/-/merge_requests/415] of [TSG Appliance / tsg_master|https://git.mesalab.cn/tango/tsg_master] on branch [feature-add-timestamp-ms-OMPUB-999-2|https://git.mesalab.cn/tango/tsg_master/-/tree/feature-add-timestamp-ms-OMPUB-999-2]:{quote}OMPUB-999: 功能端输出common_start_timestamp_mscommon_end_timestamp_ms日志字段{quote}


gitlab commented on 2023-10-13T17:05:27.945+0800:

[刘学利|https://git.mesalab.cn/liuxueli] mentioned this issue in [a commit|ad4293bc41] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [update-v23.10-firewall-v2|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/update-v23.10-firewall-v2]:{quote}更新sapp、tsg_master、libosfp, 支持:{quote}


gitlab commented on 2023-10-13T17:05:55.458+0800:

[刘学利|https://git.mesalab.cn/liuxueli] mentioned this issue in [a merge request|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/merge_requests/1827] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [update-v23.10-firewall-v2|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/update-v23.10-firewall-v2]:{quote}更新sapp、tsg_master、libosfp, 支持:{quote}


gitlab commented on 2023-10-13T17:24:05.636+0800:

[付明卫|https://git.mesalab.cn/fumingwei] mentioned this issue in [a commit|3b3d202cc6] of [TSG / tsg-os-buildimage|https://git.mesalab.cn/tsg/tsg-os-buildimage] on branch [update-v23.10-firewall-v2|https://git.mesalab.cn/tsg/tsg-os-buildimage/-/tree/update-v23.10-firewall-v2]:{quote}更新sapp、tsg_master、libosfp, 支持:{quote}


doufenghu commented on 2023-10-23T13:14:03.203+0800:

v23.07 会话开始和结束时间支持毫秒级时间戳字段存储。v23.10 支持在TSG 界面展示。


Attachments