This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
$schema: https://vega.github.io/schema/vega/v3.json | |
padding: 10 | |
config: { | |
kibana: {tooltips: false} | |
} | |
signals: [ | |
{ | |
name: rotation | |
value: 65 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega/v4.json", | |
"width": 200, | |
"height": 200, | |
"padding": 5, | |
"marks": [ | |
{ | |
"type": "image", | |
"encode": { | |
"enter": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
$schema: https://vega.github.io/schema/vega/v3.0.json | |
config: { | |
kibana: {type: "map", latitude: 25, longitude: -70, zoom: 3} | |
} | |
data: [ | |
{ | |
name: table | |
url: { | |
index: kibana_sample_data_flights |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
$schema: https://vega.github.io/schema/vega/v3.json | |
data: [ | |
{ | |
name: esdata | |
url: { | |
%context%: true | |
%timefield%: @timestamp | |
index: logstash-* | |
body: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copied from https://vega.github.io/vega/examples/earthquakes/ | |
{ | |
"$schema": "https://vega.github.io/schema/vega/v3.json", | |
"signals": [ | |
{"name": "quakeSize", "value": 6}, | |
{ | |
"name": "rotate0", | |
"value": 90, | |
"bind": {"input": "range", "min": -180, "max": 180} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
$schema: https://vega.github.io/schema/vega-lite/v2.json | |
data: { | |
url: { | |
index: logstash-* | |
%context%: true | |
%timefield%: @timestamp | |
body: { | |
size: 0 | |
aggs: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
$schema: https://vega.github.io/schema/vega-lite/v2.json | |
data: { | |
// Get 10000 documents from ES | |
url: { | |
%context%: true | |
%timefield%: @timestamp | |
index: logstash-* | |
body: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega/v3.0.json", | |
"data": [ | |
{ | |
"name": "data", | |
"values": { | |
"aggregations": { | |
"pairs": { | |
"buckets": [ | |
{"key": "aa:cc", "doc_count": 10}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
?id | |
# remove possible duplicates | |
(SAMPLE(?iso_3166_2) as ?iso_3166_2) | |
(SAMPLE(?insee_fr) as ?insee_fr) | |
(SAMPLE(?flagImg) as ?flagImg) | |
# all of the official languages in the European Union | |
(SAMPLE(?label_bg) as ?label_bg) | |
(SAMPLE(?label_cs) as ?label_cs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use group-by to ensure only a single ID is present (otherwise the geo service will error) | |
SELECT | |
?id | |
(SAMPLE(?label_en) as ?label_en) | |
(SAMPLE(?label_zh) as ?label_zh) | |
(SAMPLE(?label_fr) as ?label_fr) | |
(SAMPLE(?label_de) as ?label_de) | |
(SAMPLE(?iso_3166_2) as ?iso_3166_2) | |
(SAMPLE(?insee_fr) as ?insee_fr) |