Splunk Search

Splunk Duplicate query in a table

kowsi_ksk
New Member

HI ,

Need some help on removing the duplicates from table.  Am querying the accounts which uses the plain port connection as LDAP for particular timestamp. 

My query :

index=***  host=host1 OR host=host2 source=logpath | transaction startswith=protocol=LDAP | search BIND REQ NOT "protocol=LDAPS" NOT  | dedup "uid"

If i uses the above query in a table am getting two values in a row and again for other timestamp the same value got repeated even though am using dedup .  I have tried consecutive=true. In the UID column am seeing duplicates still.

results came like this:

timestampuid
2023-12-12T05:44:23.000-05:00
 abc
xyz
2023-12-12T05:45:20.000-05:00

abc

efg

123

2023-12-12T05:45:20.000-05:00

xyz

456

efg

 

I need each value in single row and no duplicates should displayed. Help will much appreciated!!!

 

Tags (3)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try something like this

| stats count by timestamp, uid
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...