use grains['fqdn_ip4'] to publish ip
upgraded to elasticsearch 1.0