@spalger/kibana
Version:
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic
143 lines (141 loc) • 2.83 kB
JavaScript
var _ = require('lodash');
module.exports = {
'columns': [
{
'label': 'logstash: index',
'xAxisLabel': 'Top 5 extension',
'yAxisLabel': 'Count of documents',
'series': [
{
'values': [
{
'x': 'jpg',
'y': 110710
},
{
'x': 'css',
'y': 27376
},
{
'x': 'png',
'y': 16664
},
{
'x': 'gif',
'y': 11264
},
{
'x': 'php',
'y': 5448
}
]
}
],
'xAxisFormatter': function (val) {
if (_.isObject(val)) {
return JSON.stringify(val);
}
else if (val == null) {
return '';
}
else {
return '' + val;
}
},
'tooltipFormatter': function (d) {
return d;
}
},
{
'label': '2014.11.12: index',
'xAxisLabel': 'Top 5 extension',
'yAxisLabel': 'Count of documents',
'series': [
{
'values': [
{
'x': 'jpg',
'y': 110643
},
{
'x': 'css',
'y': 27350
},
{
'x': 'png',
'y': 16648
},
{
'x': 'gif',
'y': 11257
},
{
'x': 'php',
'y': 5440
}
]
}
],
'xAxisFormatter': function (val) {
if (_.isObject(val)) {
return JSON.stringify(val);
}
else if (val == null) {
return '';
}
else {
return '' + val;
}
},
'tooltipFormatter': function (d) {
return d;
}
},
{
'label': '2014.11.11: index',
'xAxisLabel': 'Top 5 extension',
'yAxisLabel': 'Count of documents',
'series': [
{
'values': [
{
'x': 'jpg',
'y': 67
},
{
'x': 'css',
'y': 26
},
{
'x': 'png',
'y': 16
},
{
'x': 'gif',
'y': 7
},
{
'x': 'php',
'y': 8
}
]
}
],
'xAxisFormatter': function (val) {
if (_.isObject(val)) {
return JSON.stringify(val);
}
else if (val == null) {
return '';
}
else {
return '' + val;
}
},
'tooltipFormatter': function (d) {
return d;
}
}
],
'hits': 171462
};