Getting logs in other index

See Logstash sending to all output hosts. Since that post was made Logstash 6 which supports multiple pipelines (if explicitly configured) is available.