Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Combine rows with overlapping MV values

$
0
0
I have data from a couple different sources that I am trying to combine together into coherent results. The issue I am running into is that sometimes the data does not line up perfectly. Both data sources will report on a user and try to list all their email aliases but sometimes they are incomplete lists and only partially overlap. So we end up with multiple rows that represent the same user but and have most of the same values for the email field, but because they are not **exactly** the same, when I try to group by email address it doesn't work out how I would hope. I included some example SPL below to illustrate what the data looks like. There are also some other fields in results, but those cannot be used for merging results either as the email address of the user is the only field that is in both data sets. | makeresults | eval email =split("1@example.com,2@example.com;2@example.com,3@example.com;4@example.com;5@example.com", ";") | mvexpand email | eval email=split(email, ",") | streamstats count as orig_row ![alt text][1] So I am wondering if there is any way to combine rows #1 and 2 in the example results while leaving rows 3 and 4 intact? Thanks! [1]: /storage/temp/282602-capture.png

Viewing all articles
Browse latest Browse all 47296

Trending Articles