Splunk Search

How to filter duplicate KV entries?

RHogg
Engager

Hi guys,

I was wondering if someone could point me in the right direction with an issue I've been having.

Basically I have a search thats set to pull usernames from a KV lookup, the issue is theres "duplicate" entries in the lookup e.g.
Username and Username@email

Is there any way to stop the duplicate users from appearing in the search results? I seem to be at a bit of a dead end.

Thanks

Tags (3)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Those are not duplicates. If you want to filter out similar results then you need to modify your search to normalize the data. For example:

... | eval username = replace(username, "@.*", "")
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Those are not duplicates. If you want to filter out similar results then you need to modify your search to normalize the data. For example:

... | eval username = replace(username, "@.*", "")
---
If this reply helps you, Karma would be appreciated.

RHogg
Engager

Just what I needed Rich, thanks very much! 🙂

0 Karma
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...