Splunk 在当前毫秒内将提取的字段转换为 HH:MM:SS [英] Splunk convert extracted field in currently milliseconds to HH:MM:SS
本文介绍了Splunk 在当前毫秒内将提取的字段转换为 HH:MM:SS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谁能提供一种方法让 Splunk 将当前以毫秒为单位的提取字段转换为 HH:MM:SS?
can anyone provide me with a way to have Splunk convert an extracted field which is currently in milliseconds to HH:MM:SS?
推荐答案
...| fieldFormat inSeconds = tostring(inMS/1000,"duration)
其中 inMS 是提取字段的名称而 inSeconds 就是你想要的结果
where inMS is the name of the extracted field and inSeconds is the result you want
添加<代码>|fields - inMS 删除原始字段
这篇关于Splunk 在当前毫秒内将提取的字段转换为 HH:MM:SS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文