Logstash indexes number

Default installation create a logstash index and a winlogbeat index everyday. Where could i find this configuration ??
What should I do if I wanted to create a index by week (for example...)

Pipeline configuration of your logstash elastic search output.


For weekly indexes logstash-%{+xxxx.ww}

Actually our output is like :
output {
elasticsearch { hosts => ["localhost:9200"] }
stdout { codec => rubydebug }

Should we add something like this:
index => "logstash-%{+YYYY.MM}"

Should we add something like this:
index => "logstash-%{+YYYY.MM}"

Yes, add it inside the elasticsearch block.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.