How to Upload data into elastic search from oracle database using logstash by creating multiple indexes

I am trying to upload data into ES using logstash. I want to store the data by creating multiple indexes into ES with the help of a field( containing some integer values) in my database. I am trying to use filter but not able to do that . Can you plz help me out.
Thanks.

Why not? What happens? What does your config look like?