TSVB
kibanaSavedObjectMeta.searchSourceJSON:
{
"query": {
"language": "kuery",
"query": ""
},
"filter": []
}
visState:
{
"title": "Logs and Games count (tsvb)",
"type": "metrics",
"params": {
"axis_formatter": "number",
"axis_position": "left",
"axis_scale": "normal",
"bar_color_rules": [
{
"id": "c1cab2a0-fa5d-11e9-85ba-d169479d97b3"
}
],
"default_index_pattern": "spell_data",
"default_timefield": "room_created_at",
"id": "61ca57f0-469d-11e7-af02-69e470af7417",
"index_pattern": "*",
"interval": "1d",
"series": [
{
"axis_position": "right",
"chart_type": "line",
"color": "rgba(0,156,224,1)",
"fill": 0.5,
"formatter": "number",
"id": "61ca57f1-469d-11e7-af02-69e470af7417",
"label": "Users logged",
"line_width": "3",
"metrics": [
{
"field": "player_id",
"id": "61ca57f2-469d-11e7-af02-69e470af7417",
"type": "count"
}
],
"point_size": "3",
"separate_axis": 0,
"split_mode": "everything",
"stacked": "none",
"filter": {
"query": "_index : \"session_data\"",
"language": "kuery"
},
"override_index_pattern": 1,
"hidden": false,
"split_filters": [
{
"color": "#68BC00",
"id": "4527ee40-fa60-11e9-bcf9-473e4d23d228",
"filter": {
"query": "",
"language": "kuery"
}
}
],
"terms_field": null,
"offset_time": "1d",
"hide_in_legend": 0,
"series_index_pattern": "session_data",
"series_time_field": "start_at",
"series_interval": "1d",
"split_color_mode": "rainbow"
},
{
"axis_position": "right",
"chart_type": "line",
"color": "rgba(0,188,14,1)",
"fill": 0.5,
"formatter": "number",
"id": "acbf6fd0-fc93-11e9-9829-1b08b89c56c2",
"label": "Users Played",
"line_width": "3",
"metrics": [
{
"field": null,
"id": "acbf6fd1-fc93-11e9-9829-1b08b89c56c2",
"type": "count"
}
],
"point_size": "3",
"separate_axis": 0,
"split_mode": "everything",
"stacked": "none",
"filter": {
"query": "_index : \"gameplay_stat\"",
"language": "kuery"
},
"override_index_pattern": 1,
"hidden": false,
"split_filters": [
{
"color": "#68BC00",
"id": "4527ee40-fa60-11e9-bcf9-473e4d23d228",
"filter": {
"query": "",
"language": "kuery"
}
}
],
"series_index_pattern": "gameplay_stat",
"series_time_field": null,
"series_interval": "1d",
"split_color_mode": "rainbow"
}
],
"show_grid": 1,
"show_legend": 1,
"time_field": null,
"type": "timeseries",
"filter": {
"query": "",
"language": "kuery"
},
"drop_last_bucket": 0,
"background_color_rules": [
{
"id": "ca7b22f0-fa61-11e9-bcf9-473e4d23d228"
}
],
"gauge_color_rules": [
{
"id": "cf84f640-fa61-11e9-bcf9-473e4d23d228"
}
],
"gauge_width": 10,
"gauge_inner_width": 10,
"gauge_style": "half",
"annotations": [
{
"fields": "",
"template": "",
"index_pattern": "*",
"query_string": {
"query": "",
"language": "kuery"
},
"id": "b1fbbd70-fc96-11e9-9829-1b08b89c56c2",
"color": "#F00",
"icon": "fa-tag",
"ignore_global_filters": 1,
"ignore_panel_filters": 1
}
]
},
"aggs": []
}
Timelion
visState:
{
"title": "Logs and Games count",
"type": "timelion",
"params": {
"expression": ".es(timefield='start_at', index=session_data, metric='count:player_id').label('Players Logged').color(#138BFB), .es(timefield='room_created_at', index=gameplay_stat, metric='count:player_id').label('Games Played').lines(fill=2).color(#21FB13).legend(position=ne)",
"interval": "1d"
},
"aggs": []
}