I did the following
input
{
elasticsearch
{
..............
query => '{"query": { "match_all": {} }}'
}
}
After running the script I noticed that the number of documents in the target index is lesser than the number of documents in the original source index.