Splunk convert extracted field in currently milliseconds to HH:MM:SS

牧云@^-^@ 提交于 2019-12-25 04:07:12

问题


can anyone provide me with a way to have Splunk convert an extracted field which is currently in milliseconds to HH:MM:SS?


回答1:


...| fieldFormat inSeconds = tostring(inMS/1000,"duration)

where inMS is the name of the extracted field and inSeconds is the result you want

add | fields - inMS to remove the original field



来源:https://stackoverflow.com/questions/9828540/splunk-convert-extracted-field-in-currently-milliseconds-to-hhmmss

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!