I am new to Splunk but am loving what it can do with it! We use Splunk to track user activity on our webapp. It looks in the logs and extracts my users into the field 'USERNAME'. However, I have one user who uses multiple logins that are almost the same:
This is the same person, only spelled with case & punctuation five different ways. How can I merge these field values into one entry (lets say, Sandra Chin) with any/all appropriate totals accounted for? (logins, downloads, etc...) When correct, Sandra's single entry should read like this:
And sort within the overall users count list like this:
Would anyone know how I might accomplish this? Thanks in advance!
I later on found this answer:
http://answers.splunk.com/answers/61646/combining-multivalues-together-inside-a-field
However, I'm having trouble combining 'Sandra' and 'sandra' because of the case difference.
That did the trick! Thank you.
Try setting all of the field values to lower case before you combine them:
| eval USERNAME=lower(USERNAME)
That should eliminate any case problems.
I later on found this answer:
http://answers.splunk.com/answers/61646/combining-multivalues-together-inside-a-field
However, I'm having trouble combining 'Sandra' and 'sandra' because of the case difference.
per lukejadamec, adding: ... | eval USERNAME=lower(USERNAME) worked nicely.