So using what @leandrojmp provided... Thanks Today I Learned!
POST /_ingest/pipeline/_simulate
{
"pipeline": {
"description": "time test",
"version": 0,
"processors": [
{
"kv": {
"field": "message",
"field_split": """ (?=[a-z\_\-]+=)""",
"value_split": "=",
"ignore_missing": true,
"ignore_failure": false,
"trim_value": "\"",
"strip_brackets": true
}
}
]
},
"docs": [
{
"_index": "m-index",
"_id": "kMpUTHoBr7SFhhL5-98P",
"_source": {
"message": """date=2021-09-27 time=04:12:44 devname="PPFW02" devid="FGT5HD3916803686" eventtime=1632696165098764598 tz="+0530" logid="0512044481" type="utm" subtype="emailfilter" eventtype="email" level="information" vd="root" policyid=5 sessionid=1505786 srcip=209.71.72.71 srcport=32277 srcintf="port12" srcintfrole="wan" dstip=172.18.200.59 dstport=25 dstintf="port2" dstintfrole="dmz" proto=6 service="SMTPS" profile="pp_Email_Antispam_WAN" action="log-only" from="users@in.jbe.best-jobs-online.com" to="dfa@sec.gov.in" sender="bounce+88.78b08ef-amt=sec.gov.in@in.jbe.good-jobs-online.com" recipient="amt@sec.gov.in" direction="outgoing" msg="A message that has spaces" subject="testmail33" size="110" attachment="no"""
}
}
]
}
Results in
{
"docs" : [
{
"doc" : {
"_index" : "m-index",
"_type" : "_doc",
"_id" : "kMpUTHoBr7SFhhL5-98P",
"_source" : {
"date" : "2021-09-27",
"devid" : "FGT5HD3916803686",
"msg" : "A message that has spaces", <!--- :)
"srcip" : "209.71.72.71",
"srcintfrole" : "wan",
"dstport" : "25",
"tz" : "+0530",
"subject" : "testmail33",
"eventtime" : "1632696165098764598",
"sessionid" : "1505786",
"type" : "utm",
"policyid" : "5",
"attachment" : "no",
"subtype" : "emailfilter",
"action" : "log-only",
"devname" : "PPFW02",
"from" : "users@in.jbe.best-jobs-online.com",
"dstip" : "172.18.200.59",
"dstintf" : "port2",
"direction" : "outgoing",
"srcintf" : "port12",
"level" : "information",
"profile" : "pp_Email_Antispam_WAN",
"message" : """date=2021-09-27 time=04:12:44 devname="PPFW02" devid="FGT5HD3916803686" eventtime=1632696165098764598 tz="+0530" logid="0512044481" type="utm" subtype="emailfilter" eventtype="email" level="information" vd="root" policyid=5 sessionid=1505786 srcip=209.71.72.71 srcport=32277 srcintf="port12" srcintfrole="wan" dstip=172.18.200.59 dstport=25 dstintf="port2" dstintfrole="dmz" proto=6 service="SMTPS" profile="pp_Email_Antispam_WAN" action="log-only" from="users@in.jbe.best-jobs-online.com" to="dfa@sec.gov.in" sender="bounce+88.78b08ef-amt=sec.gov.in@in.jbe.good-jobs-online.com" recipient="amt@sec.gov.in" direction="outgoing" msg="A message that has spaces" subject="testmail33" size="110" attachment="no""",
"vd" : "root",
"dstintfrole" : "dmz",
"size" : "110",
"sender" : "bounce+88.78b08ef-amt=sec.gov.in@in.jbe.good-jobs-online.com",
"service" : "SMTPS",
"proto" : "6",
"recipient" : "amt@sec.gov.in",
"srcport" : "32277",
"logid" : "0512044481",
"eventtype" : "email",
"time" : "04:12:44",
"to" : "dfa@sec.gov.in"
},
"_ingest" : {
"timestamp" : "2021-11-06T15:10:35.5051942Z"
}
}
}
]
}