Hi,
I'm trying to achieve simple [username] field character cheks.
If [username] field NOT consists of [A-Za-z] then add new field. For example, if [username] equals foo.foo then write it into separate field.
I can't figure out why the code below in my case not working:
if [username] !~ /^[A-Za-z]+/ {
mutate { add_field => { "username_invalid" => "%{username}" } }
}
Thanks in advance for the hint.
logstash 7.9