Need to create index on weekly basis

Hi Team,

I want to create my index on weekly basis, Can You suggest any method

Use

index => "whatever-%{+yyyy.ww}"

in your elasticsearch output configuration.

2 Likes

ohk...Thanks

Logs are not pushing properly, getting below errors:

Flushing buffer at interval {:instance=>"#<LogStash::Outputs::ElasticSearch::Buffer:0x18afa0e4 @operations_mutex=#Mutex:0x16684d81, @max_size=500, @operations_lock=#Java::JavaUtilConcurrentLocks::ReentrantLock:0x1257cb94, @submit_proc=#Proc:0x32186534@/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-2.7.1-java/lib/logstash/outputs/elasticsearch/common.rb:57, @logger=#<Cabin::Channel:0x664832b3 @metrics=#<Cabin::Metrics:0x4aef4e85 @metrics_lock=#Mutex:0x377ab8f5, @metrics={}, @channel=#<Cabin::Channel:0x664832b3 ...>>,

That's not an error message.

but logs are not pushing to elasticsearch.....index is not creating

Okay, sure, but you have to look elsewhere for the problem. Without more details about your setup we can't help.