Skip to content

Instantly share code, notes, and snippets.

@xeraa
Created May 30, 2019 02:13
Show Gist options
  • Save xeraa/353cec15dee031e2939e73b71dd725a9 to your computer and use it in GitHub Desktop.
Save xeraa/353cec15dee031e2939e73b71dd725a9 to your computer and use it in GitHub Desktop.
PUT _template/sample
{
"index_patterns": ["sample-*"],
"version": 27,
"settings": {
"index.refresh_interval": "5s",
"number_of_shards": 4,
"number_of_replicas": 1
},
"mappings": {
"properties": {
"@timestamp": { "type": "date" },
"@version": { "type": "keyword" },
"accounting_id": { "type": "keyword" },
"queued_requested": { "type": "float" },
"start": { "type": "date", "format": "epoch_second" },
"resource_list": {
"properties": {
"nodect": { "type": "integer" },
"walltime": { "type": "integer" }
}
}
}
}
}
PUT sample-01/_doc/1
{
"queued_requested": 3.5,
"resource_list": {
"nodect": 5,
"walltime": 20
}
}
GET sample-01/_mapping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment