Here is the output from:
cat ../../test-files/test-example1 | ./bin/logstash -f ../../conf/test-email-v1.conf --debug
... a whole bunch of logging ....
then not in the right order I get stdout:
2018-02-09T17:52:46.332Z MMBP1.local Mime-Version: 1.0
2018-02-09T17:52:46.333Z MMBP1.local X-Origin: Philip
2018-02-09T17:52:46.335Z MMBP1.local [7]
2018-02-09T17:52:46.332Z MMBP1.local X-From: Phillip K
2018-02-09T17:52:46.334Z MMBP1.local [2]some text
2018-02-09T17:52:46.336Z MMBP1.local [10]----
2018-02-09T17:52:46.331Z MMBP1.local Subject: fun and games
2018-02-09T17:52:46.333Z MMBP1.local X-Folder: \Phillip-Jan2002_1\Sent Mail
2018-02-09T17:52:46.335Z MMBP1.local [6]---
2018-02-09T17:52:46.329Z MMBP1.local Date: Mon, 7 May 2001 12:28:00 -0700 (PDT)
2018-02-09T17:52:46.332Z MMBP1.local X-To:
2018-02-09T17:52:46.335Z MMBP1.local [3]some more text
2018-02-09T17:52:46.336Z MMBP1.local [11]
2018-02-09T17:52:46.290Z MMBP1.local Message-ID: <18435268.1075855378308.JavaMail.evans@thyme>
2018-02-09T17:52:46.331Z MMBP1.local From: phillip@xxx.com
2018-02-09T17:52:46.333Z MMBP1.local X-cc:
2018-02-09T17:52:46.335Z MMBP1.local [4]
2018-02-09T17:52:46.332Z MMBP1.local Content-Transfer-Encoding: 7bit
2018-02-09T17:52:46.334Z MMBP1.local [1]
2018-02-09T17:52:46.336Z MMBP1.local [9]
2018-02-09T17:52:46.331Z MMBP1.local To: matthew@xxx.com, jay@xxx.com, matt@xxx.com
2018-02-09T17:52:46.333Z MMBP1.local X-bcc:
2018-02-09T17:52:46.335Z MMBP1.local [5]
2018-02-09T17:52:46.332Z MMBP1.local Content-Type: text/plain; charset=us-ascii
2018-02-09T17:52:46.334Z MMBP1.local X-FileName: phillip (Non-Privileged).pst
2018-02-09T17:52:46.336Z MMBP1.local [8]😎😎
then I am guessing parsed data but the message body doesn't seem to groupped together but individual (out of order) snippets:
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.332Z,
"message" => "Mime-Version: 1.0"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.333Z,
"message" => "X-Origin: Philip"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.335Z,
"message" => "[7]"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.332Z,
"message" => "X-From: Phillip K"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.334Z,
"message" => "[2]some text"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.336Z,
"message" => "[10]---- "
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.331Z,
"message" => "Subject: fun and games"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.333Z,
"message" => "X-Folder: \\Phillip-Jan2002_1\\Sent Mail"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.335Z,
"message" => "[6]--- "
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.290Z,
"message" => "Message-ID: <18435268.1075855378308.JavaMail.evans@thyme>"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.331Z,
"message" => "From: phillip@xxx.com"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.333Z,
"message" => "X-cc: "
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.335Z,
"message" => "[4]"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.329Z,
"message" => "Date: Mon, 7 May 2001 12:28:00 -0700 (PDT)"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.332Z,
"message" => "X-To: "
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.335Z,
"message" => "[3]some more text"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.336Z,
"message" => "[11]"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.332Z,
"message" => "Content-Transfer-Encoding: 7bit"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.334Z,
"message" => "[1]"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.336Z,
"message" => "[9]"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.331Z,
"message" => "To: matthew@xxx.com, jay@xxx.com, matt@xxx.com"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.333Z,
"message" => "X-bcc: "
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.335Z,
"message" => "[5]"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.332Z,
"message" => "Content-Type: text/plain; charset=us-ascii"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.334Z,
"message" => "X-FileName: phillip (Non-Privileged).pst"
}
{
"@version" => "1",
"host" => "MMBP1.local",
"@timestamp" => 2018-02-09T17:52:46.336Z,
"message" => "[8]😎😎"
}