Created
November 10, 2017 10:08
-
-
Save markwalkom/4f1c3dbfba74eb6fcca53aa8cd3e1ddb to your computer and use it in GitHub Desktop.
Custom Kibana Regionmap with sample data
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
# Custom Region Maps | |
regionmap: | |
layers: | |
- name: "Australian States" | |
url: "http://localhost:8000/aus_state.geojson" | |
attribution: "exploratory.io" | |
fields: | |
- name: "STATE_NAME" | |
description: "State Name" |
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
PUT aussiestates | |
{ | |
"settings": { | |
"number_of_shards": 1, | |
"number_of_replicas": 0 | |
}, | |
"mappings": { | |
"doc": { | |
"properties": { | |
"Name": { | |
"type": "keyword" | |
}, | |
"Population": { | |
"type": "integer" | |
} | |
} | |
} | |
} | |
} | |
PUT aussiestates/doc/nsw | |
{ | |
"Name": "New South Wales", | |
"Population": 7757800 | |
} | |
PUT aussiestates/doc/vic | |
{ | |
"Name": "Victoria", | |
"Population": 6039100 | |
} | |
PUT aussiestates/doc/qld | |
{ | |
"Name": "Queensland", | |
"Population": 4860400 | |
} | |
PUT aussiestates/doc/wa | |
{ | |
"Name": "Western Australia", | |
"Population": 2632200 | |
} | |
PUT aussiestates/doc/sa | |
{ | |
"Name": "South Australia", | |
"Population": 1710800 | |
} | |
PUT aussiestates/doc/tassie | |
{ | |
"Name": "Tasmania", | |
"Population": 519800 | |
} | |
PUT aussiestates/doc/act | |
{ | |
"Name": "Australian Capital Territory", | |
"Population": 398300 | |
} | |
PUT aussiestates/doc/nt | |
{ | |
"Name": "Northern Territory", | |
"Population": 245700 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment