How do I turn logging off for Elasticsearch in Node.js?
var client = new elasticsearch.Client({
log : [{
type: 'stdio',
levels: ['error', 'warning'] // change these options
}]
});
So if you just wanted errors showing up it would be.
var client = new elasticsearch.Client({
log : [{
type: 'stdio',
levels: ['error'] // change these options
}]
});
More can be found on config page. Different logging levels are found here (old link dead).
UPDATE: ES 7.x - logging has been removed: Breaking changes, Observability