Re: How to emit console.log output when using javascript-lang for custom scripts?

2015-01-16 Thread vineeth mohan
Hello Tim , Its very much possible from groovy , by accessing the Elasticsearch logger instance. You should be able to do something similar for javascript too. Some good folks from Elasticsearch has given a good documentation on it against my issue. *import org.elasticsearch.common.logging.*; *

How to emit console.log output when using javascript-lang for custom scripts?

2014-12-23 Thread Tim Heckel
Hi all -- I'd like to emit to stdout information within my custom .js script (located in /elasticsearch/1.4.2/config/scripts/test.js). I've tried both console.log and print (just a guess), but neither work: "error": "ElasticsearchIllegalArgumentException[failed to execute script]; nested: EcmaE