Hello
I have a field from a csv file called email, this field contains a string like this: mailtio:user@domain.tld
I'm trying to remove "mailto:" as first step, then, copying field to a temp. one split the result into two new fields "user" and "provider"
An approach to reach this is something like:
mutate {copy => { "email" => "email_tmp" }}
mutate{
split => {"email_tmp" => "@"}
add_field => ["user", "%{[email_tmp][0]}"]
add_field => ["provider","%{[email_tmp[1]}"]
}
But its not working and I have no clue why (yes, I'm using verbose to see the logs, no luck).
What m ' doing wrong?
Thanks in advance.