updated for 1.2

updated for logstash 1.2 w/ conditionals.