1)
| makeresults
| eval puppy_name = "Scout Windixie Spot Spot"
| eval name_count = mvcount(mvdedup(split(puppy_name," ")))
2) it looks like a list in python, I'm not sure splunk has a function that converts a list string directly into a multi-valued field, I recommend parsing it first with a regular expression, like this:
| makeresults
| eval puppy_name ="['Scout', 'Windixie', 'Spot','Spot']"
| rex field=puppy_name "'(?P[^']+)'" max_match=0
| eval name_count = mvcount(mvdedup(name))
Hope that helps
... View more