converting 00:00:00.013 in to milliseconds
I used to dissect to get values and having trouble calculating the values
dissect {
mapping => {
"ExecuteTime" => %{hour}:%{minute}:%{second}.%{millisecond}"
}
}
if [hour] and [minute] and [second] and [millisecond] {
ruby {
code => "event.get['timeInSeconds'] = event.get['hour']*3600+event.get['minute']*60+event.get['second']+event.get['millisecond']/1000"
}
}
thanks in advance can you help me converting data in milliseconds