For ELK,sometimes Logstash says “no such index”, how to set automatic create index in ES while “no such index”?

Can you trace exactly which HTTP request that fails? Use e.g. Wireshark or Packetbeat. Elasticsearch should normally create indexes automatically as part of indexing requests.