Splunk Search

Removing duplicates

12onetwo
New Member

HI , i am new to splunk i need to create a report that has rest calls which has mulitple path parameters , so it was showing the multiple uris to make a status count on that
for example:
/t1/email/ksjdf@gmail.com
/t1/email/ksjdf@gmail.com/f1/12345
/t1/email/ytft@gmail.com
/t1/email/ytft@gmail.com/f1/123456

result should be like this :
/t1/email/
/t1/email/XXXX/f1/XXXX

how to remove the duplicates herer , i am not which command to use?..

Tags (1)
0 Karma

MuS
SplunkTrust
SplunkTrust

Hi 12onetwo,

given you have a field called path or uri you can use dedup on this field

base search goes here | dedup uri | stats count by uri

see the doce for more details http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/Dedup

Hope this helps ...

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...