I am having issue finding a way to standardize email for a query that will make the output "First Last" to a new field. there are mainly two email types in "
[email protected]" or "
[email protected]" The first works for "
[email protected]": | makeresults | eval name="
[email protected]" | rex field=name "^(?<Name>[^@]+)" | eval tmp=split(Name,".") | eval tmp2=split(Name,".") | eval FullName=mvindex(tmp,0) | eval FName=mvindex(tmp2,2) | table FullName FName | eval newName=mvappend(FullName,FName) | eval FN=mvjoin(newName, " ") | table FN And this for "
[email protected]" | makeresults | eval name="
[email protected]" | rex field=name "^(?<Name>[^@]+)" | eval tmp=split(Name,".") | eval FullName=mvindex(tmp,0,1) | eval FN=mvjoin(FullName, " ") | table FN Any recommendations of how to accomplish getting an output of "First Last" to one field for both email types?
... View more