Heh. Glad it worked out for you. I assume that code is somewhere in the splunk soup version?
By the way, that code is equivalent to...
| eval mac3=coalesce(mac,macAddress)
With only one field value in question, the if(isnull(A),B,A) is almost as easy to read as coalesce(A,B) , but as soon as you get a third potential place to go for non-null data, coalesce is much cleaner code.
Please accept an answer so that readers will know your issue is handled.
It's okay to accept your own, but if you do, please make sure to explain what part of your question that answer is the answer to, since a single line of code is not very specific.
... View more