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™: 7.0.8, 7.0.11, 7.0.13, 7.1.3, 7.1.6, 7.2.3, 7.2.4, 7.2.6, 7.2.7, 7.2.8, 7.2.9, 8.0.0, 8.0.1, 8.0.2001