Hello folks,
I want to create the index structure and ingest documents into that structure using logstash.
In the pipeline config file in the attachement, where should I specify the name of structure into which this data should be ingested into? In the output section?
I created the index structure as follows:
PUT /animals
{
"settings":
{
"number_of_shards": 2,
"number_of_replicas": 2
},
"mappings":
{
}
}
PUT /animals/_mapping/doc
{
"properties": {
"animal-type":
{
"type": "text"
},
"name":
{
"type": "text",
"analyzer": "standard"
},
"legs":
{
"type": "integer"
},
"tail":
{
"type": "boolean"
},
"eating-type":
{
"type": "text"
}
}
}