Splunk Search

Duplicate Results on Command-Line Query vice No Duplicates via UI

joemcmahon
Explorer

What would cause a command line query ( bin/splunk search "..." ) to return duplicate results over what the UI would return?

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Please explain what you mean by "duplicate" results, and what is your search, does this happen for just one search or all searches, does it happen for all timeframes or just certain ones?

0 Karma

joemcmahon
Explorer

Simple query, actually.

index=ourindex earliest=epoch1 latest=epoch2

Command line query returns 16 events, same query in UI returns 8 events. The 16 events have 8 duplicates.

Running 9.1.1 Splunk Enterprise. Search head cluster.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Do you get the same results when running the command line on all nodes in the cluster? How many nodes do you have?

0 Karma

joemcmahon
Explorer

We have a 4 search head (SH) cluster. 

I just found that, when running the command line query from each SH in the cluster,  it gives me the right number of events. 

When running that same command line query from a standalone SH, I get the duplicate results.  For example, from the Monitoring Console SH, the command line query gives me the duplicate results.

Same search peers in both cases.

0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...