Logstash can judge will be output to the elasticsearch index exists

Logstash can judge will be output to the elasticsearch index exists?

It's very hard to understand what you're asking. Could you try to rephrase and maybe use an example?