I want to insert elasticsearch with multi time with range

If I have database table 100,000++ record and I want to insert to elasticsearch multi time.
How to use logstash insert to elasticserch 1,000 records per request?
example
round 1
input record 1 - 1000
round 2
input record 1001 - 2000
round 3
input record 2001 - 3000
.
.
.
round n
input record n - (n+1000)