Is possible to print debug message in Filebeat Script Processor

I am using Filebeat to index log file and want to drop duplicated messages in the log file. So I write a JS script and load it with the Script Processor. Now I want to report the duplication in the filebeat log. Add some llines like "console.debug('duplication found')" in the JS file. But I cannot find any document saying I can do this.

An alternative is using Event API to add debugMsg field in event, and drop it later by drop_field processor, But I cannot find any document saying that can only configure the drop_field process to print debug log.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.