Hi guys , here I am learning elk.
I managed to:
1 Create an index.
PUT /dhcp_leases
{
"settings": {
"number_of_shards": 1
},
"mappings": {
"properties": {
"router": { "type": "text" },
"current_leases": { "type": "integer" },
"new_leases": { "type": "integer" }
}
}
}
2 Index some documents using api from external server.
POST /dhcp_leases/_doc/
{
"router": "lujan",
"current_leases": "2323",
"new_leases": "2437"
}
I can view indexed docs doing:
GET dhcp_leases/_doc/ioOTnHQBgD6znyfFeQq9
GET dhcp_leases/_search
{
"query": {
"match_all": {}
}
}
I have following questions:
How can I set an autoincremental integer id (similar to sql) ?
Why can not see anything at discovery section on kibana? should I add a date field ?
I think the idea here is to filter by index ... this is what Ive tryed.
I would like to create a graph with those values on kibana ... im in the right way ?
Regards.
Leandro.