mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
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');
|
var _ = require('lodash');
|
||||||
_.mixin(require('lodash-deep'));
|
|
||||||
var moment = require('moment');
|
var moment = require('moment');
|
||||||
var client = require('./client');
|
var client = require('./client');
|
||||||
|
|
||||||
@ -21,7 +20,7 @@ module.exports = function (fixture) {
|
|||||||
var index = workingDate.format(indexPattern);
|
var index = workingDate.format(indexPattern);
|
||||||
var entry = { '@timestamp': workingDate.toISOString() };
|
var entry = { '@timestamp': workingDate.toISOString() };
|
||||||
row.forEach(function (val, index) {
|
row.forEach(function (val, index) {
|
||||||
_.deepSet(entry, fields[index], val);
|
_.set(entry, fields[index], val);
|
||||||
});
|
});
|
||||||
|
|
||||||
indices.push(index);
|
indices.push(index);
|
||||||
@ -40,7 +39,7 @@ module.exports = function (fixture) {
|
|||||||
var index = moment.utc(row[dateField]).format(indexPattern);
|
var index = moment.utc(row[dateField]).format(indexPattern);
|
||||||
var entry = {};
|
var entry = {};
|
||||||
_.each(row, function (val, key) {
|
_.each(row, function (val, key) {
|
||||||
_.deepSet(entry, key, val);
|
_.set(entry, key, val);
|
||||||
});
|
});
|
||||||
indices.push(index);
|
indices.push(index);
|
||||||
body.push({
|
body.push({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user