Hi,
-
If I use
filebeat-%{+yyyy.MM.dd}
as index name, every day I get new index created in ES. I then can usefilebeat-*
in Kibana to see logs. For this, I have to add index patterns and load template. -
If I use custom
my-custom-index
as index name, ES will have only one dedicated index. I then can usemy-custom-index
in Kibana to see logs. For this, I don't have to add or load index patterns/template.
Example:
output {
elasticsearch {
hosts => ["localhost:9200"]
sniffing => true
manage_template => false
#index => "my-custom-index"
#index => "filebeat-%{+yyyy.MM.dd}"
}
}
The questions is: In terms of checking/visualising logs in Kibana, would there be any difference if I use my-custom-index
or filebeat-*
? I tried both and haven't seen any difference so what is the point of adding index patterns for options 1 (filebeat index version)?
Note: I asked similar question here but got all superficial/shortcut answers.
Thanks