Log is transmitted from logstash to ES, but the host can configure logstash configuration and index, so you can only be configured in es
However es profile configuration, which is then added the following parameters will complain: node settings must not contain any index level settings
index.number_of_shards: 1
index.number_of_replicas: 0
Therefore, set way using index templates
POST /_templates/index_patterns
{
"order": 0,
"index_patterns": [
"filebeat_*"
],
"settings": {
"index": {
"number_of_shards": "1",
"number_of_replicas": "0"
}
},
"mappings": {},
"aliases": {}
}
Where is the name of the index filebeat_*
, the number of slices is 1, the number of copies is 0