Different index name for data from filebeat and packetbeat

I have taken input from beats in logstash and now I want to forward it to the elasticsearch.
In addition to this, I want to make sure that data from packetbeat and filebeat should have different index name in ES like,
for filebeat: filebeat-*
for packetbeat: packetbeat-*

Please tell me how to do this.
Thank you!

The ES output has a means of specifying the index.

output {
elasticsearch {
hosts => ["xxxxxxxxxxxx:9200"]
index => dev-s3-new-%{+YYYY.MM.dd}"
}
stdout { codec => rubydebug }
}

Create two separate file for packetbeat and filebeat. Well I believe filebeat and packetbeat have the expression be default as you have mentioned.