This repository has been archived by the owner on Nov 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new processor POP3 - usable as input or filter
sinceDB Unit can now handle []byte data move examples.d to cmd/bitfan vendoring
- Loading branch information
Showing
118 changed files
with
4,980 additions
and
438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
input{ | ||
stdin{} | ||
} | ||
|
||
filter{ | ||
pop3{ | ||
host => "pop.free.fr" | ||
username => "[email protected]" | ||
password => "${BITFAN_POP3PASSWORD}" | ||
secure => true | ||
delete => false | ||
sincedb_path => "/dev/null" | ||
strip_attachments => true | ||
|
||
} | ||
} | ||
|
||
output{ | ||
stdout{ | ||
codec=>pp | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
+++ | ||
title = "pop3" | ||
description = "Read mail from a pop3 server" | ||
weight = 10 | ||
+++ | ||
|
||
Used on filter section, you may omit the `interval` option to scan for new emails only when a message comes from input. | ||
|
||
{{% processordetails pop3processor %}} | ||
|
||
|
||
## Produced event examples | ||
{{%expand%}} | ||
``` | ||
{ | ||
"delivered-to": { | ||
"[email protected]": "", | ||
}, | ||
"cc": { | ||
"[email protected]": "", | ||
}, | ||
"from": { | ||
"[email protected]": "Valere Jeantet", | ||
}, | ||
"@timestamp": 2018-01-14 00:22:57 Local, | ||
"uid": "0acv1f1810845a5aa63e020051224870", | ||
"subject": "MSGBI", | ||
"html": "<div dir=\"ltr\"><img src=\"cid:160f19327978e9f50f81\" alt=\"Capture d’écran 2018-01-12 à 12.11.52.png\" class=\"\" style=\"max-width: 100%;\"><br></div>\r\n", | ||
"return-path": { | ||
"[email protected]": "", | ||
}, | ||
"to": { | ||
"[email protected]": "[email protected]", | ||
"[email protected]": "Valere Jeantet", | ||
}, | ||
"message": "[image: Capture d’écran 2018-01-12 à 12.11.52.png]\r\n", | ||
"headers": { | ||
"Return-Path": []string{ | ||
"<[email protected]>", | ||
}, | ||
"Dkim-Signature": []string{ | ||
"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=XXX; h=mime-version:from:date:message-id:subject:to:cc; bh=ODEQpVa/5Qcw==", | ||
}, | ||
"X-Received": []string{ | ||
"by 10.XXX.55.XX with SMTP id z37mr30058367uad.XXX.1515881XXX; Sat, 13 Jan 2018 14:11:25 -0800 (PST)", | ||
}, | ||
"Content-Type": []string{ | ||
"multipart/mixed; boundary=\"001a11409cc4725d6c0562afa937\"", | ||
}, | ||
"Received": []string{ | ||
"from mail-SSS-f17X.google.com (mx25XXX.priv.proxad.net [172.XXX.XXX.95]) by SSSS-g26.priv.proxad.net (Postfix) with ESMTP id 1C055A00634 for <[email protected]>; Sat, 13 Jan 2018 23:11:27 +0100 (CET)", | ||
"from mail-ua0-XXXX.google.com ([209.XXX.XXX.179]) by mx1-XXX.XXX.fr (MXproxy) with ESMTPS for [email protected] (version=TLSv1/SSLv3 cipher=AES128-XXX-SHA256 bits=128); Sat, 13 Jan 2018 23:11:28 +0100 (CET)", | ||
"by mail-ua0-SSSS.google.com with SMTP id x10so6315721ual.8 for <[email protected]>; Sat, 13 Jan 2018 14:11:26 -0800 (PST)", | ||
}, | ||
"X-Gm-Message-State": []string{ | ||
"AKwxytfekxmrRWAc21hNb05lq kKc+spWodYAlFaCMPvuFfWOAjybzg==", | ||
}, | ||
"Mime-Version": []string{ | ||
"1.0", | ||
}, | ||
"From": []string{ | ||
"Valere Jeantet <[email protected]>", | ||
}, | ||
"Message-Id": []string{ | ||
"<[email protected]>", | ||
}, | ||
"To": []string{ | ||
"\"[email protected]\" <[email protected]>, Valere Jeantet <[email protected]>", | ||
}, | ||
"Delivered-To": []string{ | ||
"[email protected]", | ||
}, | ||
"X-Proxad-Sc": []string{ | ||
"state=HAM score=0", | ||
}, | ||
"X-Proxad-Cause": []string{ | ||
"(null)", | ||
}, | ||
"X-Google-Smtp-Source": []string{ | ||
"ACJfBosF8RqtE9BCxZvUZbC0WnryH5nlfIn12xmVhWoP3KazNLz4RfB82gEdZofHxtKo=", | ||
}, | ||
"Subject": []string{ | ||
"Message from me", | ||
}, | ||
"X-Google-Dkim-Signature": []string{ | ||
"v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20561025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=ODEQpVa/ym6uT9lFT7X pdvw==", | ||
}, | ||
"Date": []string{ | ||
"Sat, 13 Jan 2018 22:11:13 +0000", | ||
}, | ||
"Cc": []string{ | ||
"[email protected]", | ||
}, | ||
}, | ||
"text": "[image: Capture d’écran 2018-01-12 à 12.11.52.png]\r\n", | ||
"sentAt": 2018-01-13 22:11:13 , | ||
} | ||
``` | ||
{{%expand%}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
+++ | ||
title = "pop3" | ||
description = "Read mail from a pop3 server" | ||
weight = 10 | ||
+++ | ||
|
||
{{% processordetails pop3processor %}} | ||
|
||
## Produced event examples | ||
{{%expand%}} | ||
``` | ||
{ | ||
"delivered-to": { | ||
"[email protected]": "", | ||
}, | ||
"cc": { | ||
"[email protected]": "", | ||
}, | ||
"from": { | ||
"[email protected]": "Valere Jeantet", | ||
}, | ||
"@timestamp": 2018-01-14 00:22:57 Local, | ||
"uid": "0acv1f1810845a5aa63e020051224870", | ||
"subject": "MSGBI", | ||
"html": "<div dir=\"ltr\"><img src=\"cid:160f19327978e9f50f81\" alt=\"Capture d’écran 2018-01-12 à 12.11.52.png\" class=\"\" style=\"max-width: 100%;\"><br></div>\r\n", | ||
"return-path": { | ||
"[email protected]": "", | ||
}, | ||
"to": { | ||
"[email protected]": "[email protected]", | ||
"[email protected]": "Valere Jeantet", | ||
}, | ||
"message": "[image: Capture d’écran 2018-01-12 à 12.11.52.png]\r\n", | ||
"headers": { | ||
"Return-Path": []string{ | ||
"<[email protected]>", | ||
}, | ||
"Dkim-Signature": []string{ | ||
"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=XXX; h=mime-version:from:date:message-id:subject:to:cc; bh=ODEQpVa/5Qcw==", | ||
}, | ||
"X-Received": []string{ | ||
"by 10.XXX.55.XX with SMTP id z37mr30058367uad.XXX.1515881XXX; Sat, 13 Jan 2018 14:11:25 -0800 (PST)", | ||
}, | ||
"Content-Type": []string{ | ||
"multipart/mixed; boundary=\"001a11409cc4725d6c0562afa937\"", | ||
}, | ||
"Received": []string{ | ||
"from mail-SSS-f17X.google.com (mx25XXX.priv.proxad.net [172.XXX.XXX.95]) by SSSS-g26.priv.proxad.net (Postfix) with ESMTP id 1C055A00634 for <[email protected]>; Sat, 13 Jan 2018 23:11:27 +0100 (CET)", | ||
"from mail-ua0-XXXX.google.com ([209.XXX.XXX.179]) by mx1-XXX.XXX.fr (MXproxy) with ESMTPS for [email protected] (version=TLSv1/SSLv3 cipher=AES128-XXX-SHA256 bits=128); Sat, 13 Jan 2018 23:11:28 +0100 (CET)", | ||
"by mail-ua0-SSSS.google.com with SMTP id x10so6315721ual.8 for <[email protected]>; Sat, 13 Jan 2018 14:11:26 -0800 (PST)", | ||
}, | ||
"X-Gm-Message-State": []string{ | ||
"AKwxytfekxmrRWAc21hNb05lq kKc+spWodYAlFaCMPvuFfWOAjybzg==", | ||
}, | ||
"Mime-Version": []string{ | ||
"1.0", | ||
}, | ||
"From": []string{ | ||
"Valere Jeantet <[email protected]>", | ||
}, | ||
"Message-Id": []string{ | ||
"<[email protected]>", | ||
}, | ||
"To": []string{ | ||
"\"[email protected]\" <[email protected]>, Valere Jeantet <[email protected]>", | ||
}, | ||
"Delivered-To": []string{ | ||
"[email protected]", | ||
}, | ||
"X-Proxad-Sc": []string{ | ||
"state=HAM score=0", | ||
}, | ||
"X-Proxad-Cause": []string{ | ||
"(null)", | ||
}, | ||
"X-Google-Smtp-Source": []string{ | ||
"ACJfBosF8RqtE9BCxZvUZbC0WnryH5nlfIn12xmVhWoP3KazNLz4RfB82gEdZofHxtKo=", | ||
}, | ||
"Subject": []string{ | ||
"Message from me", | ||
}, | ||
"X-Google-Dkim-Signature": []string{ | ||
"v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20561025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=ODEQpVa/ym6uT9lFT7X pdvw==", | ||
}, | ||
"Date": []string{ | ||
"Sat, 13 Jan 2018 22:11:13 +0000", | ||
}, | ||
"Cc": []string{ | ||
"[email protected]", | ||
}, | ||
}, | ||
"text": "[image: Capture d’écran 2018-01-12 à 12.11.52.png]\r\n", | ||
"sentAt": 2018-01-13 22:11:13 , | ||
} | ||
``` | ||
{{%expand%}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
+++ | ||
title = "websocket" | ||
description = "" | ||
weight = 10 | ||
+++ | ||
|
||
{{% processordetails websocketinput %}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
+++ | ||
title = "websocket" | ||
description = "" | ||
weight = 10 | ||
+++ | ||
|
||
{{% processordetails websocket %}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.