Ingest Email Bounces

We have Email bounce. They are in Email Mailbox format, but they are stored on Linux. Currently we have to set up complicate infrastructure to handle such Email Mailbox format ingestion processing. Is there a modern way to ingest Email Mailbox file to logstash then store them into Elasticsearch?

Example bounce back message:

    Return-Path: <>
    Received: from ..
    Received: from ..
    To: <>
    Message-ID: <id>
    Date: Wed, 8 Jul 2020 09:45:00 -0700
    From: "XYZ" <>
    Subject: bounce
    Content-Language: en-us
    MIME-Version: 1.0
    Content-Transfer-Encoding: 8bit
    Content-Type: multipart/alternative;

    Content-Transfer-Encoding: 8bit
    Content-Type: text/plain; charset="UTF-8"


Hello Xinhuan,

There would definitely be ways to parse and process these kind of messages. I suggest you looking at Logstash or the Elasticsearch Ingest. They both provide extensive and flexible capabilities to do that. Logstash would run out of the Elasticsearch cluster and would then send the output to it and Ingest would be part of the cluster (with possibility to define dedicated Ingest nodes).

I had to make the choice between the two of them and I chose the Ingest solution to keep everything in one single place. This article discussing both helped me.

Let me know if this answers your question,

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.