Movign to the new Kibana
Original commit: elastic/x-pack-elasticsearch@a943185e94
This commit is contained in:
parent
a5b91ff780
commit
86ebd14587
|
@ -1,5 +1,4 @@
|
|||
var _ = require('lodash');
|
||||
_.mixin(require('lodash-deep'));
|
||||
var moment = require('moment');
|
||||
var client = require('./client');
|
||||
|
||||
|
@ -21,7 +20,7 @@ module.exports = function (fixture) {
|
|||
var index = workingDate.format(indexPattern);
|
||||
var entry = { '@timestamp': workingDate.toISOString() };
|
||||
row.forEach(function (val, index) {
|
||||
_.deepSet(entry, fields[index], val);
|
||||
_.set(entry, fields[index], val);
|
||||
});
|
||||
|
||||
indices.push(index);
|
||||
|
@ -40,7 +39,7 @@ module.exports = function (fixture) {
|
|||
var index = moment.utc(row[dateField]).format(indexPattern);
|
||||
var entry = {};
|
||||
_.each(row, function (val, key) {
|
||||
_.deepSet(entry, key, val);
|
||||
_.set(entry, key, val);
|
||||
});
|
||||
indices.push(index);
|
||||
body.push({
|
||||
|
|
Loading…
Reference in New Issue