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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...