I'm trying to make some visualizations using kibana, but the fields have any data.
I thought that if I fill up an index in dev ops using bulk, then I would be able to interact with the data using kibana. Here is the code I ran in dev ops:
PUT /log_consultas
{
"mappings": {
"properties": {
"@timestamp" : {"type": "date"},
"estado_consulta": { "type": "keyword" },
"servicio" : {"type": "keyword"},
"administrador": {"type": "keyword"},
"consultas_realizadas": {"type": "integer"}
}
}
}
PUT _index_template/template_1
{
"index_patterns": ["log_consultas*"],
"template": {
"mappings": {
"properties": {
"@timestamp": {
"type": "date"
},
"administrador": {
"type": "text"
},
"consultas_realizadas": {
"type": "integer"
},
"estado_consulta": {
"type": "text"
},
"servicio": {
"type": "text"
}
}
}
}
}
POST /log_consultas/_bulk
{"index":{"_index":"log_consultas","_id":1}}
{"@timestamp":"2010-05-15T22:00:54","estado_consulta":"consumo","servicio":"consulta","administrador":"Juan Carlos","consultas_realizadas":52}
{"index":{"_index":"log_consultas","_id":2}}
{"@timestamp":"2010-05-15T12:55:04","estado_consulta":"consumo","servicio":"modificacion","administrador":"Juan Lara","consultas_realizadas":10}
{"index":{"_index":"log_consultas","_id":3}}
{"@timestamp":"2010-05-15T14:56:48","estado_consulta":"consumo","servicio":"consulta","administrador":"Juan Lara","consultas_realizadas":20}
.... and so on
After this I created a new Data View call log_consultas
but then when I try to create visualizations in the dashboard this comes up
Can anyone help me? What I'm missing? Any suggestions would be great!