I'm sorry for yet another noob asking about this, but this topic is confusing me and i didn't find a good solution yet
I have been logging my public FTP server for a while now without problems, but recently added some nginx data to the same index (logstash-*).
Since I first tested in a separate database without any problems, i now added all data to the live index.
Problem:
There is a conflict with one of the fields. 'field:bytes' is stored as 'type:long' and in some cases as 'type:integer'
Expected result:
'type:integer' for all fields.
I guess i can do this with a PUT command, but i cannot seem to fully understand the right thing, and now i am scared of messing up my existing data. Could someone help me in the right direction ?
curl -X GET 'http://localhost:9200/logstash*/_mapping/nginx/field/bytes?pretty=true'
result:
"logstash-2015.10.30" : {
"mappings" : {
"nginx" : {
"bytes" : {
"full_name" : "bytes",
"mapping" : {
"bytes" : {
"type" : "long"
}
}
}
}
}
}