Create quarterly index in log stash config file

hi
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 ?

Thanks

i able to solve

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

and
index => "logstash-%{quarter}"

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