How to define index name for kibana index pattern

Have a look at my answer here - Can I create different index patterns for different logs types in logstash? - it's basically the same thing.

https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html will also be helpful.