Requirement to clear the index data and load fresh data

(Ranganath Nangineni) #1

I have a requirement to clear the existing index data and load the data into the same index whenever we run the logstash config.

How can we achieve this through the config file ?

(Mark Walkom) #2

You are better off deleting the index and recreating it. That will need to be done externally.

Otherwise, create a new index and then use an alias to manage where it points to.

(Ranganath Nangineni) #3

Cant we have the " delete index " ( Api calls in the logstash config files?

(Mark Walkom) #4

No, sorry.

(system) #5

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