This is an excerpt taken from filebeat config for logstash output here

I'm wondering what does index have to do with logstash. In my logstash configuration itslef, if I redirect logs to ElasticSearch I believe my logs will be indexed under "logstash-%{+YYYY.MM.dd}" as the documentation says here.
So why is there an option to set index for filebeat's logstash output?