Splunk Search

Return daily unique field

zucler
Explorer

Hi guys,

As I understand, dedup command will filter the complete set of results and remove any duplicate fields.

What if I want it to remove daily duplicates only? In other words, I would like to have duplicates, if their events happened on different days.

Is this possible?

Thanks,
Max

Tags (2)
0 Karma

Ayn
Legend

Dedup based on day as well:

... | eval mday = strftime(_time,"%d") | dedup yourfirstfield mday
0 Karma

Ayn
Legend

Indeed it does the same. I'm confused regarding what behaviour you want. Could you show an example of desired vs undesired behaviour?

0 Karma

zucler
Explorer

The mday does the same as "|timechart span=1d count" would. However it still removes all of the duplicates. (does not save duplicates if they happen on different days)

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...