Template the number of logstash workers

Addresses #207 

(cherry picked from commit b531148eebccfdfeade8d2c5425568999f6f9120)