Splunk Enterprise Security

Error in TsidxStats append is only valid for pre stats mode

mcronkrite
Splunk Employee
Splunk Employee

In Enterprise Security 3 on Splunk 6, have Websense data that has been tagged "web" and "proxy." Under Security Domains, Network, Web Center, the panels all come up except the bottom two. Top Sources and Top Destinations. The error displayed says "Error in TsidxStats': append is only valid for prestats mode. When I open either search I get the same message. When I pare the search down to not have the tstats append=true it runs fin. So I know the data model is populating. After searching for missing extractions I only have unknowns for status, http_content_type, http_refferer, and user. A fresh install of ES with event gen does not have the error.

1 Solution

mcronkrite
Splunk Employee
Splunk Employee

Turns out the underlying search is wrong, you need to modify the search to add "prestats=true" in front of the "append=true" command. Works now.

View solution in original post

0 Karma

hazekamp
Builder

mcronkrite,

Both the "Top Source" and "Top Destinations" panels on Web Center use the "| tstats" macro. This macro specifies prestats=true.

[tstats]
definition = tstats prestats=true local=`tstats_local` `summariesonly`

Since you mention that a fresh install doesn't have this error, do you by chance have a local override in place or Splunk_TA_opsec installed? If so, would recommend removing these from Splunk_TA_opsec/default/macros.conf because they are overriding the proper ones in SA-Utils:

[tstats]
definition = tstats local=`tstats_local` `summariesonly`

[tstats_local]
definition = false

[summariesonly]
definition = summariesonly=`summariesonly_bool`

[summariesonly_bool]
definition = true

mcronkrite
Splunk Employee
Splunk Employee

Turns out the underlying search is wrong, you need to modify the search to add "prestats=true" in front of the "append=true" command. Works now.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...