Last week, we updated our n8n instance from version 0.223 to 1.15.2. Initially, everything seemed perfect, but today I encountered a peculiar issue. Typically, we send business event records to Splunk by using console.log() within a Code node (which then sends the output to the container’s stdout, and subsequently to Splunk).
However, post-upgrade, I’ve noticed that no records are appearing in Splunk, even though the workflows seem to be functioning normally without any errors. Does anyone have any insights or suggestions that could help us resolve this issue? Your assistance would be greatly appreciated. Thank you!
This was intentionally changed in 1.15.x because sending console.log output to stdout was never originally planned, was actually a bug and a potential compliance issue.
However, if you prefer to have this behavior, you can set CODE_ENABLE_STDOUT env variable to true.
@netroy Thank you so much! Is there any recommended way to send something to stdout from workflows? Or it is better to use other ways to log events from workflows?