Hello everybody!. I cannot find a solution for the following thing. I'm splitting a hostname that is composed by a "name", a "." and a "domain". I would like to get only the name.
I.e: lucas.google => lucas
I've read about the split function, which works good, but I cannot find a way to access the first element of the array after performing the split.
This is what I'm using:
mutate {
split => { "hostname_aux" => "." }
}
This gives me: lucas, google
I would like to get only lucas in that field.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.