Adding time dimension attributes to date fields

Hi All :slight_smile:

I was wondering what is the current best method to add more attribute to date fields, for example : holiday flag, month number, quarter number, last day in month, is it a working day or not ...
And i want to be able to index that as well.

Exactly like a time dimension in BI applications.

Thanks,
Sagi.

You can't store that additional data in date fields, but you can add any number of other fields that act as metadata to the date field. Logstash has no standard filters that compute the kind of values that you mention but you could certainly do it with some Ruby code in a ruby filter (or a custom plugin).