Hi ,
I have a unique requirement .
I have index as 'apps-dev-logs' which filed type as ( 'created_on, msg, log, ...)
So my requirement is to deleted all values from elastricsearch domain on created_on filter.
So any values older then (now -45 days) should be deleted from eleatricsearch domain for partuclar index.
I am using python to create index.
actions = [{
"_index": index_name,
"_type": doc_type,
"_source": doc,
"_id": doc['filename'] + '--' + str(doc['created_on'])
} for doc in json_list]
helpers.bulk(esClient, actions)