Hello, I am trying to do the following:
If the field mymessage contains My string, create another field called seconds and put there the bolded value of my timestamp - November 15th 2015, 08:42:29.779. In other words I would like this to result in seconds=29.779 which is taken from the timestamp of the event, but unfortunately this puts value of %{SECOND}
if [mymessage] =~ /^My string/ {
mutate {
add_field => [ "seconds", "%{SECOND}" ]
}
.....
}
What am I doing wrong?