* proofpoint pod - initial commit

* ProofpointPOD: Delete "Preview" and change Umbrella to Proofpoint

* ProofpointPOD: delete empty lines from parser

* ProofpointPOD: add proxies.json file

* ProofpointPOD: script fixes

* ProofpointPOD: add well-known CA library certifi

Co-authored-by: Alex Verbniak <ov@socprime.com>
This commit is contained in:
SOC Prime 2020-11-21 03:30:04 +02:00 коммит произвёл GitHub
Родитель d7c49479b9
Коммит 533e0983f8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
13 изменённых файлов: 5034 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,125 @@
{
"Name":"ProofpointPOD_maillog_CL",
"Properties":[
{
"Name":"EventVendor",
"Type":"String"
},
{
"Name":"EventProduct",
"Type":"String"
},
{
"Name":"sm_msgid_g",
"Type":"String"
},
{
"Name":"pps_cid_s",
"Type":"String"
},
{
"Name":"pps_agent_s",
"Type":"String"
},
{
"Name":"id_s",
"Type":"String"
},
{
"Name":"sm_msgid_s",
"Type":"String"
},
{
"Name":"sm_nrcpts_s",
"Type":"String"
},
{
"Name":"sm_sizeBytes_s",
"Type":"String"
},
{
"Name":"sm_auth_s",
"Type":"String"
},
{
"Name":"sm_tls_verify_s",
"Type":"String"
},
{
"Name":"sm_relay_s",
"Type":"String"
},
{
"Name":"sm_daemon_s",
"Type":"String"
},
{
"Name":"sm_proto_s",
"Type":"String"
},
{
"Name":"sm_from_s",
"Type":"String"
},
{
"Name":"sm_class_s",
"Type":"String"
},
{
"Name":"sm_qid_s",
"Type":"String"
},
{
"Name":"ts_t",
"Type":"DateTime"
},
{
"Name":"data_s",
"Type":"String"
},
{
"Name":"metadata_origin_data_agent_s",
"Type":"String"
},
{
"Name":"metadata_origin_data_cid_s",
"Type":"String"
},
{
"Name":"event_type_s",
"Type":"String"
},
{
"Name":"sm_mailer_s",
"Type":"String"
},
{
"Name":"sm_stat_s",
"Type":"String"
},
{
"Name":"sm_dsn_s",
"Type":"String"
},
{
"Name":"sm_to_s",
"Type":"String"
},
{
"Name":"sm_delay_s",
"Type":"String"
},
{
"Name":"sm_pri_s",
"Type":"String"
},
{
"Name":"sm_xdelay_s",
"Type":"String"
},
{
"Name":"sm_ctladdr_s",
"Type":"String"
}
]
}

Просмотреть файл

@ -0,0 +1,441 @@
{
"Name":"ProofpointPOD_message_CL",
"Properties":[
{
"Name":"EventVendor",
"Type":"String"
},
{
"Name":"EventProduct",
"Type":"String"
},
{
"Name":"filter_modules_urldefense_counts_noRewriteIsLargeMsgPartSize_d",
"Type":"Double"
},
{
"Name":"pps_agent_s",
"Type":"String"
},
{
"Name":"pps_version_s",
"Type":"String"
},
{
"Name":"pps_cid_s",
"Type":"String"
},
{
"Name":"msgParts_s",
"Type":"String"
},
{
"Name":"metadata_origin_data_agent_s",
"Type":"String"
},
{
"Name":"metadata_origin_data_version_s",
"Type":"String"
},
{
"Name":"metadata_origin_data_cid_s",
"Type":"String"
},
{
"Name":"ts_t",
"Type":"DateTime"
},
{
"Name":"connection_tls_inbound_cipher_s",
"Type":"String"
},
{
"Name":"connection_tls_inbound_cipherBits_d",
"Type":"Double"
},
{
"Name":"connection_tls_inbound_version_s",
"Type":"String"
},
{
"Name":"connection_ip_s",
"Type":"String"
},
{
"Name":"connection_sid_s",
"Type":"String"
},
{
"Name":"connection_host_s",
"Type":"String"
},
{
"Name":"connection_country_s",
"Type":"String"
},
{
"Name":"connection_helo_s",
"Type":"String"
},
{
"Name":"connection_protocol_s",
"Type":"String"
},
{
"Name":"connection_resolveStatus_s",
"Type":"String"
},
{
"Name":"msg_sizeBytes_d",
"Type":"Double"
},
{
"Name":"msg_lang_s",
"Type":"String"
},
{
"Name":"msg_normalizedHeader_subject_s",
"Type":"String"
},
{
"Name":"msg_normalizedHeader_message_id_s",
"Type":"String"
},
{
"Name":"msg_normalizedHeader_to_s",
"Type":"String"
},
{
"Name":"msg_normalizedHeader_toHashed_s",
"Type":"String"
},
{
"Name":"msg_normalizedHeader_from_s",
"Type":"String"
},
{
"Name":"msg_normalizedHeader_fromHashed_s",
"Type":"String"
},
{
"Name":"msg_header_from_s",
"Type":"String"
},
{
"Name":"msg_header_fromHashed_s",
"Type":"String"
},
{
"Name":"msg_header_message_id_s",
"Type":"String"
},
{
"Name":"msg_header_subject_s",
"Type":"String"
},
{
"Name":"msg_header_to_s",
"Type":"String"
},
{
"Name":"msg_header_toHashed_s",
"Type":"String"
},
{
"Name":"msg_parsedAddresses_fromHashed_s",
"Type":"String"
},
{
"Name":"msg_parsedAddresses_from_s",
"Type":"String"
},
{
"Name":"msg_parsedAddresses_toHashed_s",
"Type":"String"
},
{
"Name":"msg_parsedAddresses_to_s",
"Type":"String"
},
{
"Name":"filter_durationSecs_d",
"Type":"Double"
},
{
"Name":"filter_actions_s",
"Type":"String"
},
{
"Name":"filter_routes_s",
"Type":"String"
},
{
"Name":"filter_qid_s",
"Type":"String"
},
{
"Name":"filter_startTime_t",
"Type":"DateTime"
},
{
"Name":"filter_routeDirection_s",
"Type":"String"
},
{
"Name":"filter_quarantine_rule_s",
"Type":"String"
},
{
"Name":"filter_quarantine_folder_s",
"Type":"String"
},
{
"Name":"filter_modules_dmarc_srvid_s",
"Type":"String"
},
{
"Name":"filter_modules_dmarc_records_s",
"Type":"String"
},
{
"Name":"filter_modules_dmarc_filterdResult_s",
"Type":"String"
},
{
"Name":"filter_modules_dmarc_authResults_s",
"Type":"String"
},
{
"Name":"filter_modules_spf_domain_s",
"Type":"String"
},
{
"Name":"filter_modules_spf_result_s",
"Type":"String"
},
{
"Name":"filter_modules_spam_triggeredClassifier_s",
"Type":"String"
},
{
"Name":"filter_modules_spam_safeBlockedListMatches_s",
"Type":"String"
},
{
"Name":"filter_modules_spam_version_engine_s",
"Type":"String"
},
{
"Name":"filter_modules_spam_version_definitions_s",
"Type":"String"
},
{
"Name":"filter_modules_spam_scores_overall_d",
"Type":"Double"
},
{
"Name":"filter_modules_spam_scores_engine_d",
"Type":"Double"
},
{
"Name":"filter_modules_spam_scores_classifiers_s",
"Type":"String"
},
{
"Name":"filter_modules_spam_langs_s",
"Type":"String"
},
{
"Name":"filter_modules_urldefense_version_engine_s",
"Type":"String"
},
{
"Name":"filter_modules_urldefense_counts_unique_d",
"Type":"Double"
},
{
"Name":"filter_modules_urldefense_counts_rewritten_d",
"Type":"Double"
},
{
"Name":"filter_modules_urldefense_counts_total_d",
"Type":"Double"
},
{
"Name":"filter_modules_dkimv_s",
"Type":"String"
},
{
"Name":"filter_modules_pdr_v2_response_s",
"Type":"String"
},
{
"Name":"filter_modules_zerohour_score_s",
"Type":"String"
},
{
"Name":"filter_disposition_s",
"Type":"String"
},
{
"Name":"filter_suborgs_rcpts_s",
"Type":"String"
},
{
"Name":"filter_suborgs_sender_s",
"Type":"String"
},
{
"Name":"filter_msgSizeBytes_d",
"Type":"Double"
},
{
"Name":"filter_verified_rcptsHashed_s",
"Type":"String"
},
{
"Name":"filter_verified_rcpts_s",
"Type":"String"
},
{
"Name":"guid_s",
"Type":"String"
},
{
"Name":"envelope_rcptsHashed_s",
"Type":"String"
},
{
"Name":"envelope_rcpts_s",
"Type":"String"
},
{
"Name":"envelope_fromHashed_s",
"Type":"String"
},
{
"Name":"envelope_from_s",
"Type":"String"
},
{
"Name":"event_type_s",
"Type":"String"
},
{
"Name":"msg_normalizedHeader_return_pathHashed_s",
"Type":"String"
},
{
"Name":"msg_normalizedHeader_x_mailer_s",
"Type":"String"
},
{
"Name":"msg_normalizedHeader_return_path_s",
"Type":"String"
},
{
"Name":"msg_header_x_mailer_s",
"Type":"String"
},
{
"Name":"msg_header_return_pathHashed_s",
"Type":"String"
},
{
"Name":"msg_header_return_path_s",
"Type":"String"
},
{
"Name":"filter_modules_spam_charsets_s",
"Type":"String"
},
{
"Name":"filter_modules_dmarc_alignment_s",
"Type":"String"
},
{
"Name":"msg_normalizedHeader_x_originating_ip_s",
"Type":"String"
},
{
"Name":"msg_header_x_originating_ip_s",
"Type":"String"
},
{
"Name":"msg_normalizedHeader_reply_to_s",
"Type":"String"
},
{
"Name":"msg_normalizedHeader_reply_toHashed_s",
"Type":"String"
},
{
"Name":"msg_header_reply_toHashed_s",
"Type":"String"
},
{
"Name":"msg_header_reply_to_s",
"Type":"String"
},
{
"Name":"filter_modules_urldefense_counts_noRewriteIsEmail_d",
"Type":"Double"
},
{
"Name":"filter_modules_pdr_v2_rscore_d",
"Type":"Double"
},
{
"Name":"filter_origGuid_s",
"Type":"String"
},
{
"Name":"msg_normalizedHeader_cc_s",
"Type":"String"
},
{
"Name":"msg_normalizedHeader_ccHashed_s",
"Type":"String"
},
{
"Name":"msg_parsedAddresses_ccHashed_s",
"Type":"String"
},
{
"Name":"msg_parsedAddresses_cc_s",
"Type":"String"
},
{
"Name":"msg_header_ccHashed_s",
"Type":"String"
},
{
"Name":"msg_header_cc_s",
"Type":"String"
},
{
"Name":"filter_modules_av_virusNames_s",
"Type":"String"
},
{
"Name":"filter_throttleIp_s",
"Type":"String"
},
{
"Name":"filter_modules_urldefense_counts_noRewriteIsUnsupportedScheme_d",
"Type":"Double"
},
{
"Name":"filter_modules_urldefense_counts_noRewriteIsSchemeless_d",
"Type":"Double"
},
{
"Name":"filter_modules_urldefense_counts_noRewriteIsMaxLengthExceeded_d",
"Type":"Double"
},
{
"Name":"filter_modules_urldefense_counts_noRewriteIsExcludedDomain_d",
"Type":"Double"
}
]
}

Просмотреть файл

@ -0,0 +1,144 @@
{
"id": "ProofpointPOD",
"title": "Proofpoint On Demand Email Security",
"publisher": "Proofpoint",
"descriptionMarkdown": "Proofpoint On Demand Email Security data connector provides the capability to get Proofpoint on Demand Email Protection data, allows users to check message traceability, monitoring into email activity, threats,and data exfiltration by attackers and malicious insiders. The connector provides ability to review events in your org on an accelerated basis, get event log files in hourly increments for recent activity.",
"additionalRequirementBanner":"These queries and workbooks are dependent on a parser based on Kusto to work as expected. Follow the steps to use this Kusto functions alias **ProofpointPOD** in queries and workbooks [Follow steps to get this Kusto functions>](https://raw.githubusercontent.com/Azure/Azure-Sentinel/ProofpointPODConnector/Parsers/ProofpointPOD/ProofpointPOD)",
"graphQueries": [
{
"metricName": "Total data received",
"legend": "ProofpointPOD_message_CL",
"baseQuery": "ProofpointPOD_message_CL"
},
{
"metricName": "Total data received",
"legend": "ProofpointPOD_maillog_CL",
"baseQuery": "ProofpointPOD_maillog_CL"
}
],
"sampleQueries": [
{
"description" : "Last ProofpointPOD message Events",
"query": "ProofpointPOD\n | where EventType == 'message'\n | sort by TimeGenerated desc"
},
{
"description" : "Last ProofpointPOD maillog Events",
"query": "ProofpointPOD\n | where EventType == 'maillog'\n | sort by TimeGenerated desc"
}
],
"dataTypes": [
{
"name": "ProofpointPOD_message_CL",
"lastDataReceivedQuery": "ProofpointPOD_message_CL\n | summarize Time = max(TimeGenerated)\n | where isnotempty(Time)"
},
{
"name": "ProofpointPOD_maillog_CL",
"lastDataReceivedQuery": "ProofpointPOD_maillog_CL\n | summarize Time = max(TimeGenerated)\n | where isnotempty(Time)"
}
],
"connectivityCriterias": [
{
"type": "IsConnectedQuery",
"value": [
"ProofpointPOD_message_CL\n | union ProofpointPOD_maillog_CL \n | summarize LastLogReceived = max(TimeGenerated)\n | project IsConnected = LastLogReceived > ago(30d)"
]
}
],
"availability": {
"status": 1,
"isPreview": true
},
"permissions": {
"resourceProvider": [
{
"provider": "Microsoft.OperationalInsights/workspaces",
"permissionsDisplayText": "read and write permissions are required.",
"providerDisplayName": "Workspace",
"scope": "Workspace",
"requiredPermissions": {
"write": true,
"read": true,
"delete": true
}
},
{
"provider": "Microsoft.OperationalInsights/workspaces/sharedKeys",
"permissionsDisplayText": "read permissions to shared keys for the workspace are required. [See the documentation to learn more about workspace keys](https://docs.microsoft.com/azure/azure-monitor/platform/agent-windows#obtain-workspace-id-and-key)",
"providerDisplayName": "Keys",
"scope": "Workspace",
"requiredPermissions": {
"action": true
}
}
],
"customs": [
{
"name": "Microsoft.Web/sites permissions",
"description": "Read and write permissions to Azure Functions to create a Function App is required. [See the documentation to learn more about Azure Functions](https://docs.microsoft.com/azure/azure-functions/)."
},
{
"name": "Websocket API Credentials/permissions",
"description": "**ProofpointClusterID**, **ProofpointToken** is required. [See the documentation to learn more about API](https://proofpointcommunities.force.com/community/s/article/Proofpoint-on-Demand-Pod-Log-API)."
}
]
},
"instructionSteps": [
{
"title": "",
"description": ">**NOTE:** This connector uses Azure Functions to connect to the Proofpoint Websocket API to pull its logs into Azure Sentinel. This might result in additional data ingestion costs. Check the [Azure Functions pricing page](https://azure.microsoft.com/pricing/details/functions/) for details."
},
{
"title": "",
"description": ">**(Optional Step)** Securely store workspace and API authorization key(s) or token(s) in Azure Key Vault. Azure Key Vault provides a secure mechanism to store and retrieve key values. [Follow these instructions](https://docs.microsoft.com/azure/app-service/app-service-key-vault-references) to use Azure Key Vault with an Azure Function App."
},
{
"description":">This data connector depends on a parser based on a Kusto Function to work as expected. [Follow these steps](https://raw.githubusercontent.com/Azure/Azure-Sentinel/ProofpointPODConnector/Parsers/ProofpointPOD/ProofpointPOD) to create the Kusto functions alias, **ProofpointPOD**"
},
{
"title": "",
"description": "**STEP 1 - Configuration steps for the Proofpoint Websocket API**\n\n1. Proofpoint Websocket API service requires Remote Syslog Forwarding license. Please refer the [documentation](https://proofpointcommunities.force.com/community/s/article/Proofpoint-on-Demand-Pod-Log-API) on how to enable and check PoD Log API. \n2. You must provide your cluster id and security token."
},
{
"title": "",
"description": "**STEP 2 - Choose ONE from the following two deployment options to deploy the connector and the associated Azure Function**\n\n>**IMPORTANT:** Before deploying the Proofpoint On Demand Email Security data connector, have the Workspace ID and Workspace Primary Key (can be copied from the following), as well as the Proofpoint POD Log API credentials, readily available.",
"instructions":[
{
"parameters": {
"fillWith": [
"WorkspaceId"
],
"label": "Workspace ID"
},
"type": "CopyableLabel"
},
{
"parameters": {
"fillWith": [
"PrimaryKey"
],
"label": "Primary Key"
},
"type": "CopyableLabel"
}
]
},
{
"title": "Option 1 - Azure Resource Manager (ARM) Template",
"description": "Use this method for automated deployment of the Proofpoint On Demand Email Security data connector using an ARM Tempate.\n\n1. Click the **Deploy to Azure** button below. \n\n\t[![Deploy To Azure](https://aka.ms/deploytoazurebutton)](https://aka.ms/sentinelproofpointpodazuredeploy)\n2. Select the preferred **Subscription**, **Resource Group** and **Location**. \n3. Enter the **Workspace ID**, **Workspace Key**, **ProofpointClusterID**, **ProofpointToken** and deploy. \n4. Mark the checkbox labeled **I agree to the terms and conditions stated above**. \n5. Click **Purchase** to deploy."
},
{
"title": "Option 2 - Manual Deployment of Azure Functions",
"description": "Use the following step-by-step instructions to deploy the Proofpoint On Demand Email Security data connector manually with Azure Functions (Deployment via Visual Studio Code)."
},
{
"title": "",
"description": "**1. Deploy a Function App**\n\n> NOTE:You will need to [prepare VS code](https://docs.microsoft.com/azure/azure-functions/functions-create-first-function-python#prerequisites) for Azure function development.\n\n1. Download the [Azure Function App](https://github.com/Azure/Azure-Sentinel/blob/ProofpointPODConnector/DataConnectors/ProofpointPOD/ProofpointSentinelConn.zip?raw=true) file. Extract archive to your local development computer.\n2. Start VS Code. Choose File in the main menu and select Open Folder.\n3. Select the top level folder from extracted files.\n4. Choose the Azure icon in the Activity bar, then in the **Azure: Functions** area, choose the **Deploy to function app** button.\nIf you aren't already signed in, choose the Azure icon in the Activity bar, then in the **Azure: Functions** area, choose **Sign in to Azure**\nIf you're already signed in, go to the next step.\n5. Provide the following information at the prompts:\n\n\ta. **Select folder:** Choose a folder from your workspace or browse to one that contains your function app.\n\n\tb. **Select Subscription:** Choose the subscription to use.\n\n\tc. Select **Create new Function App in Azure** (Don't choose the Advanced option)\n\n\td. **Enter a globally unique name for the function app:** Type a name that is valid in a URL path. The name you type is validated to make sure that it's unique in Azure Functions. (e.g. ProofpointXXXXX).\n\n\te. **Select a runtime:** Choose Python 3.8.\n\n\tf. Select a location for new resources. For better performance and lower costs choose the same [region](https://azure.microsoft.com/regions/) where Azure Sentinel is located.\n\n6. Deployment will begin. A notification is displayed after your function app is created and the deployment package is applied.\n7. Go to Azure Portal for the Function App configuration."
},
{
"title": "",
"description": "**2. Configure the Function App**\n\n1. In the Function App, select the Function App Name and select **Configuration**.\n2. In the **Application settings** tab, select **+ New application setting**.\n3. Add each of the following application settings individually, with their respective string values (case-sensitive): \n\t\tProofpointClusterID\n\t\tProofpointToken\n\t\tWorkspaceID\n\t\tWorkspaceKey\n3. Once all application settings have been entered, click **Save**."
}
]
}

Двоичные данные
DataConnectors/ProofpointPOD/ProofpointSentinelConn.zip Normal file

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1,163 @@
import os
import datetime
import socket
import websocket
import json
import ssl
import time
import base64
import hashlib
import hmac
import requests
import azure.functions as func
import logging
import certifi
customer_id = os.environ['WorkspaceID']
shared_key = os.environ['WorkspaceKey']
cluster_id = os.environ['ProofpointClusterID']
_token = os.environ['ProofpointToken']
time_delay_minutes = 60
event_types = ["maillog","message"]
def main(mytimer: func.TimerRequest) -> None:
if mytimer.past_due:
logging.info('The timer is past due!')
logging.info('Starting program')
if datetime.datetime.utcnow().minute < 2:
time.sleep(120)
api = Proofpoint_api()
for evt_type in event_types:
api.get_data(event_type=evt_type)
class Proofpoint_api:
def __init__(self):
self.cluster_id = cluster_id
self._token = _token
self.time_delay_minutes = int(time_delay_minutes)
self.gen_timeframe(time_delay_minutes=self.time_delay_minutes)
def gen_timeframe(self, time_delay_minutes):
before_time = datetime.datetime.utcnow() - datetime.timedelta(minutes=time_delay_minutes)
self.before_time = before_time.strftime("%Y-%m-%dT%H:59:59.999999")
self.after_time = before_time.strftime("%Y-%m-%dT%H:00:00.000000")
def set_websocket_conn(self, event_type):
url = f"wss://logstream.proofpoint.com:443/v1/stream?cid={self.cluster_id}&type={event_type}&sinceTime={self.after_time}&toTime={self.before_time}"
logging.info('Opening Websocket logstream {}'.format(url))
# defining headers for websocket connection (do not change this)
header = {
"Connection": "Upgrade",
"Upgrade": "websocket",
"Authorization": f"Bearer {self._token}",
"Sec-WebSocket-Key": "SGVsbG8sIHdvcmxkIQ==",
"Sec-WebSocket-Version": "13"
}
sslopt = {
'cert_reqs': ssl.CERT_REQUIRED,
'ca_certs': certifi.where(),
'check_hostname': True
}
try:
ws = websocket.create_connection(url, header=header, sslopt=sslopt)
ws.settimeout(20)
time.sleep(2)
logging.info(
'Websocket connection established to cluster_id={}, event_type={}'.format(self.cluster_id, event_type))
print(
'Websocket connection established to cluster_id={}, event_type={}'.format(self.cluster_id, event_type))
return ws
except Exception as err:
logging.error('Error while connectiong to websocket {}'.format(err))
print('Error while connectiong to websocket {}'.format(err))
return None
def gen_chunks_to_object(self,data,chunksize=100):
chunk = []
for index, line in enumerate(data):
if (index % chunksize == 0 and index > 0):
yield chunk
del chunk[:]
chunk.append(line)
yield chunk
def gen_chunks(self,data,event_type):
for chunk in self.gen_chunks_to_object(data, chunksize=10000):
print(len(chunk))
obj_array = []
for row in chunk:
if row != None and row != '':
y = json.loads(row)
y.update({'event_type': event_type})
obj_array.append(y)
body = json.dumps(obj_array)
self.post_data(body,len(obj_array),event_type)
def build_signature(self, date, content_length, method, content_type, resource):
x_headers = 'x-ms-date:' + date
string_to_hash = method + "\n" + str(content_length) + "\n" + content_type + "\n" + x_headers + "\n" + resource
bytes_to_hash = bytes(string_to_hash, encoding="utf-8")
decoded_key = base64.b64decode(shared_key)
encoded_hash = base64.b64encode(
hmac.new(decoded_key, bytes_to_hash, digestmod=hashlib.sha256).digest()).decode()
authorization = "SharedKey {}:{}".format(customer_id, encoded_hash)
return authorization
def post_data(self,body,chunk_count,event_type):
method = 'POST'
content_type = 'application/json'
resource = '/api/logs'
rfc1123date = datetime.datetime.utcnow().strftime('%a, %d %b %Y %H:%M:%S GMT')
content_length = len(body)
signature = self.build_signature(rfc1123date, content_length, method, content_type,
resource)
uri = 'https://' + customer_id + '.ods.opinsights.azure.com' + resource + '?api-version=2016-04-01'
headers = {
'content-type': content_type,
'Authorization': signature,
'Log-Type': 'ProofpointPOD_' + event_type,
'x-ms-date': rfc1123date
}
response = requests.post(uri, data=body, headers=headers)
if (response.status_code >= 200 and response.status_code <= 299):
logging.info("Chunk was processed({} events)".format(chunk_count))
print("Chunk was processed({} events)".format(chunk_count))
else:
print("Error during sending events to Azure Sentinel. Response code:{}".format(response.status_code))
logging.warn("Error during sending events to Azure Sentinel. Response code: {}".format(response.status_code))
def get_data(self, event_type=None):
sent_events = 0
ws = self.set_websocket_conn(event_type)
time.sleep(2)
if ws is not None:
events = []
while True:
try:
data = ws.recv()
events.append(data)
sent_events += 1
if len(events) > 500:
self.gen_chunks(events,event_type)
events = []
except websocket._exceptions.WebSocketTimeoutException:
break
except Exception as err:
logging.error('Error while receiving data: {}'.format(err))
print('Error while receiving data: {}'.format(err))
break
try:
ws.close()
except Exception as err:
logging.error('Error while closing socket: {}'.format(err))
print('Error while closing socket: {}'.format(err))
if sent_events > 0:
self.gen_chunks(events,event_type)
logging.info('Total events sent: {}. Type: {}. Period(UTC): {} - {}'.format(sent_events, event_type,
self.after_time,
self.before_time))
print('Total events sent: {}. Type: {}. Period(UTC): {} - {}'.format(sent_events, event_type,
self.after_time,
self.before_time))

Просмотреть файл

@ -0,0 +1,11 @@
{
"scriptFile": "__init__.py",
"bindings": [
{
"name": "mytimer",
"type": "timerTrigger",
"direction": "in",
"schedule": "0 0 * * * *"
}
]
}

Просмотреть файл

@ -0,0 +1,205 @@
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"FunctionName": {
"defaultValue": "PpointConn",
"type": "string"
},
"WorkspaceID": {
"type": "string",
"defaultValue": "<workspaceID>"
},
"WorkspaceKey": {
"type": "securestring",
"defaultValue": "<workspaceKey>"
},
"ProofpointClusterID": {
"type": "string",
"defaultValue": "<ProofpointClusterID>"
},
"ProofpointToken": {
"type": "securestring",
"defaultValue": "<ProofpointToken>"
}
},
"variables": {
"FunctionName": "[concat(toLower(parameters('FunctionName')), uniqueString(resourceGroup().id))]"
},
"resources": [
{
"type": "Microsoft.Insights/components",
"apiVersion": "2015-05-01",
"name": "[variables('FunctionName')]",
"location": "[resourceGroup().location]",
"kind": "web",
"properties": {
"Application_Type": "web",
"ApplicationId": "[variables('FunctionName')]"
}
},
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-06-01",
"name": "[tolower(variables('FunctionName'))]",
"location": "[resourceGroup().location]",
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"kind": "StorageV2",
"properties": {
"networkAcls": {
"bypass": "AzureServices",
"virtualNetworkRules": [],
"ipRules": [],
"defaultAction": "Allow"
},
"supportsHttpsTrafficOnly": true,
"encryption": {
"services": {
"file": {
"keyType": "Account",
"enabled": true
},
"blob": {
"keyType": "Account",
"enabled": true
}
},
"keySource": "Microsoft.Storage"
}
}
},
{
"type": "Microsoft.Storage/storageAccounts/blobServices",
"apiVersion": "2019-06-01",
"name": "[concat(variables('FunctionName'), '/default')]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', tolower(variables('FunctionName')))]"
],
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"properties": {
"cors": {
"corsRules": []
},
"deleteRetentionPolicy": {
"enabled": false
}
}
},
{
"type": "Microsoft.Storage/storageAccounts/fileServices",
"apiVersion": "2019-06-01",
"name": "[concat(variables('FunctionName'), '/default')]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', tolower(variables('FunctionName')))]"
],
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"properties": {
"cors": {
"corsRules": []
}
}
},
{
"type": "Microsoft.Web/sites",
"apiVersion": "2018-11-01",
"name": "[variables('FunctionName')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', tolower(variables('FunctionName')))]",
"[resourceId('Microsoft.Insights/components', variables('FunctionName'))]"
],
"kind": "functionapp,linux",
"identity": {
"type": "SystemAssigned"
},
"properties": {
"name": "[variables('FunctionName')]",
"httpsOnly": true,
"clientAffinityEnabled": true,
"alwaysOn": true,
"reserved": true
},
"resources": [
{
"apiVersion": "2018-11-01",
"type": "config",
"name": "appsettings",
"dependsOn": [
"[concat('Microsoft.Web/sites/', variables('FunctionName'))]"
],
"properties": {
"FUNCTIONS_EXTENSION_VERSION": "~3",
"FUNCTIONS_WORKER_RUNTIME": "python",
"APPINSIGHTS_INSTRUMENTATIONKEY": "[reference(resourceId('Microsoft.insights/components', variables('FunctionName')), '2015-05-01').InstrumentationKey]",
"APPLICATIONINSIGHTS_CONNECTION_STRING": "[reference(resourceId('microsoft.insights/components', variables('FunctionName')), '2015-05-01').ConnectionString]",
"AzureWebJobsStorage": "[concat('DefaultEndpointsProtocol=https;AccountName=', toLower(variables('FunctionName')),';AccountKey=',listKeys(resourceId('Microsoft.Storage/storageAccounts', toLower(variables('FunctionName'))), '2019-06-01').keys[0].value, ';EndpointSuffix=core.windows.net')]",
"WorkspaceID": "[parameters('WorkspaceID')]",
"WorkspaceKey": "[parameters('WorkspaceKey')]",
"ProofpointClusterID": "[parameters('ProofpointClusterID')]",
"ProofpointToken": "[parameters('ProofpointToken')]",
"WEBSITE_RUN_FROM_PACKAGE": "https://github.com/Azure/Azure-Sentinel/blob/ProofpointPODConnector/DataConnectors/ProofpointPOD/ProofpointSentinelConn.zip?raw=true"
}
}
]
},
{
"type": "Microsoft.Web/sites/hostNameBindings",
"apiVersion": "2018-11-01",
"name": "[concat(variables('FunctionName'), '/', variables('FunctionName'), '.azurewebsites.net')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', variables('FunctionName'))]"
],
"properties": {
"siteName": "[variables('FunctionName')]",
"hostNameType": "Verified"
}
},
{
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
"apiVersion": "2019-06-01",
"name": "[concat(variables('FunctionName'), '/default/azure-webjobs-hosts')]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts/blobServices', variables('FunctionName'), 'default')]",
"[resourceId('Microsoft.Storage/storageAccounts', variables('FunctionName'))]"
],
"properties": {
"publicAccess": "None"
}
},
{
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
"apiVersion": "2019-06-01",
"name": "[concat(variables('FunctionName'), '/default/azure-webjobs-secrets')]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts/blobServices', variables('FunctionName'), 'default')]",
"[resourceId('Microsoft.Storage/storageAccounts', variables('FunctionName'))]"
],
"properties": {
"publicAccess": "None"
}
},
{
"type": "Microsoft.Storage/storageAccounts/fileServices/shares",
"apiVersion": "2019-06-01",
"name": "[concat(variables('FunctionName'), '/default/', tolower(variables('FunctionName')))]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts/fileServices', variables('FunctionName'), 'default')]",
"[resourceId('Microsoft.Storage/storageAccounts', variables('FunctionName'))]"
],
"properties": {
"shareQuota": 5120
}
}
]
}

Просмотреть файл

@ -0,0 +1,15 @@
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
}
}
},
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[1.*, 2.0.0)"
}
}

Просмотреть файл

@ -0,0 +1,4 @@
{
"$schema": "http://json.schemastore.org/proxies",
"proxies": {}
}

Просмотреть файл

@ -0,0 +1,8 @@
# DO NOT include azure-functions-worker in this file
# The Python Worker is managed by Azure Functions platform
# Manually managing azure-functions-worker may cause unexpected issues
azure-functions
requests
websocket-client==0.55.0
certifi

Просмотреть файл

@ -0,0 +1,299 @@
// Usage Instruction :
// Paste below query in log analytics, click on Save button and select as Function from drop down by specifying function name and alias as ProofpointPOD.
// Function usually takes 10-15 minutes to activate. You can then use function alias from any other queries (e.g. ProofpointPOD | take 10).
// Reference : Using functions in Azure monitor log queries : https://docs.microsoft.com/azure/azure-monitor/log-query/functions
let ProofpointPOD_maillog_view = view () {
ProofpointPOD_maillog_CL
| extend
SmMsgid=column_ifexists('sm_msgid_g', ''),
PpsCid=column_ifexists('pps_cid_s', ''),
PpsAgent=column_ifexists('pps_agent_s', ''),
Id=column_ifexists('id_s', ''),
SmNrcpts=column_ifexists('sm_nrcpts_s', ''),
SmAuth=column_ifexists('sm_auth_s', ''),
SmClass=column_ifexists('sm_class_s', ''),
SmQid=column_ifexists('sm_qid_s', ''),
MetadataOriginDataAgent=column_ifexists('metadata_origin_data_agent_s', ''),
MetadataOriginDataCid=column_ifexists('metadata_origin_data_cid_s', ''),
SmMailer=column_ifexists('sm_mailer_s', ''),
SmDsn=column_ifexists('sm_dsn_s', ''),
SmPri=column_ifexists('sm_pri_s', ''),
SmXdelay=column_ifexists('sm_xdelay_s', ''),
SmCtladdr=column_ifexists('sm_ctladdr_s', ''),
EventUid=column_ifexists('sm_msgid_s', ''),
NetworkBytes=column_ifexists('sm_sizeBytes_s', ''),
TlsEstablished=column_ifexists('sm_tls_verify_s', ''),
SrcNatIpAddr=column_ifexists('sm_relay_s', ''),
ProcessName=column_ifexists('sm_daemon_s', ''),
NetworkProtocol=column_ifexists('sm_proto_s', ''),
SrcUserUpn=column_ifexists('sm_from_s', ''),
EventOriginalTime=column_ifexists('ts_t', ''),
EventOriginalMessage=column_ifexists('data_s', ''),
EventType=column_ifexists('event_type_s', ''),
NetworkConnectionStateDetailed=column_ifexists('sm_stat_s', ''),
DstUserUpn=column_ifexists('sm_to_s', ''),
NetworkDuration=column_ifexists('sm_delay_s', ''),
EventVendor="Proofpoint",
EventProduct="Proofpoint On Demand Email Security"
| project
TimeGenerated,
EventVendor,
EventProduct,
SmMsgid,
PpsCid,
PpsAgent,
Id,
SmNrcpts,
SmAuth,
SmClass,
SmQid,
MetadataOriginDataAgent,
MetadataOriginDataCid,
SmMailer,
SmDsn,
SmPri,
SmXdelay,
SmCtladdr,
EventUid,
NetworkBytes,
TlsEstablished,
SrcNatIpAddr,
ProcessName,
NetworkProtocol,
SrcUserUpn,
EventOriginalTime,
EventOriginalMessage,
EventType,
NetworkConnectionStateDetailed,
DstUserUpn,
NetworkDuration
};
let ProofpointPOD_message_view = view () {
ProofpointPOD_message_CL
| extend
FilterModulesUrldefenseCountsNoRewriteIsLargeMsgPartSize=column_ifexists('filter_modules_urldefense_counts_noRewriteIsLargeMsgPartSize_d', ''),
PpsVersion=column_ifexists('pps_version_s', ''),
PpsCid=column_ifexists('pps_cid_s', ''),
MsgParts=column_ifexists('msgParts_s', ''),
MetadataOriginDataAgent=column_ifexists('metadata_origin_data_agent_s', ''),
MetadataOriginDataVersion=column_ifexists('metadata_origin_data_version_s', ''),
MetadataOriginDataCid=column_ifexists('metadata_origin_data_cid_s', ''),
ConnectionHelo=column_ifexists('connection_helo_s', ''),
MsgLang=column_ifexists('msg_lang_s', ''),
MsgNormalizedHeaderSubject=column_ifexists('msg_normalizedHeader_subject_s', ''),
MsgNormalizedHeaderMessageId=column_ifexists('msg_normalizedHeader_message_id_s', ''),
MsgNormalizedHeaderTo=column_ifexists('msg_normalizedHeader_to_s', ''),
MsgNormalizedHeadertoHashed=column_ifexists('msg_normalizedHeader_toHashed_s', ''),
MsgNormalizedHeaderFrom=column_ifexists('msg_normalizedHeader_from_s', ''),
MsgNormalizedHeaderFromHashed=column_ifexists('msg_normalizedHeader_fromHashed_s', ''),
MsgHeaderFrom=column_ifexists('msg_header_from_s', ''),
MsgHeaderFromHashed=column_ifexists('msg_header_fromHashed_s', ''),
MsgHeaderMessageId=column_ifexists('msg_header_message_id_s', ''),
MsgHeaderSubject=column_ifexists('msg_header_subject_s', ''),
MsgHeaderTo=column_ifexists('msg_header_to_s', ''),
MsgHeaderToHashed=column_ifexists('msg_header_toHashed_s', ''),
MsgParsedAddressesFromHashed=column_ifexists('msg_parsedAddresses_fromHashed_s', ''),
MsgParsedAddressesFrom=column_ifexists('msg_parsedAddresses_from_s', ''),
MsgParsedAddressesToHashed=column_ifexists('msg_parsedAddresses_toHashed_s', ''),
MsgParsedAddressesTo=column_ifexists('msg_parsedAddresses_to_s', ''),
FilterActions=column_ifexists('filter_actions_s', ''),
FilterRoutes=column_ifexists('filter_routes_s', ''),
FilterQid=column_ifexists('filter_qid_s', ''),
FilterIsMsgEncrypted=column_ifexists('filter_isMsgEncrypted_b', ''),
FilterIsMsgReinjected=column_ifexists('filter_isMsgReinjected_b', ''),
FilterQuarantineRule=column_ifexists('filter_quarantine_rule_s', ''),
FilterQuarantineFolder=column_ifexists('filter_quarantine_folder_s', ''),
FilterModulesDmarcSrvid=column_ifexists('filter_modules_dmarc_srvid_s', ''),
FilterModulesDmarcRecords=column_ifexists('filter_modules_dmarc_records_s', ''),
FilterModulesDmarcFilterdResult=column_ifexists('filter_modules_dmarc_filterdResult_s', ''),
FilterModulesDmarcAuthResults=column_ifexists('filter_modules_dmarc_authResults_s', ''),
FilterModulesSpfDomain=column_ifexists('filter_modules_spf_domain_s', ''),
FilterModulesSpfResult=column_ifexists('filter_modules_spf_result_s', ''),
FilterModulesSpamTriggeredClassifier=column_ifexists('filter_modules_spam_triggeredClassifier_s', ''),
FilterModulesSpamSafeBlockedListMatches=column_ifexists('filter_modules_spam_safeBlockedListMatches_s', ''),
FilterModulesSpamVersionEngine=column_ifexists('filter_modules_spam_version_engine_s', ''),
FilterModulesSpamVersionDefinitions=column_ifexists('filter_modules_spam_version_definitions_s', ''),
FilterModulesSpamScoresOverall=column_ifexists('filter_modules_spam_scores_overall_d', ''),
FilterModulesSpamScoresEngine=column_ifexists('filter_modules_spam_scores_engine_d', ''),
FilterModulesSpamScoresClassifiers=column_ifexists('filter_modules_spam_scores_classifiers_s', ''),
FilterModulesSpamLangs=column_ifexists('filter_modules_spam_langs_s', ''),
FilterModulesUrldefenseVersionEngine=column_ifexists('filter_modules_urldefense_version_engine_s', ''),
FilterModulesUrldefenseCountsUnique=column_ifexists('filter_modules_urldefense_counts_unique_d', ''),
FilterModulesUrldefenseCountsRewritten=column_ifexists('filter_modules_urldefense_counts_rewritten_d', ''),
FilterModulesUrldefenseCountsTotal=column_ifexists('filter_modules_urldefense_counts_total_d', ''),
FilterModulesDkimv=column_ifexists('filter_modules_dkimv_s', ''),
FilterModulesPdrV2Response=column_ifexists('filter_modules_pdr_v2_response_s', ''),
FilterModulesZerohourScore=column_ifexists('filter_modules_zerohour_score_s', ''),
FilterDisposition=column_ifexists('filter_disposition_s', ''),
FilterSuborgsRcpts=column_ifexists('filter_suborgs_rcpts_s', ''),
FilterSuborgsSender=column_ifexists('filter_suborgs_sender_s', ''),
FilterMsgSizeBytes=column_ifexists('filter_msgSizeBytes_d', ''),
FilterVerifiedRcptsHashed=column_ifexists('filter_verified_rcptsHashed_s', ''),
FilterVerifiedRcpts=column_ifexists('filter_verified_rcpts_s', ''),
Guid=column_ifexists('guid_s', ''),
EnvelopeRcptsHashed=column_ifexists('envelope_rcptsHashed_s', ''),
EnvelopeFromHashed=column_ifexists('envelope_fromHashed_s', ''),
MsgNormalizedHeaderReturnPathHashed=column_ifexists('msg_normalizedHeader_return_pathHashed_s', ''),
MsgNormalizedHeaderXMailer=column_ifexists('msg_normalizedHeader_x_mailer_s', ''),
MsgNormalizedHeaderReturnPath=column_ifexists('msg_normalizedHeader_return_path_s', ''),
MsgHeaderXMailer=column_ifexists('msg_header_x_mailer_s', ''),
MsgHeaderReturnPathHashed=column_ifexists('msg_header_return_pathHashed_s', ''),
MsgHeaderReturnPath=column_ifexists('msg_header_return_path_s', ''),
FilterModulesSpamCharsets=column_ifexists('filter_modules_spam_charsets_s', ''),
FilterModulesDmarcAlignment=column_ifexists('filter_modules_dmarc_alignment_s', ''),
MsgNormalizedHeaderXOriginatingIp=column_ifexists('msg_normalizedHeader_x_originating_ip_s', ''),
MsgHeaderXOriginatingIp=column_ifexists('msg_header_x_originating_ip_s', ''),
MsgNormalizedHeaderReplyTo=column_ifexists('msg_normalizedHeader_reply_to_s', ''),
MsgNormalizedHeaderReplyToHashed=column_ifexists('msg_normalizedHeader_reply_toHashed_s', ''),
MsgHeaderReplyToHashed=column_ifexists('msg_header_reply_toHashed_s', ''),
MsgHeaderReplyTo=column_ifexists('msg_header_reply_to_s', ''),
FilterModulesUrldefenseCountsNoRewriteIsEmail=column_ifexists('filter_modules_urldefense_counts_noRewriteIsEmail_d', ''),
FilterModulesPdrV2Rscore=column_ifexists('filter_modules_pdr_v2_rscore_d', ''),
FilterOrigGuid=column_ifexists('filter_origGuid_s', ''),
MsgNormalizedHeaderCc=column_ifexists('msg_normalizedHeader_cc_s', ''),
MsgNormalizedHeaderCcHashed=column_ifexists('msg_normalizedHeader_ccHashed_s', ''),
MsgParsedAddressesCcHashed=column_ifexists('msg_parsedAddresses_ccHashed_s', ''),
MsgParsedAddressesCc=column_ifexists('msg_parsedAddresses_cc_s', ''),
MsgHeaderCcHashed=column_ifexists('msg_header_ccHashed_s', ''),
MsgHeaderCc=column_ifexists('msg_header_cc_s', ''),
FilterModulesAvVirusNames=column_ifexists('filter_modules_av_virusNames_s', ''),
FilterThrottleIp=column_ifexists('filter_throttleIp_s', ''),
FilterModulesUrldefenseCountsNoRewriteIsUnsupportedScheme=column_ifexists('filter_modules_urldefense_counts_noRewriteIsUnsupportedScheme_d', ''),
FilterModulesUrldefenseCountsNoRewriteIsSchemeless=column_ifexists('filter_modules_urldefense_counts_noRewriteIsSchemeless_d', ''),
FilterModulesUrldefenseCountsNoRewriteIsMaxLengthExceeded=column_ifexists('filter_modules_urldefense_counts_noRewriteIsMaxLengthExceeded_d', ''),
FilterModulesUrldefenseCountsNoRewriteIsExcludedDomain=column_ifexists('filter_modules_urldefense_counts_noRewriteIsExcludedDomain_d', ''),
PpsAgent=column_ifexists('pps_agent_s', ''),
EventOriginalTime=column_ifexists('ts_t', ''),
TlsCipher=column_ifexists('connection_tls_inbound_cipher_s', ''),
TlsCipherBits=column_ifexists('connection_tls_inbound_cipherBits_d', ''),
TlsVersion=column_ifexists('connection_tls_inbound_version_s', ''),
SrcIpAddr=column_ifexists('connection_ip_s', ''),
NetworkSessionId=column_ifexists('connection_sid_s', ''),
SrcDvcHostname=column_ifexists('connection_host_s', ''),
SrcGeoCountry=column_ifexists('connection_country_s', ''),
NetworkProtocol=column_ifexists('connection_protocol_s', ''),
NetworkConnectionState=column_ifexists('connection_resolveStatus_s', ''),
NetworkBytes=column_ifexists('msg_sizeBytes_d', ''),
NetworkDuration=column_ifexists('filter_durationSecs_d', ''),
EventStartTime=column_ifexists('filter_startTime_t', ''),
NetworkDirection=column_ifexists('filter_routeDirection_s', ''),
DstUserUpn=column_ifexists('envelope_rcpts_s', ''),
SrcUserUpn=column_ifexists('envelope_from_s', ''),
EventType=column_ifexists('event_type_s', ''),
EventVendor="Proofpoint",
EventProduct="Proofpoint On Demand Email Security"
| project
TimeGenerated,
EventVendor,
EventProduct,
FilterModulesUrldefenseCountsNoRewriteIsLargeMsgPartSize,
PpsVersion,
PpsCid,
MsgParts,
MetadataOriginDataAgent,
MetadataOriginDataVersion,
MetadataOriginDataCid,
ConnectionHelo,
MsgLang,
MsgNormalizedHeaderSubject,
MsgNormalizedHeaderMessageId,
MsgNormalizedHeaderTo,
MsgNormalizedHeadertoHashed,
MsgNormalizedHeaderFrom,
MsgNormalizedHeaderFromHashed,
MsgHeaderFrom,
MsgHeaderFromHashed,
MsgHeaderMessageId,
MsgHeaderSubject,
MsgHeaderTo,
MsgHeaderToHashed,
MsgParsedAddressesFromHashed,
MsgParsedAddressesFrom,
MsgParsedAddressesToHashed,
MsgParsedAddressesTo,
FilterActions,
FilterRoutes,
FilterQid,
FilterIsMsgEncrypted,
FilterIsMsgReinjected,
FilterQuarantineRule,
FilterQuarantineFolder,
FilterModulesDmarcSrvid,
FilterModulesDmarcRecords,
FilterModulesDmarcFilterdResult,
FilterModulesDmarcAuthResults,
FilterModulesSpfDomain,
FilterModulesSpfResult,
FilterModulesSpamTriggeredClassifier,
FilterModulesSpamSafeBlockedListMatches,
FilterModulesSpamVersionEngine,
FilterModulesSpamVersionDefinitions,
FilterModulesSpamScoresOverall,
FilterModulesSpamScoresEngine,
FilterModulesSpamScoresClassifiers,
FilterModulesSpamLangs,
FilterModulesUrldefenseVersionEngine,
FilterModulesUrldefenseCountsUnique,
FilterModulesUrldefenseCountsRewritten,
FilterModulesUrldefenseCountsTotal,
FilterModulesDkimv,
FilterModulesPdrV2Response,
FilterModulesZerohourScore,
FilterDisposition,
FilterSuborgsRcpts,
FilterSuborgsSender,
FilterMsgSizeBytes,
FilterVerifiedRcptsHashed,
FilterVerifiedRcpts,
Guid,
EnvelopeRcptsHashed,
EnvelopeFromHashed,
MsgNormalizedHeaderReturnPathHashed,
MsgNormalizedHeaderXMailer,
MsgNormalizedHeaderReturnPath,
MsgHeaderXMailer,
MsgHeaderReturnPathHashed,
MsgHeaderReturnPath,
FilterModulesSpamCharsets,
FilterModulesDmarcAlignment,
MsgNormalizedHeaderXOriginatingIp,
MsgHeaderXOriginatingIp,
MsgNormalizedHeaderReplyTo,
MsgNormalizedHeaderReplyToHashed,
MsgHeaderReplyToHashed,
MsgHeaderReplyTo,
FilterModulesUrldefenseCountsNoRewriteIsEmail,
FilterModulesPdrV2Rscore,
FilterOrigGuid,
MsgNormalizedHeaderCc,
MsgNormalizedHeaderCcHashed,
MsgParsedAddressesCcHashed,
MsgParsedAddressesCc,
MsgHeaderCcHashed,
MsgHeaderCc,
FilterModulesAvVirusNames,
FilterThrottleIp,
FilterModulesUrldefenseCountsNoRewriteIsUnsupportedScheme,
FilterModulesUrldefenseCountsNoRewriteIsSchemeless,
FilterModulesUrldefenseCountsNoRewriteIsMaxLengthExceeded,
FilterModulesUrldefenseCountsNoRewriteIsExcludedDomain,
PpsAgent,
SrcDvcHostname,
EventOriginalTime,
TlsCipher,
TlsCipherBits,
TlsVersion,
SrcIpAddr,
NetworkSessionId,
SrcGeoCountry,
NetworkProtocol,
NetworkConnectionState,
NetworkBytes,
NetworkDuration,
EventStartTime,
NetworkDirection,
DstUserUpn,
SrcUserUpn,
EventType
};
union isfuzzy=true ProofpointPOD_message_view, ProofpointPOD_maillog_view

Просмотреть файл

@ -0,0 +1,632 @@
[{
"ts": "2020-11-05T12:59:43.881767+0100",
"sm": {
"mailer": "esmtp",
"xdelay": "00:00:00",
"delay": "00:00:00",
"tls": {
"verify": "OK"
},
"dsn": "2.0.0",
"to": ["<rcpnt@dom.net>"],
"relay": "relay.mail.net [10.10.10.10]",
"stat": "Sent (<not.b1ff7-del.email@xyz.net> [InternalId",
"pri": "154217",
"qid": "0A0BqJgv000000"
},
"pps": {
"cid": "CID",
"agent": "t1234555.popps.net"
},
"id": "rGWIupM+g6R4PWIeqf6SMA",
"data": "2020-11-05T12:59:43.881767+01:00 t1234555 sendmail[18160]: 0A0BqJgv000000: to=<rcpnt@dom.net>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, tls_verify=OK, pri=154217, relay=relay.mail.net. [10.10.10.10], dsn=2.0.0, stat=Sent (<not.b1ff7-del.email@xyz.net> [InternalId=3444563792735, Hostname=eurprd01.prod.exchangelabs.com] 45616 bytes in 0.073, 610.105 KB/sec Queued mail for delivery)",
"metadata": {
"origin": {
"data": {
"agent": "t1234555.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"sm": {
"delay": "00:00:03",
"dsn": "2.0.0",
"tls": {
"verify": "OK"
},
"xdelay": "00:00:03",
"mailer": "esmtp",
"qid": "0A0BqJgv000000",
"pri": "2242435",
"relay": "relay.mail.net [10.10.10.10]",
"to": ["<rcpnt@dom.net>"],
"stat": "Sent (<not.b1ff7-del.email@xyz.net> [InternalId"
},
"ts": "2020-11-05T12:59:44.487319+0100",
"pps": {
"cid": "CID",
"agent": "t1234555.ppops.net"
},
"data": "2020-11-05T12:59:44.487319+01:00 t1234555 sendmail[18157]: 0A0BqJgv000000: to=<rcpnt@dom.net>, delay=00:00:03, xdelay=00:00:03, mailer=esmtp, tls_verify=OK, pri=2242435, relay=relay.mail.net. [10.10.10.10], dsn=2.0.0, stat=Sent (<not.b1ff7-del.email@xyz.net> [InternalId=18167711674865, Hostname=eurprd01.prod.exchangelabs.com] 2159936 bytes in 0.641, 3288.805 KB/sec Queued mail for delivery)",
"id": "tnsgrBLZ9hdWbGRd3HMS9A",
"metadata": {
"origin": {
"data": {
"agent": "t1234555.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"sm": {
"from": "<bounce+c9bb64.9a53-anmol.arora",
"tls": {
"verify": "NONE"
},
"msgid": "<TESTMSGID>",
"auth": "NONE",
"class": "0",
"proto": "SMTP",
"daemon": "MTA",
"qid": "0A5BqKs4030248",
"sizeBytes": "8255",
"nrcpts": "1",
"relay": "t1234555.ppops.net [127.0.0.1]"
},
"ts": "2020-11-05T12:59:45.217049+0100",
"data": "2020-11-05T12:59:45.217049+01:00 t1234555 sendmail[30248]: 0A5BqKs4030248: from=<last.name@from.net>, size=8255, class=0, nrcpts=1, msgid=<TESTMSGID>, proto=SMTP, daemon=MTA, tls_verify=NONE, auth=NONE, relay=t1234555.ppops.net [127.0.0.1]",
"id": "Rv4coMMYHs/yWaGyMlR49g",
"pps": {
"agent": "t1234555.ppops.net",
"cid": "CID"
},
"metadata": {
"origin": {
"data": {
"agent": "t1234555.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"sm": {
"pri": "128255",
"qid": "0A5BqKs4030248",
"stat": "Sent (<not.b1ff7-del.email@xyz.net> [InternalId",
"relay": "relay.mail.net [10.10.10.10]",
"to": ["<rcpnt@dom.net>"],
"tls": {
"verify": "OK"
},
"dsn": "2.0.0",
"delay": "00:00:01",
"xdelay": "00:00:01",
"mailer": "esmtp"
},
"ts": "2020-11-05T12:59:46.045430+0100",
"data": "2020-11-05T12:59:46.045430+01:00 t1234555 sendmail[18165]: 0A5BqKs4030248: to=<rcpnt@dom.net>, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, tls_verify=OK, pri=128255, relay=externals-adidasgr...ction.outlook.com. [10.10.10.10], dsn=2.0.0, stat=Sent (<not.b1ff7-del.email@xyz.net> [InternalId=...B6347.eurprd01.prod.exchangelabs.com] 19101 bytes in 0.071, 260.062 KB/sec Queued mail for delivery)",
"id": "wYvxXQ8YHRvWgpopQeLskA",
"pps": {
"cid": "CID",
"agent": "t1234555.ppops.net"
},
"metadata": {
"origin": {
"data": {
"agent": "t1234555.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"ts": "2020-11-05T12:59:49.375433+0100",
"sm": {
"relay": "relay.mail.net [10.10.10.10]",
"nrcpts": "1",
"daemon": "MTA",
"sizeBytes": "148995",
"qid": "0A5BqZtL030448",
"proto": "SMTP",
"auth": "NONE",
"class": "0",
"msgid": "<TESTMSGID>",
"tls": {
"verify": "NONE"
},
"from": "<last.name@from.net>"
},
"data": "2020-11-05T12:59:49.375433+01:00 t1234555 sendmail[30448]: 0A5BqZtL030448: from=<last.name@from.net>, size=148995, class=0, nrcpts=1, msgid=<TESTMSGID>, proto=SMTP, daemon=MTA, tls_verify=NONE, auth=NONE, relay=t1234555.ppops.net [127.0.0.1]",
"id": "S57nYRhfj7qb0FUTymKhfg",
"pps": {
"agent": "t1234555.ppops.net",
"cid": "CID"
},
"metadata": {
"origin": {
"data": {
"agent": "t1234555.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"pps": {
"agent": "t1234555.ppops.net",
"cid": "CID"
},
"data": "2020-11-05T12:59:50.261397+01:00 t1234555 sendmail[30240]: 0A5BqJBl030240: from=<last.name@from.net>, size=560625, class=0, nrcpts=1, msgid=<TESTMSGID>, proto=SMTP, daemon=MTA, tls_verify=NONE, auth=NONE, relay=t1234555.ppops.net [127.0.0.1]",
"id": "KmK6ghZhp+8N+k+y5M/ZrA",
"sm": {
"relay": "relay.mail.net [10.10.10.10]",
"nrcpts": "1",
"daemon": "MTA",
"sizeBytes": "560625",
"qid": "0A5BqJBl030240",
"proto": "SMTP",
"auth": "NONE",
"class": "0",
"tls": {
"verify": "NONE"
},
"msgid": "<TESTMSGID>",
"from": "<last.name@from.net>"
},
"ts": "2020-11-05T12:59:50.261397+0100",
"metadata": {
"origin": {
"data": {
"agent": "t1234555.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"ts": "2020-11-05T12:59:50.356977+0100",
"sm": {
"nrcpts": "1",
"relay": "relay.mail.net [10.10.10.10]",
"daemon": "MTA",
"qid": "0A5BqWEW030427",
"sizeBytes": "24805",
"class": "0",
"auth": "NONE",
"proto": "SMTP",
"from": "<last.name@from.net>",
"msgid": "<TESTMSGID>",
"tls": {
"verify": "NONE"
}
},
"data": "2020-11-05T12:59:50.356977+01:00 t1234555 sendmail[30427]: 0A5BqWEW030427: from=<last.name@from.net>, size=24805, class=0, nrcpts=1, msgid=<TESTMSGID>, proto=SMTP, daemon=MTA, tls_verify=NONE, auth=NONE, relay=t1234555.ppops.net [127.0.0.1]",
"id": "6o9hWtB++VRhC2HZCU0/mQ",
"pps": {
"cid": "CID",
"agent": "t1234555.ppops.net"
},
"metadata": {
"origin": {
"data": {
"agent": "t1234555.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"pps": {
"cid": "CID",
"agent": "t1234555.ppops.net"
},
"data": "2020-11-05T12:59:51.698428+01:00 t1234555 sendmail[18173]: 0A5BqZtL030448: to=<rcpnt@dom.net>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp, tls_verify=OK, pri=268995, relay=reebok-com.mail.protection.outlook.com. [104.47.1.36], dsn=2.0.0, stat=Sent (<not.b1ff7-del.email@xyz.net> [InternalId=8723078591673, Hostname=AM0PR...281.eurprd01.prod.exchangelabs.com] 165052 bytes in 0.159, 1010.909 KB/sec Queued mail for delivery)",
"id": "jOtbUua8OnKtoWNglHt4GA",
"sm": {
"mailer": "esmtp",
"xdelay": "00:00:02",
"delay": "00:00:02",
"tls": {
"verify": "OK"
},
"dsn": "2.0.0",
"to": ["<rcpnt@dom.net>"],
"relay": "relay.mail.net [10.10.10.10]",
"stat": "Sent (<not.b1ff7-del.email@xyz.net> [InternalId",
"qid": "0A5BqZtL030448",
"pri": "268995"
},
"ts": "2020-11-05T12:59:51.698428+0100",
"metadata": {
"origin": {
"data": {
"agent": "t1234555.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"pps": {
"cid": "CID",
"agent": "t1234555.ppops.net"
},
"id": "c5Fw7jOLm46PeqG8UJEWbg",
"data": "2020-11-05T12:59:51.739825+01:00 t1234555 sendmail[18175]: 0A5BqJBl030240: to=<rcpnt@dom.net>, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, tls_verify=OK, pri=680625, relay=relay.mail.net. [10.10.10.10], dsn=2.0.0, stat=Sent (<not.b1ff7-del.email@xyz.net> [InternalId=2...285.eurprd01.prod.exchangelabs.com] 583928 bytes in 0.236, 2413.571 KB/sec Queued mail for delivery)",
"sm": {
"stat": "Sent (<not.b1ff7-del.email@xyz.net> [InternalId",
"relay": "relay.mail.net [10.10.10.10]",
"to": ["<rcpnt@dom.net>"],
"qid": "0A5BqJBl030240",
"pri": "680625",
"xdelay": "00:00:01",
"mailer": "esmtp",
"tls": {
"verify": "OK"
},
"dsn": "2.0.0",
"delay": "00:00:01"
},
"ts": "2020-11-05T12:59:51.739825+0100",
"metadata": {
"origin": {
"data": {
"agent": "t1234555.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"ts": "2020-11-05T12:59:51.822918+0100",
"sm": {
"qid": "0A5BqWEW030427",
"pri": "144805",
"stat": "Sent (<not.b1ff7-del.email@xyz.net> [InternalI...B2686.eurprd01.prod.exchangelabs.com] 36596 bytes in 0.149",
"relay": "relay.mail.net [10.10.10.10]",
"to": ["<rcpnt@dom.net>"],
"tls": {
"verify": "OK"
},
"dsn": "2.0.0",
"delay": "00:00:01",
"xdelay": "00:00:01",
"mailer": "esmtp"
},
"id": "/ALzUxRLM2Tz0YJbdoltTQ",
"data": "2020-11-05T12:59:51.822918+01:00 t1234555 sendmail[18177]: 0A5BqWEW030427: to=<rcpnt@dom.net>, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, tls_verify=OK, pri=144805, relay=relay.mail.net. [10.10.10.10], dsn=2.0.0, stat=Sent (<not.b1ff7-del.email@xyz.net> [InternalI...B2686.eurprd01.prod.exchangelabs.com] 36596 bytes in 0.149, 239.832 KB/sec Queued mail for delivery)",
"pps": {
"cid": "CID",
"agent": "t1234555.ppops.net"
},
"metadata": {
"origin": {
"data": {
"agent": "t1234555.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"ts": "2020-11-05T12:59:52.368451+0100",
"sm": {
"daemon": "MTA",
"qid": "0A5BqJgw030243",
"sizeBytes": "301268",
"nrcpts": "2",
"relay": "relay.mail.net [10.10.10.10]",
"from": "<last.name@from.net>",
"msgid": "<TESTMSGID>",
"tls": {
"verify": "NONE"
},
"auth": "NONE",
"class": "0",
"proto": "SMTP"
},
"id": "z++bC1rsPj/CWSn4ZScnTg",
"data": "2020-11-05T12:59:52.368451+01:00 t1234555 sendmail[30243]: 0A5BqJgw030243: from=<last.name@from.net>, size=301268, class=0, nrcpts=2, msgid=<TESTMSGID>, proto=SMTP, daemon=MTA, tls_verify=NONE, auth=NONE, relay=t1234555.ppops.net [127.0.0.1]",
"pps": {
"agent": "t1234555.ppops.net",
"cid": "CID"
},
"metadata": {
"origin": {
"data": {
"agent": "t1234555.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"pps": {
"agent": "t1234555.ppops.net",
"cid": "CID"
},
"id": "EdOJdJWaYM6H2KYMjj0A8w",
"data": "2020-11-05T12:59:53.128685+01:00 t1234555 sendmail[30240]: 0A5BqJBm030240: from=<last.name@from.net>, size=301692, class=0, nrcpts=1, msgid=<TESTMSGID>, proto=SMTP, daemon=MTA, tls_verify=NONE, auth=NONE, relay=t1234555.ppops.net [127.0.0.1]",
"sm": {
"class": "0",
"auth": "NONE",
"proto": "SMTP",
"from": "<last.name@from.net>",
"msgid": "<TESTMSGID>",
"tls": {
"verify": "NONE"
},
"nrcpts": "1",
"relay": "relay.mail.net [10.10.10.10]",
"qid": "0A5BqJBm030240",
"sizeBytes": "301692",
"daemon": "MTA"
},
"ts": "2020-11-05T12:59:53.128685+0100",
"metadata": {
"origin": {
"data": {
"agent": "t1234555.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"sm": {
"auth": "NONE",
"class": "-60",
"proto": "SMTP",
"from": "<last.name@from.net>",
"msgid": "<TESTMSGID>",
"tls": {
"verify": "NONE"
},
"nrcpts": "1",
"relay": "relay.mail.net [10.10.10.10]",
"qid": "0A5BqHS0030233",
"sizeBytes": "65592",
"daemon": "MTA"
},
"ts": "2020-11-05T12:59:54.447139+0100",
"pps": {
"agent": "t1234555.ppops.net",
"cid": "CID"
},
"data": "2020-11-05T12:59:54.447139+01:00 t1234555 sendmail[30233]: 0A5BqHS0030233: from=<last.name@from.net>, size=65592, class=-60, nrcpts=1, msgid=<TESTMSGID>, proto=SMTP, daemon=MTA, tls_verify=NONE, auth=NONE, relay=t1234555.ppops.net [127.0.0.1]",
"id": "o1LSqlKOOCILO8WDfvM+SQ",
"metadata": {
"origin": {
"data": {
"agent": "t1234555.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"id": "nSWY7WY+wg3vqLBEV9rlFA",
"data": "2020-11-05T12:59:54.882947+01:00 t1234555 sendmail[30448]: 0A5BqZtM030448: from=<last.name@from.net>, size=1060602, class=0, nrcpts=1, msgid=<TESTMSGID>, proto=SMTP, daemon=MTA, tls_verify=NONE, auth=NONE, relay=t1234555.ppops.net [127.0.0.1]",
"pps": {
"cid": "CID",
"agent": "t1234555.ppops.net"
},
"sm": {
"from": "<last.name@from.net>",
"tls": {
"verify": "NONE"
},
"msgid": "<TESTMSGID>",
"class": "0",
"auth": "NONE",
"proto": "SMTP",
"qid": "0A5BqZtM030448",
"sizeBytes": "1060602",
"daemon": "MTA",
"nrcpts": "1",
"relay": "t1234555.ppops.net [127.0.0.1]"
},
"ts": "2020-11-05T12:59:54.882947+0100",
"metadata": {
"origin": {
"data": {
"agent": "t1234555.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"sm": {
"class": "-60",
"auth": "NONE",
"proto": "SMTP",
"from": "<last.name@from.net>",
"tls": {
"verify": "NONE"
},
"msgid": "<TESTMSGID>",
"nrcpts": "4",
"relay": "relay.mail.net [10.10.10.10]",
"daemon": "MTA",
"qid": "0A5Bqbi3030464",
"sizeBytes": "67596"
},
"ts": "2020-11-05T12:59:55.581745+0100",
"id": "nQsGhy3nue3O9PXE9cyZ4A",
"data": "2020-11-05T12:59:55.581745+01:00 t1234555 sendmail[30464]: 0A5Bqbi3030464: from=<last.name@from.net>, size=67596, class=-60, nrcpts=4, msgid=<TESTMSGID>, proto=SMTP, daemon=MTA, tls_verify=NONE, auth=NONE, relay=t1234555.ppops.net [127.0.0.1]",
"pps": {
"cid": "CID",
"agent": "t1234555.ppops.net"
},
"metadata": {
"origin": {
"data": {
"agent": "t1234555.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"id": "TLgvfc+EnwlgpGstT4gKKg",
"data": "2020-11-05T12:59:55.702601+01:00 t1234555 sendmail[18188]: 0A5BqJBm030240: to=<rcpnt@dom.net>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp, tls_verify=OK, pri=421692, relay=relay.mail.net. [104.47.0.36], dsn=2.0.0, stat=Sent (<not.b1ff7-del.email@xyz.net> [InternalId=4...537.eurprd01.prod.exchangelabs.com] 319576 bytes in 0.197, 1576.411 KB/sec Queued mail for delivery)",
"pps": {
"cid": "CID",
"agent": "t1234555.ppops.net"
},
"sm": {
"delay": "00:00:02",
"dsn": "2.0.0",
"tls": {
"verify": "OK"
},
"mailer": "esmtp",
"xdelay": "00:00:02",
"pri": "421692",
"qid": "0A5BqJBm030240",
"to": ["<rcpnt@dom.net>"],
"relay": "relay.mail.net [10.10.10.10]",
"stat": "Sent (<not.b1ff7-del.email@xyz.net> [InternalId"
},
"ts": "2020-11-05T12:59:55.702601+0100",
"metadata": {
"origin": {
"data": {
"agent": "t1234555.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"pps": {
"cid": "CID",
"agent": "m0000001.ppops.net"
},
"data": "2020-11-05T12:59:25.616354+01:00 m0000001 sendmail[25015]: 0A5Bs6pD012719: to=<rcpnt@dom.net>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp, tls_verify=OK, pri=172457, relay=relay.mail.net. [104.47.0.36], dsn=2.0.0, stat=Sent (<not.b1ff7-del.email@xyz.net> [InternalId=57157424788340, Ho...MB5237.eurprd01.prod.exchangelabs.com] 63604 bytes in 1.095, 56.722 KB/sec Queued mail for delivery)",
"id": "4k8PCXVfzzmB3MOLxMJzow",
"ts": "2020-11-05T12:59:25.616354+0100",
"sm": {
"relay": "relay.mail.net [10.10.10.10]",
"to": ["<rcpnt@dom.net>"],
"dsn": "2.0.0",
"qid": "0A5Bs6pD012719",
"tls": {
"verify": "OK"
},
"mailer": "esmtp",
"stat": "Sent (<not.b1ff7-del.email@xyz.net> [InternalId",
"xdelay": "00:00:02",
"delay": "00:00:02",
"pri": "172457"
},
"metadata": {
"origin": {
"data": {
"agent": "m0000001.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"pps": {
"cid": "CID",
"agent": "m0000001.ppops.net"
},
"id": "yHgmo29ReWNG+wG9z2081w",
"data": "2020-11-05T12:59:25.782683+01:00 m0000001 sendmail[12716]: 0A5Bs66u012716: from=<last.name@from.net>, size=133518, class=0, nrcpts=1, msgid=<TESTMSGID>, proto=SMTP, daemon=MTA, tls_verify=NONE, auth=NONE, relay=m0000001.ppops.net [127.0.0.1]",
"ts": "2020-11-05T12:59:25.782683+0100",
"sm": {
"daemon": "MTA",
"sizeBytes": "133518",
"from": "<last.name@from.net>",
"nrcpts": "1",
"tls": {
"verify": "NONE"
},
"class": "0",
"qid": "0A5Bs66u012716",
"relay": "relay.mail.net [10.10.10.10]",
"proto": "SMTP",
"auth": "NONE",
"msgid": "<TESTMSGID>"
},
"metadata": {
"origin": {
"data": {
"agent": "m0000001.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"id": "/7mPV7fork8xQ2FLmmV5gA",
"pps": {
"cid": "CID",
"agent": "m0000001.ppops.net"
},
"data": "2020-11-05T12:59:27.214776+01:00 m0000001 sendmail[25035]: 0A5Bs66u012716: to=<rcpnt@dom.net>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp, tls_verify=OK, pri=253518, relay=relay.mail.net. [104.47.0.36], dsn=2.0.0, stat=Sent (<not.b1ff7-del.email@xyz.net> [InternalId=50349901633126, Hos...245.eurprd01.prod.exchangelabs.com] 147801 bytes in 0.083, 1737.387 KB/sec Queued mail for delivery)",
"ts": "2020-11-05T12:59:27.214776+0100",
"sm": {
"xdelay": "00:00:02",
"stat": "Sent (<not.b1ff7-del.email@xyz.net> [InternalId",
"delay": "00:00:02",
"pri": "253518",
"dsn": "2.0.0",
"to": ["<rcpnt@dom.net>"],
"relay": "relay.mail.net [10.10.10.10]",
"mailer": "esmtp",
"qid": "0A5Bs66u012716",
"tls": {
"verify": "OK"
}
},
"metadata": {
"origin": {
"data": {
"agent": "m0000001.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}, {
"ts": "2020-11-05T12:59:27.672144+0100",
"pps": {
"cid": "CID",
"agent": "m0000001.ppops.net"
},
"id": "kcFh9j7CGJ5CnjZ1l/0fYw",
"data": "2020-11-05T12:59:27.672144+01:00 m0000001 sendmail[12713]: 0A5Bs5V2012713: from=<last.name@from.net>, size=20387, class=0, nrcpts=1, msgid=<TESTMSGID>, proto=SMTP, daemon=MTA, tls_verify=NONE, auth=NONE, relay=m0000001.ppops.net [127.0.0.1]",
"sm": {
"nrcpts": "1",
"from": "<last.name@from.net>",
"sizeBytes": "20387",
"daemon": "MTA",
"class": "0",
"tls": {
"verify": "NONE"
},
"qid": "0A5Bs5V2012713",
"auth": "NONE",
"msgid": "<TESTMSGID>",
"proto": "SMTP",
"relay": "m0000001.ppops.net [127.0.0.1]"
},
"metadata": {
"origin": {
"data": {
"agent": "m0000001.ppops.net",
"cid": "CID"
}
}
},
"event_type": "maillog"
}]

Разница между файлами не показана из-за своего большого размера Загрузить разницу