Skip to content

Commit 114cd0e

Browse files
committed
Merge remote-tracking branch 'upstream/master' into emit-errors
2 parents 04d24d2 + 9518e7e commit 114cd0e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
var Writable = require('stream').Writable;
2-
var domain = require('domain');
32
var util = require('util');
43
var elasticsearch = require('elasticsearch');
54
var moment = require('moment');
@@ -29,7 +28,7 @@ function ElasticsearchStream (options) {
2928
this._client = options.client || new elasticsearch.Client(options);
3029
this._type = options.type || 'logs';
3130
var indexPattern = options.indexPattern || '[logstash-]YYYY.MM.DD';
32-
this._index = options.index || generateIndexName.bind(null, indexPattern);
31+
this._index = options.index || generateIndexName.bind(null, indexPattern);
3332
Writable.call(this, options);
3433
}
3534

@@ -41,9 +40,7 @@ ElasticsearchStream.prototype._write = function (entry, encoding, callback) {
4140
var index = this._index;
4241
var type = this._type;
4342

44-
var d = domain.create();
4543
entry = JSON.parse(entry.toString('utf8'));
46-
var env = process.env.NODE_ENV || 'development';
4744

4845
// Reassign these fields so them match what the default Kibana dashboard
4946
// expects to see.

0 commit comments

Comments
 (0)