im going with the way to log with a “raw” input instead of the “syslog” one because you can handle the messages easier with the extractors in my mind and so the issue with the default creatings of fields inside of urls/certissuer/certsubject will be prevented.
case closed… thanks for the hints and comments fam!
ps: ill update the thread as soon as ive configured and finished my extractors for the Fortimail logs.
edit: FortiMail extractors for raw input work in progress:
edit2: i couldnt update my last post so ive deleted it to make an update to the FortiMail extractors here again.
{
"extractors": [
{
"title": "FMLdevice_id",
"extractor_type": "regex",
"converters": [],
"order": 102,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "device_id",
"extractor_config": {
"regex_value": "^.*device_id=([\\w\\s]+)\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLlog_id",
"extractor_type": "regex",
"converters": [],
"order": 103,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "log_id",
"extractor_config": {
"regex_value": "^.*log_id=([\\w\\s]+)\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLpri",
"extractor_type": "regex",
"converters": [],
"order": 104,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "pri",
"extractor_config": {
"regex_value": "^.*\\spri=([\\w\\s]+)\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLuser",
"extractor_type": "regex",
"converters": [],
"order": 105,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "user",
"extractor_config": {
"regex_value": "^.*\\suser=([\\w\\s]+)\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLui",
"extractor_type": "regex",
"converters": [],
"order": 106,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "ui",
"extractor_config": {
"regex_value": "^.*\\sui=([\\w\\s]+)\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLsession_id",
"extractor_type": "regex",
"converters": [],
"order": 107,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "session_id",
"extractor_config": {
"regex_value": "^.*\\ssession_id=\\\"([\\w\\s\\-]+)\\\"\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLSTARTTLS",
"extractor_type": "regex",
"converters": [],
"order": 108,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "STARTTLS",
"extractor_config": {
"regex_value": "^.*STARTTLS=([\\w\\s]+)\\,+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLfrom",
"extractor_type": "regex",
"converters": [],
"order": 109,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "from",
"extractor_config": {
"regex_value": "^.*\\sfrom=\\\"([a-zA-Z\\w\\s\\:\\-.\\.\\_\\@]+)\\\"\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLhfrom",
"extractor_type": "regex",
"converters": [],
"order": 110,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "hfrom",
"extractor_config": {
"regex_value": "^.*\\shfrom=\\\"([a-zA-Z\\w\\s\\:\\-.\\.\\_\\@]+)\\\"\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLto",
"extractor_type": "regex",
"converters": [],
"order": 111,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "to",
"extractor_config": {
"regex_value": "^.*\\sto=\\\"([a-zA-Z\\w\\s\\:\\-.\\.\\_\\@]+)\\\"\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLvirus",
"extractor_type": "regex",
"converters": [],
"order": 112,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "virus",
"extractor_config": {
"regex_value": "^.*\\svirus=([a-zA-Z\\w\\s\\:\\\"\\-.\\.\\_\\@]+)\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLdisposition",
"extractor_type": "regex",
"converters": [],
"order": 113,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "disposition",
"extractor_config": {
"regex_value": "^.*\\sdisposition=\\\"([a-zA-Z\\w\\s\\:\\\"\\-.\\.\\_\\@]+)\\\"\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLclient_ip",
"extractor_type": "regex",
"converters": [],
"order": 114,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "client_ip",
"extractor_config": {
"regex_value": "^.*\\sclient_ip=\\\"([\\w\\.]+)\\\"\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLdst_ip",
"extractor_type": "regex",
"converters": [],
"order": 115,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "dst_ip",
"extractor_config": {
"regex_value": "^.*\\sdst_ip=\\\"([\\w\\.]+)\\\"\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLdsn",
"extractor_type": "regex",
"converters": [],
"order": 116,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "dsn",
"extractor_config": {
"regex_value": "^.*\\sdsn=([\\w\\.]+)\\,+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLrelay",
"extractor_type": "regex",
"converters": [],
"order": 117,
"cursor_strategy": "copy",
"source_field": "msg",
"target_field": "relay",
"extractor_config": {
"regex_value": "^.*\\srelay=([\\w\\.]+)\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FGTunauthuser",
"extractor_type": "regex",
"converters": [],
"order": 90,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "unauthuser",
"extractor_config": {
"regex_value": "^.*unauthuser=\\\"([\\$\\.\\-\\w\\s]+)\\\"\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FGTcrlevel",
"extractor_type": "regex",
"converters": [],
"order": 91,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "crlevel",
"extractor_config": {
"regex_value": "^.*crlevel=\\\"([\\w\\s]+)\\\"+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FGTcrscore",
"extractor_type": "regex",
"converters": [],
"order": 92,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "crscore",
"extractor_config": {
"regex_value": "^.*crscore=([\\w\\s]+)\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FGTsource",
"extractor_type": "regex",
"converters": [],
"order": 93,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "source",
"extractor_config": {
"regex_value": "^.+\\sdevname=\\\"(\\S+)\\\"\\s"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLclassifier",
"extractor_type": "regex",
"converters": [],
"order": 120,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "classifier",
"extractor_config": {
"regex_value": "^.*\\sclassifier=\\\"([a-zA-Z\\w\\s\\:\\\"\\-.\\.\\_\\@]+)\\\"\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLto_dsn",
"extractor_type": "regex",
"converters": [],
"order": 119,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "to",
"extractor_config": {
"regex_value": "^.*to=\\<([a-zA-Z\\w\\s\\:\\-.\\.\\_\\@]+)\\>\\,+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLto_dsn_multiple",
"extractor_type": "regex",
"converters": [],
"order": 118,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "to",
"extractor_config": {
"regex_value": "^.*\\\"to=([a-zA-Z\\w\\s\\:\\-.\\.\\,\\_\\@]+)\\,\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FGTaction",
"extractor_type": "regex",
"converters": [],
"order": 94,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "action",
"extractor_config": {
"regex_value": "^.+\\saction=\\\"(\\S+)\\\"\\s"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FGTlogid",
"extractor_type": "regex",
"converters": [],
"order": 95,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "logid",
"extractor_config": {
"regex_value": "^.+\\slogid=\\\"(\\S+)\\\"\\s"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FGTdevid",
"extractor_type": "regex",
"converters": [],
"order": 96,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "devid",
"extractor_config": {
"regex_value": "^.+\\sdevid=\\\"(\\S+)\\\"\\s"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FGTsubtype",
"extractor_type": "regex",
"converters": [],
"order": 97,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "subtype",
"extractor_config": {
"regex_value": "^.+\\ssubtype=\\\"(\\S+)\\\"\\s"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FGTtransip",
"extractor_type": "regex",
"converters": [],
"order": 98,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "transip",
"extractor_config": {
"regex_value": "^.+\\stransip=\\\"(\\S+)\\\"\\s"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FGTtype",
"extractor_type": "regex",
"converters": [],
"order": 99,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "type",
"extractor_config": {
"regex_value": "^.+\\stype=\\\"(\\S+)\\\"\\s"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FGTtrandisp",
"extractor_type": "regex",
"converters": [],
"order": 100,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "trandisp",
"extractor_config": {
"regex_value": "^.+\\strandisp=\\\"(\\S+)\\\"\\s"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FGTeventtype",
"extractor_type": "regex",
"converters": [],
"order": 101,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "eventtype",
"extractor_config": {
"regex_value": "^.+\\seventtype=\\\"(\\S+)\\\"\\s"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLdirection",
"extractor_type": "regex",
"converters": [],
"order": 121,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "direction",
"extractor_config": {
"regex_value": "^.+\\sdirection=\\\"(.+?)\\\""
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLmailer",
"extractor_type": "regex",
"converters": [],
"order": 122,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "mailer",
"extractor_config": {
"regex_value": "^.+\\smailer=\\\"(.+?)\\\""
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLclient_cc",
"extractor_type": "regex",
"converters": [],
"order": 123,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "client_cc",
"extractor_config": {
"regex_value": "^.+\\sclient_cc=\\\"(.+?)\\\""
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLpolid",
"extractor_type": "regex",
"converters": [],
"order": 124,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "polid",
"extractor_config": {
"regex_value": "^.+\\spolid=\\\"(.+?)\\\""
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLsrc_type",
"extractor_type": "regex",
"converters": [],
"order": 125,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "src_type",
"extractor_config": {
"regex_value": "^.+\\ssrc_type=\\\"(.+?)\\\""
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLmessage_length",
"extractor_type": "regex",
"converters": [],
"order": 126,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "message_length",
"extractor_config": {
"regex_value": "^.+\\smessage_length=\\\"(.+?)\\\""
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLclient_name",
"extractor_type": "regex",
"converters": [],
"order": 127,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "client_name",
"extractor_config": {
"regex_value": "^.*\\sclient_name=([a-zA-Z\\w\\s\\:\\\"\\-.\\.\\_\\@]+)\\s+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLstat",
"extractor_type": "regex",
"converters": [],
"order": 129,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "stat",
"extractor_config": {
"regex_value": "^.*\\sstat=([a-zA-Z\\w\\s\\:\\-\\–\\_\\.\\,\\=\\/\\@\\|\\[\\]\\<\\>\\#\\ä\\ü\\ö\\(\\)\\Ä\\Ü\\Ö\\/\\;\\\"\\„\\“\\!\\&\\?]+)\\\"+"
},
"condition_type": "none",
"condition_value": ""
},
{
"title": "FMLsubject",
"extractor_type": "regex",
"converters": [],
"order": 128,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "subject",
"extractor_config": {
"regex_value": "^.*\\ssubject=\\\"([\\d\\D]+)\\\"\\smessage_id"
},
"condition_type": "none",
"condition_value": ""
}
],
"version": "4.1.2"
}