All Apps and Add-ons

[Splunk App for CEF] cefout does not forward data with stats command

sylim_splunk
Splunk Employee
Splunk Employee

We have a CEF output that isn't sending events via the cefout command. We can take the scheduled search and just remove the end with the |cefout and CEF events are generated.

<Datamodel search>
| stats ...
|cefout ...

For some unknown reason they don't get sent when the cefout command is included.

If we use only the first query before stats command, it works and sends events with the |cefout. Adding in the | stats and subsequent lines causes it to not send events.

Labels (1)
1 Solution

sylim_splunk
Splunk Employee
Splunk Employee

The behavior is expected and stats before cefout is not supported. The cefout command is supposed to work on the indexer layer , which is explained in the doc,  https://docs.splunk.com/Documentation/CEFapp/2.3.0/DeployCEFapp/Howtheappworks

 The reason is because the stats command is supposed to run on SH after prestats on indexers but cefout has to run on indexers -  putting stats before cefout causes the search results to pass back to the SH and never come back to indexers. When the search processing moves to the search head, it cannot move back to the indexer.

View solution in original post

sylim_splunk
Splunk Employee
Splunk Employee

The behavior is expected and stats before cefout is not supported. The cefout command is supposed to work on the indexer layer , which is explained in the doc,  https://docs.splunk.com/Documentation/CEFapp/2.3.0/DeployCEFapp/Howtheappworks

 The reason is because the stats command is supposed to run on SH after prestats on indexers but cefout has to run on indexers -  putting stats before cefout causes the search results to pass back to the SH and never come back to indexers. When the search processing moves to the search head, it cannot move back to the indexer.

Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...