$ModLoad imuxsock
$ModLoad imklog

$ModLoad omelasticsearch

$template TPL-Format,"{\"m\":\"%msg:::json%\",\"h\":\"%HOSTNAME:::json%\"}"
$template TPL-indexName,"log-foo"
$template TPL-documentType,"FOO"
$template TPL-bulkUUID,"%uuid%"

*.* action(type="omelasticsearch" server="192.168.1.100" serverport="9200"
           dynsearchindex="on" searchindex="TPL-indexName"
           dynsearchtype="on" searchtype="TPL-documentType"
           dynbulkid="on" bulkid="TPL-bulkUUID"
           bulkmode="on" template="TPL-Format")
