Below is my index template
post _template/sqldb_template
{
"template" : "sqldb-*",
"aliases" : {
"sqldb" : {}
},
"settings" : {
"index" : {
"number_of_shards" : 5,
"number_of_replicas" : 0
}
},
"mappings" : {
"sqldb_size" : {
"properties" : {
"date" : {
"type" : "date"
},
"server" : {
"type" : "keyword"
},
"database" : {
"type" : "keyword"
},
"logicalName" : {
"type" : "keyword"
},
"fieldType" : {
"type" : "keyword"
},
"usedSpace" : {
"type" : "long"
}
}
}
}
}
I can load data into it via this via standard curl commands. I can then see it in kibana dev tools using:
get sqldb_sqldb_size/_count
{
"count": 838,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
}
}
But if i run
I get:
get sqldb/sqldb_size
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "No endpoint or operation is available at [sqldb_size]"
}
],
"type": "illegal_argument_exception",
"reason": "No endpoint or operation is available at [sqldb_size]"
},
"status": 400
}
If i add the index to kibana index patterns (It finds the date field and shows up and looks good
But if i try and discover on it says no results found?!
Any idea whats happened?