Splunk Search

Datamodel tstats search and normal search result is not same

burakatabay
Path Finder

Hi,

I run two splunk search and results not come same.

In the first search is with tstats ;

timeprefix = yesterday

| tstats `summariesonly` count from datamodel=Authentication.Authentication where index=wineventlog Authentication.user=some_user

result is = 8990

In the second search ;

index=wineventlog  user=some_user tag=authentication NOT (action=success user=*$)| stats count

result is = 9000

 

Why datamodel and normal splunk search result is different ? 

Also ;

Datamodel accelaration status is %99 ? 

Could the problem be caused by this?

 

Thank you.

Labels (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The summariesonly option tells tstats to look only at events that are in the accelerated datamodel.  If the DMA is not complete then the results also will not be complete.

---
If this reply helps you, Karma would be appreciated.
0 Karma

burakatabay
Path Finder

My DMA is never been %100. it's generally %99.x . Why is this happening ? 

How ı find the problem ? 

0 Karma
Get Updates on the Splunk Community!

Exporting Splunk Apps

Join us on Monday, October 21 at 11 am PT | 2 pm ET!With the app export functionality, app developers and ...

Cisco Use Cases, ITSI Best Practices, and More New Articles from Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Build Your First SPL2 App!

Watch the recording now!.Do you want to SPL™, too? SPL2, Splunk's next-generation data search and preparation ...