Skip to content

Instantly share code, notes, and snippets.

@markwalkom
Created November 10, 2017 10:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save markwalkom/4f1c3dbfba74eb6fcca53aa8cd3e1ddb to your computer and use it in GitHub Desktop.
Save markwalkom/4f1c3dbfba74eb6fcca53aa8cd3e1ddb to your computer and use it in GitHub Desktop.
Custom Kibana Regionmap with sample data
# 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"
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