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
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.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.