Create quarterly index in log stash config file

there is any way to create quarterly index in logstash config file , i know how to create daily / monthly / year index , there is any function which can give quarter in log stash ,
or we need to calculate that ?


i able to solve

ruby {
code => "
event.set('quarter', + '-' + (( / 3.0).ceil).to_s)

index => "logstash-%{quarter}"

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