Splunk Search

What exactly does dedup_splitvals do?

vrulev_algn
Loves-to-Learn

Hi,

I can't grasp the concept of dedup_splitvals. I was writing search for a pie chart on my dashboard, something like this:

index=* ... | stats count by field1, field2, field3

It returns a table, let's say it looks like this:

field1field2field3count
ab 8
ac 4
  d150
  e25

 

When I click on first row, I see only 2 events, while the count in stats says 8. This was driving me crazy for hours.

I've stumbled upon dedup_splitvals in documentation and decided to add it to my stats command:

index=* ... | stats count by field1, field2, field3 dedup_splitvals=true

And it worked like a charm! Counts in the table are now equal to the number of events in the search. But I still don't understand what's going on.

Documentation says:
Syntax: dedup_splitvals=<boolean>
Description: Specifies whether to remove duplicate values in multivalued BY clause fields.

What does this mean? What kind of duplicate values? Can anyone explain this?

Labels (2)
Tags (1)
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!

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...

Upgrade Prep for 10.4, Network Observability Deep Dives, and More from Splunk Lantern

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...

Splunk Developer Day announcements: AI agents, MCP tools, Forecasting, and Custom ...

Splunk Developer Day was packed with product and platform updates for developers building in the AI ...