<div dir="ltr">SO I have a shovel configuration I'm trying to get working so I can pass back the "source-ip".  I'd previously done this with a header and it worked, but I'm trying to switch to a publish_property so developers can use headers in their publishes (since me setting the headers in the shovel config overrides their headers).<div>
<br></div><div>With this config, things don't work:</div><div><div>[</div><div>    {rabbit, [</div><div>        {vm_memory_high_watermark, 0.6}</div><div>, {hipe_compile, false}</div><div>     ]}</div><div>  , {rabbitmq_shovel,[{shovels, [</div>
<div>        { 'vhost_queue', [</div><div>                  {sources,      [{broker, "amqp://guest:guest@/vhost"}] }</div><div>                , {destinations, [{broker, "amqp://guest:guest@brokerhost/vhost"}] }</div>
<div>                , {queue, <<"queue">>}</div><div>                , {prefetch_count, 15}</div><div>                , {publish_properties, [</div><div>                        {delivery_mode,2},</div>
<div>                        {content_type, <<"test">>}</div><div>                        ]}</div><div>                , {reconnect_delay, 30}</div><div>                , {publish_fields, [{exchange, <<"exchange">>},{routing_key, <<"queue">>}]}</div>
<div><br></div><div>        ] }</div><div>  ]}]}</div><div>].</div></div><div><br></div><div><br></div><div>But if I remove the line "{delivery_mode,2},"  rabbit starts up fine.  If I remove the content_type entry, rabbit starts up - it's just when both are there nothing works.  Note, I can set the publish_properties for the header, e.g.:</div>
<div><br></div><div><div>{publish_properties, [ </div><div><span class="" style="white-space:pre">                  </span>{delivery_mode, 2}</div><div><span class="" style="white-space:pre">                 </span>, {headers, [{<<"source">>,longstr,<<"${HOSTNAME}">>}] } </div>
<div><span class="" style="white-space:pre">                    </span>]}</div></div><div><br></div><div>Works just fine.  Am I missing something?</div><div>Thanks!<br>Jason<br clear="all"><div><br></div>-- <br><div dir="ltr">Jason McIntosh<br>
<a href="https://github.com/jasonmcintosh/" target="_blank">https://github.com/jasonmcintosh/</a><br>573-424-7612</div>
</div></div>