Home

Failed to configure/use CEF syslog facility

%3CLINGO-SUB%20id%3D%22lingo-sub-376735%22%20slang%3D%22en-US%22%3EFailed%20to%20configure%2Fuse%20CEF%20syslog%20facility%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-376735%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'm%20stuck%20with%20the%20configuration%20of%20CEF%20connector%20as%20described%20at%26nbsp%3B%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsentinel%2Fconnect-common-event-format%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsentinel%2Fconnect-common-event-format%3C%2FA%3E%3C%2FFONT%3E.%20I%20have%20chosen%20to%20go%20for%20an%20automatic%20deployment%2C%20so%20I'd%20expect%20everything%20works%20out%20of%20the%20box%2C%20but%20still%20I%20have%20issues%3A%3C%2FP%3E%0A%3CP%3E-%20There%20seems%20to%20be%20no%20process%20listening%20on%20UDP%20(or%20TCP)%20port%20514%20in%20the%20created%20VM.%20I%20had%20to%20modify%20several%20lines%20in%20the%20config%20to%20enable%20this.%3C%2FP%3E%0A%3CP%3E-%20When%20sending%20messages%20to%20this%20port%2C%20nothing%20gets%20forwarded%20to%20port%2025226%3C%2FP%3E%0A%3CP%3E-%20When%20sending%20messages%20directly%20to%20port%2025226%2C%20I%20encounter%20the%20following%20warning%20message%20in%20omsagent.log%3A%26nbsp%3B%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%26nbsp%3Bpattern%20not%20match%3A%20%22%3C%2FFONT%3Eblabla%22%3C%2FP%3E%0A%3CP%3EIs%20there%20a%20command%20line%20or%20utility%20I%20can%20use%20to%20send%20a%20simple%20CEF%20text%20message%20and%20have%20it%20been%20acquired%20by%20the%20VM%20and%20sent%20to%20Sentinel%3F%20The%20CommonSecurityLogs%20table%20remains%20desperately%20empty...%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20the%20help!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEtienne%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-482813%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20to%20configure%2Fuse%20CEF%20syslog%20facility%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-482813%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F167658%22%20target%3D%22_blank%22%3E%40Rohan%20Cragg%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F197460%22%20target%3D%22_blank%22%3E%40Etienne%20Noiret%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhenever%20you're%20configuring%20the%20rsyslog%20service%20we're%20pushing%20a%20security_events.conf%20file%20as%20part%20of%20the%20integration%20process%20(%20creating%20a%20listener%20for%20port%2025226%20)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EExample%20in%20the%20steps%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23000000%3B%20font-family%3A%20Segoe%20UI%2CSegoeUI%2CSegoe%20WP%2CHelvetica%20Neue%2CHelvetica%2CTahoma%2CArial%2Csans-serif%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20400%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3EDownload%20and%20install%20the%20%3C%2FSPAN%3E%3CA%20style%3D%22background-color%3A%20transparent%3B%20box-sizing%3A%20inherit%3B%20color%3A%20var(--primary-base)%3B%20cursor%3A%20pointer%3B%20font-family%3A%20Segoe%20UI%2CSegoeUI%2CSegoe%20WP%2CHelvetica%20Neue%2CHelvetica%2CTahoma%2CArial%2Csans-serif%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20400%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20outline-color%3A%20invert%3B%20outline-style%3A%20none%3B%20outline-width%3A%200px%3B%20overflow-wrap%3A%20break-word%3B%20text-align%3A%20left%3B%20text-decoration%3A%20underline%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%20href%3D%22https%3A%2F%2Faka.ms%2Fasi-syslog-config-file-linux%22%20data-linktype%3D%22external%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Esecurity_events%20config%20file%3C%2FA%3E%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23000000%3B%20font-family%3A%20Segoe%20UI%2CSegoeUI%2CSegoe%20WP%2CHelvetica%20Neue%2CHelvetica%2CTahoma%2CArial%2Csans-serif%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20400%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3E%20that%20configures%20the%20Syslog%20agent%20to%20listen%20on%20port%2025226.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CCODE%20style%3D%22background-color%3A%20var(--body-background-medium)%3B%20border%3A%201px%20solid%20var(--border)%3B%20border-bottom-left-radius%3A%202px%3B%20border-bottom-right-radius%3A%202px%3B%20border-image-outset%3A%200%3B%20border-image-repeat%3A%20stretch%3B%20border-image-slice%3A%20100%25%3B%20border-image-source%3A%20none%3B%20border-image-width%3A%201%3B%20border-top-left-radius%3A%202px%3B%20border-top-right-radius%3A%202px%3B%20box-sizing%3A%20inherit%3B%20color%3A%20%23000000%3B%20direction%3A%20ltr%3B%20display%3A%20inline-block%3B%20font-family%3A%20monospace%2Cmonospace%3B%20font-size%3A%200.8rem%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20400%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%2019px%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20border-width%3A%201px%3B%20border-color%3A%20hsla(0%2C%200%25%2C%2089%25%2C%201)%3B%20border-style%3A%20solid%3B%20padding%3A%203px%207px%203px%207px%3B%22%3Esudo%20wget%20-O%20%2Fetc%2Fopt%2Fmicrosoft%2Fomsagent%2F%7B0%7D%2Fconf%2Fomsagent.d%2Fsecurity_events.conf%20%22%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fsyslog-config-file-linux%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Fsyslog-config-file-linux%3C%2FA%3E%22%3C%2FCODE%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23000000%3B%20font-family%3A%20Segoe%20UI%2CSegoeUI%2CSegoe%20WP%2CHelvetica%20Neue%2CHelvetica%2CTahoma%2CArial%2Csans-serif%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20400%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3EWhere%20%7B0%7D%20should%20be%20replaced%20with%20your%20workspace%20GUID.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESecurity_events.conf%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%3CSOURCE%3E%3CBR%20%2F%3E%26nbsp%3B%20type%20syslog%3CBR%20%2F%3E%26nbsp%3B%20%3CSTRONG%3Eport%2025226%3C%2FSTRONG%3E%3CBR%20%2F%3E%26nbsp%3B%20%3CSTRONG%3Ebind%20127.0.0.1%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%26nbsp%3B%20protocol_type%20udp%3C%2FSTRONG%3E%3CBR%20%2F%3E%26nbsp%3B%20tag%20oms.security%3CBR%20%2F%3E%26nbsp%3B%20format%20%2F%5E(%3F%3CTIME%3E(%3F%3A%5Cw%2B%20%2B)%7B2%2C3%7D(%3F%3A%5Cd%2B%3A)%7B2%7D%5Cd%2B)%3A%3F%20%3F(%3F%3A(%3F%3CHOST%3E%5B%5E%3A%20%5D%2B)%20%3F%3A%3F)%3F%20(%3F%3CIDENT%3E%5Ba-zA-Z0-9_%25%5C%2F%5C.%5C-%5D*)(%3F%3A%5C%5B(%3F%3CPID%3E%5B0-9%5D%2B)%5C%5D)%3F%3A%20*(%3F%3CMESSAGE%3E.*)%24%2F%3CBR%20%2F%3E%26nbsp%3B%20message_length_limit%204096%3CBR%20%2F%3E%3C%2FMESSAGE%3E%3C%2FPID%3E%3C%2FIDENT%3E%3C%2FHOST%3E%3C%2FTIME%3E%3C%2FSOURCE%3E%3C%2FFONT%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%3CFILTER%20oms.security.%3D%22%22%3E%3CBR%20%2F%3E%26nbsp%3B%20type%20filter_syslog_security%3CBR%20%2F%3E%3C%2FFILTER%3E%3CBR%20%2F%3E%3C%2FFONT%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EYou'll%20note%20the%20config%20file%20has%20UDP%2C%20please%20move%20it%20to%20TCP%20if%20you're%20using%20TCP%20and%20restart%20the%20service.%3C%2FFONT%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EThis%20should%20fix%20the%20communication%20issues%3C%2FFONT%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3EI'd%20advise%20following%20this%20doc%20for%20testing%20your%20communication%3A%26nbsp%3B%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Fazure%2Fsentinel%2Fconnect-fortinet%23step-3-validate-connectivity%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Fazure%2Fsentinel%2Fconnect-fortinet%23step-3-validate-connectivity%3C%2FA%3E%3C%2FFONT%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-482777%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20to%20configure%2Fuse%20CEF%20syslog%20facility%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-482777%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F167658%22%20target%3D%22_blank%22%3E%40Rohan%20Cragg%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F89690%22%20target%3D%22_blank%22%3E%40Chris%20Boehm%3C%2FA%3E%20%3A%20Is%20this%20something%20you%20could%20help%20with%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F293879%22%20target%3D%22_blank%22%3E%40Ofer_Shezaf%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-482561%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20to%20configure%2Fuse%20CEF%20syslog%20facility%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-482561%22%20slang%3D%22en-US%22%3E%3CP%3E%40%20seem%20to%20have%20a%20similar%20problem%20trying%20to%20configure%20this%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Fazure%2Fsentinel%2Fconnect-fortinet%23step-1-connect-your-fortinet-appliance-using-an-agent%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Fazure%2Fsentinel%2Fconnect-fortinet%23step-1-connect-your-fortinet-appliance-using-an-agent%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-377731%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20to%20configure%2Fuse%20CEF%20syslog%20facility%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-377731%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F222671%22%20target%3D%22_blank%22%3E%40Eliav%20Levi%3C%2FA%3E%3A%20Is%20this%20something%20you%20can%20speak%20to%3F%20%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-485245%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20to%20configure%2Fuse%20CEF%20syslog%20facility%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-485245%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F89690%22%20target%3D%22_blank%22%3E%40Chris%20Boehm%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20eventually%20got%20this%20working%2C%20and%20we%20think%20(thought%20not%20sure)%20that%20the%20problem%20was%20more%20that%20the%20logs%20being%20sent%20from%20Fortinet%20applicance%20were%20not%20yet%20in%20the%20CEF%20format%20-%20which%20we%20went%20and%20fixed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAdmittedly%20I%20did%20go%20a%20try%20a%20few%20other%20things%20so%20not%20100%25%20what%20fixed%20this%20for%20us%20but%20we're%20all%20good%20now.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-696492%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20to%20configure%2Fuse%20CEF%20syslog%20facility%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-696492%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F89690%22%20target%3D%22_blank%22%3E%40Chris%20Boehm%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe're%20having%20a%20similar%20issue.%26nbsp%3B%20I've%20verified%20that%20I%20have%20the%20security%20events.conf%20file%20on%20my%20server%20%2Cand%20that%20the%20Fortinet%20logs%20I'm%20pulling%20are%20in%20CEF%20format.%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20logs%20are%20screaming%20in%20on%20514%20-%20but%20never%20go%20to%20Sentinel%20on%2025266.%26nbsp%3B%20Anything%20else%20I%20can%20check%3F%26nbsp%3B%20Would%20setting%20the%20syslog%20port%20to%2025266%20on%20the%20firewall%20help%20at%20all%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECEF%3A0%7CFortinet%7CFortigate%7Cv6.0.2%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E-rw-r--r--%201%20root%20root%20359%20Feb%2012%2001%3A58%20%2Fetc%2Fopt%2Fmicrosoft%2Fomsagent%2F6e7121df-eea3-4365-b775-410954a08c7d%2Fconf%2Fomsagent.d%2Fsecurity_events.conf%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-710695%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20to%20configure%2Fuse%20CEF%20syslog%20facility%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-710695%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F361610%22%20target%3D%22_blank%22%3E%40LauraPen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you're%20seeing%20everything%20on%20514%20but%20not%2025226%20it%20seems%20like%20the%20forwarding%20isn't%20occurring%20correctly.%3C%2FP%3E%0A%3CP%3EConfirm%20the%20configuration%20file%3C%2FP%3E%0A%3CP%3EMake%20sure%20you've%20restarted%20the%20service%2C%20after%20adding%20the%20configuration%20change%20it%20requires%20a%20reboot%20to%20start%20up%20the%20new%20security%20file%20configuration.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20would%20confirm%20the%20following%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoe%20ui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bsegoe%20ui%20web%20(west%20european)%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bsegoe%20ui%26amp%3Bquot%3B%2C-apple-system%2Cblinkmacsystemfont%2C%26amp%3Bquot%3Broboto%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Csans-serif%3B%20font-size%3A%2015px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20400%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.3%3B%20orphans%3A%202%3B%20overflow-wrap%3A%20break-word%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20margin%3A%200px%3B%22%3E%3CSPAN%3EFor%20rsyslog%2C%20ensure%20the%20following%20is%20in%20the%20configuration%20file%20for%20CEF%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20style%3D%22background-color%3A%20%23f8f8f8%3B%20color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoe%20ui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bsegoe%20ui%20web%20(west%20european)%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bsegoe%20ui%26amp%3Bquot%3B%2C-apple-system%2Cblinkmacsystemfont%2C%26amp%3Bquot%3Broboto%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Csans-serif%3B%20font-size%3A%2015px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20400%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20overflow-wrap%3A%20break-word%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20pre-wrap%3B%20word-spacing%3A%200px%3B%22%3E%3Amsg%2C%20contains%2C%20%22CEF%22%20%20%20%20%20%20%20%40127.0.0.1%3A25226%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eif%20the%20configuration%20file%20seems%20to%20be%20configured%20correctly%2C%20I%20would%20personally%20advise%20collecting%20the%20following%20information%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%20style%3D%22color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoe%20ui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bsegoe%20ui%20web%20(west%20european)%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bsegoe%20ui%26amp%3Bquot%3B%2C-apple-system%2Cblinkmacsystemfont%2C%26amp%3Bquot%3Broboto%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Csans-serif%3B%20font-size%3A%2017px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.3%3B%20list-style-type%3A%20disc%3B%20orphans%3A%202%3B%20overflow-wrap%3A%20break-word%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20padding%3A%200px%200px%200px%2050px%3B%20margin%3A%200px%200px%2016px%2036px%3B%22%3E%0A%3CLI%20style%3D%22margin-bottom%3A%208px%3B%22%3E%3CSPAN%3EFiles%3A%3C%2FSPAN%3E%0A%3CUL%20style%3D%22color%3A%20%23333333%3B%20font-size%3A%2017px%3B%20font-weight%3A%20300%3B%20line-height%3A%201.3%3B%20list-style-type%3A%20disc%3B%20overflow-wrap%3A%20break-word%3B%20padding%3A%200px%200px%200px%2050px%3B%20margin%3A%208px%200px%208px%2036px%3B%22%3E%0A%3CLI%20style%3D%22margin-bottom%3A%208px%3B%22%3E%3CSPAN%3E%2Fetc%2Fopt%2Fmicrosoft%2Fomsagent%2F%3CWORKSPACE%20id%3D%22%22%3E%2Fconf%2Fomsagent.d%2Fsecurity_events.conf%3C%2FWORKSPACE%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20style%3D%22margin-bottom%3A%208px%3B%22%3E%3CSPAN%3E%2Fvar%2Fopt%2Fmicrosoft%2Fomsagent%2F%3CWORKSPACE%20id%3D%22%22%3E%2Flog%2Fomsagent.log%3C%2FWORKSPACE%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20style%3D%22margin-bottom%3A%208px%3B%22%3E%3CSPAN%3E%2Fetc%2Frsyslog.conf%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20style%3D%22margin-bottom%3A%208px%3B%22%3E%3CSPAN%3EThe%20content%20of%20folder%3A%20%2Fetc%2Frsyslog.d%2F%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20style%3D%22color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoe%20ui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bsegoe%20ui%20web%20(west%20european)%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bsegoe%20ui%26amp%3Bquot%3B%2C-apple-system%2Cblinkmacsystemfont%2C%26amp%3Bquot%3Broboto%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Csans-serif%3B%20font-size%3A%2017px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.3%3B%20orphans%3A%202%3B%20overflow-wrap%3A%20break-word%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20margin%3A%200px%200px%2016px%2036px%3B%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%20style%3D%22color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoe%20ui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bsegoe%20ui%20web%20(west%20european)%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bsegoe%20ui%26amp%3Bquot%3B%2C-apple-system%2Cblinkmacsystemfont%2C%26amp%3Bquot%3Broboto%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Csans-serif%3B%20font-size%3A%2017px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.3%3B%20list-style-type%3A%20disc%3B%20orphans%3A%202%3B%20overflow-wrap%3A%20break-word%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20padding%3A%200px%200px%200px%2050px%3B%20margin%3A%200px%200px%2016px%2036px%3B%22%3E%0A%3CLI%20style%3D%22margin-bottom%3A%208px%3B%22%3E%3CSPAN%3EOutput%20of%20the%20following%20commands%3A%3C%2FSPAN%3E%0A%3COL%20style%3D%22color%3A%20%23333333%3B%20counter-reset%3A%20item%3B%20font-size%3A%2017px%3B%20font-weight%3A%20300%3B%20line-height%3A%201.3%3B%20list-style-type%3A%20decimal%3B%20overflow-wrap%3A%20break-word%3B%20padding%3A%200px%200px%200px%2050px%3B%20margin%3A%200px%200px%2016px%2036px%3B%22%3E%0A%3CLI%20style%3D%22counter-increment%3A%20item%3B%20margin-bottom%3A%208px%3B%22%3E%3CSPAN%3ECEF%20logs%20is%20the%20correct%20format%20in%20the%20var%2Fmessages%20file%20(%22tac%20%2Fvar%2Flog%2Fsyslog%20%7C%20grep%20CEF%20-m%2010%22%20or%20%22tac%20%2Fvar%2Flog%2Fmessages%20%7C%20grep%20CEF%20-m%2010%22)%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20style%3D%22counter-increment%3A%20item%3B%20margin-bottom%3A%208px%3B%22%3E%3CSPAN%3ETCP%20dump%20on%20ports%20514%20and%2025226%26nbsp%3B%20(%22tcpdump%20-i%20any%20dst%20port%20514%20-vv%22%20or%20%22tcpdump%20-i%20any%20dst%20port%2025226%20-vv%22)%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThen%20create%20a%20support%20ticket%20if%20my%20comment%20above%20didn't%20help.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-710710%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20to%20configure%2Fuse%20CEF%20syslog%20facility%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-710710%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F89690%22%20target%3D%22_blank%22%3E%40Chris%20Boehm%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%20for%20replying!%3C%2FP%3E%3CP%3Eit%20actually%20turned%20out%20to%20be%20a%20setting%20in%20the%20rsyslog.conf%20file.%26nbsp%3B%20I%20was%20setting%20up%20logging%20from%203%20diff%20points%2C%20and%202%20out%20of%20the%203%20had%20the%20right%20settings%20-%20but%20the%20host%20I%20wrote%20about%20didn't%20have%20this%20uncommented%3A%3C%2FP%3E%3CP%3Ethe%20moral%20of%20the%20story%20is%20to%20never%20assume%20that%20all%20the%20files%20are%20the%20same%20%3A)%3C%2Fimg%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%23%20Provides%20UDP%20syslog%20reception%3CBR%20%2F%3E%24ModLoad%20imudp%3CBR%20%2F%3E%24UDPServerRun%20514%3C%2FP%3E%3CP%3E%23%20Provides%20TCP%20syslog%20reception%3CBR%20%2F%3E%24ModLoad%20imtcp%3CBR%20%2F%3E%24InputTCPServerRun%20514%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Etienne Noiret
Microsoft

Hello,

 

I'm stuck with the configuration of CEF connector as described at https://docs.microsoft.com/en-us/azure/sentinel/connect-common-event-format. I have chosen to go for an automatic deployment, so I'd expect everything works out of the box, but still I have issues:

- There seems to be no process listening on UDP (or TCP) port 514 in the created VM. I had to modify several lines in the config to enable this.

- When sending messages to this port, nothing gets forwarded to port 25226

- When sending messages directly to port 25226, I encounter the following warning message in omsagent.log:  pattern not match: "blabla"

Is there a command line or utility I can use to send a simple CEF text message and have it been acquired by the VM and sent to Sentinel? The CommonSecurityLogs table remains desperately empty...

 

Thanks for the help!

 

Etienne

8 Replies

@Eliav Levi: Is this something you can speak to?  

@Rohan Cragg 

 

@Chris Boehm : Is this something you could help with?

 

@Ofer_Shezaf 

@Rohan Cragg 

@Etienne Noiret 

 

Whenever you're configuring the rsyslog service we're pushing a security_events.conf file as part of the integration process ( creating a listener for port 25226 )

 

Example in the steps:

 

Download and install the security_events config file that configures the Syslog agent to listen on port 25226.

sudo wget -O /etc/opt/microsoft/omsagent/{0}/conf/omsagent.d/security_events.conf "https://aka.ms/syslog-config-file-linux"

Where {0} should be replaced with your workspace GUID.

 

 

Security_events.conf

 

<source>
  type syslog
  port 25226
  bind 127.0.0.1
  protocol_type udp
  tag oms.security
  format /^(?<time>(?:\w+ +){2,3}(?:\d+:){2}\d+):? ?(?:(?<host>[^: ]+) ?:?)? (?<ident>[a-zA-Z0-9_%\/\.\-]*)(?:\[(?<pid>[0-9]+)\])?: *(?<message>.*)$/
  message_length_limit 4096
</source>
<filter oms.security.**>
  type filter_syslog_security
</filter>
 
 
You'll note the config file has UDP, please move it to TCP if you're using TCP and restart the service.
This should fix the communication issues
 
I'd advise following this doc for testing your communication: https://docs.microsoft.com/en-gb/azure/sentinel/connect-fortinet#step-3-validate-connectivity 
 

Thanks @Chris Boehm 

 

We eventually got this working, and we think (thought not sure) that the problem was more that the logs being sent from Fortinet applicance were not yet in the CEF format - which we went and fixed.

 

Admittedly I did go a try a few other things so not 100% what fixed this for us but we're all good now.

@Chris Boehm 

 

We're having a similar issue.  I've verified that I have the security events.conf file on my server ,and that the Fortinet logs I'm pulling are in CEF format. 

The logs are screaming in on 514 - but never go to Sentinel on 25266.  Anything else I can check?  Would setting the syslog port to 25266 on the firewall help at all?

 

CEF:0|Fortinet|Fortigate|v6.0.2


-rw-r--r-- 1 root root 359 Feb 12 01:58 /etc/opt/microsoft/omsagent/6e7121df-eea3-4365-b775-410954a08c7d/conf/omsagent.d/security_events.conf

@LauraPen 

 

If you're seeing everything on 514 but not 25226 it seems like the forwarding isn't occurring correctly.

Confirm the configuration file

Make sure you've restarted the service, after adding the configuration change it requires a reboot to start up the new security file configuration.

 

I would confirm the following:

 

For rsyslog, ensure the following is in the configuration file for CEF

:msg, contains, "CEF"       @127.0.0.1:25226

 

if the configuration file seems to be configured correctly, I would personally advise collecting the following information:

 

  • Files:
    • /etc/opt/microsoft/omsagent/<workspace id>/conf/omsagent.d/security_events.conf
    • /var/opt/microsoft/omsagent/<workspace id>/log/omsagent.log
    • /etc/rsyslog.conf
    • The content of folder: /etc/rsyslog.d/

 

  • Output of the following commands:
    1. CEF logs is the correct format in the var/messages file ("tac /var/log/syslog | grep CEF -m 10" or "tac /var/log/messages | grep CEF -m 10")
    2. TCP dump on ports 514 and 25226  ("tcpdump -i any dst port 514 -vv" or "tcpdump -i any dst port 25226 -vv")

 

Then create a support ticket if my comment above didn't help.

@Chris Boehm 

thanks for replying!

it actually turned out to be a setting in the rsyslog.conf file.  I was setting up logging from 3 diff points, and 2 out of the 3 had the right settings - but the host I wrote about didn't have this uncommented:

the moral of the story is to never assume that all the files are the same :) 

# Provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514

# Provides TCP syslog reception
$ModLoad imtcp
$InputTCPServerRun 514

 

 

 

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies