Hi all,
I have a problem when I try to populate custom index.
First, I create index using following syntax:
PUT testIndex
{
"mappings": {
"txs": {
"properties": {
"date": {
"type": "date",
"format": "dd-MM-yyyy"
},
"procedure": {
"type": "text"
}
}
}
}
}
And after that I add new index in Kibana using "Create index pattern".
Output plugin looks like this:
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "testIndex"
}
}
And then when I start logstash, it happens nothing. Index is not populated, but I cannot see any error.
But when I delete index I've created and run logstash again, it seems that logstash is creating new index named "testIndex" with default field types and populating it.
I'm pretty much confused right now.
Thanks in advance!