Allow enable/disable of posting to elasticsearch