uniq command works as a filter on the search results that you pass into it. This command removes any search result if that result is an exact duplicate of the previous result. This command does not take any arguments.
Note: We do not recommend running this command against a large dataset.
Keep only unique results from all web traffic in the past hour.
eventtype=webtraffic earliest=-1h@s | uniq
Have questions? Visit Splunk Answers and see what questions and answers the Splunk community has using the uniq command.
This documentation applies to the following versions of Splunk Cloud™: 6.6.3, 7.0.2, 7.0.0, 7.0.3, 7.0.5, 7.0.8, 7.1.3, 7.1.6, 7.2.3, 7.2.4