We are inputting AMQP messages from RabbitMQ. These come to RabbitMQ via SMTP utilizing the rabbitmq-email plugin, so the AMQP headers contain some SMTP information we need.
By default it seems that only the body of the email is inputted from RabbitMQ.
We require the email subject and destination address from the AMQP metadata. We know they are there, as we are able to see these when consuming messages with a python script.
Attempting to get this working has lead me to using the following logstash.conf file.
Note: routing-key from AMPQ metadata is obtained from the SMTP email destination ("To") address.
OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance.
(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns )
I would argue that this is a bug. Processing the common options add_field / add_tag / remove_field / remove_tag is called decoration. The input calls decorate event before it adds the rabbitmq metadata. I think that is the wrong way around.
As you have discovered, the workaround is to create the email fields using a mutate filter.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.