Consult on approach

I am new to elastic and couldn't figure out how to use it.
My requirement was to create a different index every day.
For example:
I run a certain job every day which create an index with name ABC
I want to classify it into days, so I have two approaches

  1. to append date in index name, i.e ABC_01_01_2020, ABC_02_01_2020
  2. To use the current date as a nested type field.
    i.e ABC {
    01_01_2020{
    }
    02_01_2020{
    }
    }
    Which would be a better approach?

Welcome to our community! :smiley:

You should check out ILM, it's a much easier way to do this for you.

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