[DOCS] Update ML tutorial with latest sample data (elastic/x-pack-elasticsearch#1258)

* [DOCS] Updated mappings in ML sample data

* [DOCS] Update ML tutorial with latest sample data

Original commit: elastic/x-pack-elasticsearch@37fd75aed5
This commit is contained in:
Lisa Cawley 2017-04-28 12:29:25 -07:00 committed by lcawley
parent c4be95ae31
commit d77f20b14e
1 changed files with 37 additions and 51 deletions

View File

@ -143,23 +143,22 @@ Each document in the server-metrics data set has the following schema:
[source,js]
----------------------------------
{
"index":
{
"_index":"server-metrics",
"_type":"metric",
"_id":"AVuQL1eekrHQ5a9V5qre"
"_id":"1177"
}
}
{
"deny":1783,
"service":"app_0",
"@timestamp":"2017-03-26T06:47:28.684926",
"accept":24465,
"host":"server_1",
"total":26248,
"response":1.8242486553275024
"@timestamp":"2017-03-23T13:00:00",
"accept":36320,
"deny":4156,
"host":"server_2",
"response":2.4558210155,
"service":"app_3",
"total":40476
}
----------------------------------
@ -212,25 +211,13 @@ http://localhost:9200/server-metrics -d '{
"type":"long"
},
"host":{
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
"type":"keyword"
},
"response":{
"type":"float"
},
"service":{
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
"type":"keyword"
},
"total":{
"type":"long"
@ -238,7 +225,6 @@ http://localhost:9200/server-metrics -d '{
}
}
}
}
}'
----------------------------------