Home
%3CLINGO-SUB%20id%3D%22lingo-sub-969990%22%20slang%3D%22en-US%22%3EBest%20Practices%20for%20Common%20Event%20Format%20(CEF)%20collection%20in%20Azure%20Sentinel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-969990%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1443962264%22%20id%3D%22toc-hId--1443962234%22%3EIntro%3A%20What%20is%20CEF%20collection%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECommon%20Event%20Format%20(CEF)%20is%20an%20industry%20standard%20format%20on%20top%20of%20Syslog%20messages%2C%20used%20by%20many%20security%20vendors%20to%20allow%20event%20interoperability%20among%20different%20platforms.%20Azure%20Sentinel%20provides%20the%20ability%20to%20ingest%20data%20from%20an%20external%20solution.%20If%20your%20appliance%20or%20system%20enables%20you%20to%20save%20logs%20as%20Syslog%20Common%20Event%20Format%20(CEF)%2C%20the%20integration%20with%20Azure%20Sentinel%20enables%20you%20to%20easily%20run%20analytics%2C%20and%20queries%20across%20the%20data.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20number%20of%20systems%20supporting%20Syslog%20or%20CEF%20is%20in%20the%20hundreds%2C%20please%20make%20sure%20to%20check%20out%20the%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FAzure-Sentinel%2FAzure-Sentinel-The-Syslog-and-CEF-source-configuration-grand%2Fba-p%2F803891%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3EAzure%20Sentinel%3A%20Syslog%20and%20CEF%20source%20configuration%20grand%20list.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EIn%20this%20blogpost%2C%20we%20will%20provide%20details%20on%20how%20CEF%20collection%20works%20and%20the%20best%20practices%20you%20should%20consider%20when%20configuring%20common%20event%20format%20collection%20in%20Azure%20Sentinel.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1043550569%22%20id%3D%22toc-hId-1043550599%22%3EHow%20does%20it%20work%3F%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECEF%20Collection%20in%20Azure%20Sentinel%20works%20by%20selecting%20or%20creating%20a%20Linux%20machine%20that%20Azure%20Sentinel%20will%20use%20as%20the%20proxy%20between%20your%20security%20solution%20and%20Azure%20Sentinel.%20The%20Linux%20machine%20can%20be%20on%20your%20on-prem%20environment%2C%20Azure%20or%20other%20clouds.%20In%20addition%2C%20the%20Azure%20Sentinel%20syslog%20agent%2C%20based%20on%20the%20Microsoft%20monitoring%20agent%20is%20required%20to%20be%20installed%20on%20the%20Linux%20machine%20to%20collect%20data%20and%20send%20it%20securely%20to%20your%20Azure%20Sentinel%20workspace.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20following%20flow%20chart%20details%20the%20high-level%20steps%20to%20configure%20CEF%20collection%20in%20Azure%20Sentinel%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20577px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F152614i49ECA383CA99A21F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22flowchart.png%22%20title%3D%22flowchart.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F157875iC0D2DB1DC1A2AC22%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22CEF1.png%22%20title%3D%22CEF1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F157876i60E8DC9F5BF4D8EB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22CEF2.png%22%20title%3D%22CEF2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3ENote%3A%20For%20additional%20information%20on%20how%20CEF%20collection%20works%2C%20please%20visit%3A%3C%2FEM%3E%3C%2FP%3E%0A%3CP%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%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsentinel%2Fconnect-common-event-format%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EFor%20data%20security%20in%20Log%20analytics%20see%20%3C%2FEM%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fdata-security%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fdata-security%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1033047465%22%20id%3D%22toc-hId-1033047495%22%3ECEF%20Best%20Practices%3A%3C%2FH1%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1723608939%22%20id%3D%22toc-hId-1723608969%22%3E1.%20Secure%20your%20machine%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMake%20sure%20to%20configure%20the%20machine's%20security%20according%20to%20your%20organization's%20security%20policy.%20For%20example%2C%20you%20can%20configure%20your%20network%20to%20align%20with%20your%20corporate%20network%20security%20policy%20and%20change%20the%20ports%20and%20protocols%20in%20the%20daemon%20to%20align%20with%20your%20requirements.%20You%20can%20use%20the%20following%20instructions%20to%20improve%20your%20machine%20security%20configuration%3A%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fazure%252Fvirtual-machines%252Flinux%252Fsecurity-policy%26amp%3Bdata%3D02%257C01%257CMor.Shabi%2540microsoft.com%257C0c628565efe046dee1b908d718e25a31%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637005232853451425%26amp%3Bsdata%3DfOYEJ%252Fw7O6VPFlJjvPUjY%252BZundzkJhyo7UZMLki5EB0%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESecure%20VM%20in%20azure%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fazure%252Fsecurity%252Ffundamentals%252Fnetwork-best-practices%26amp%3Bdata%3D02%257C01%257CMor.Shabi%2540microsoft.com%257C0c628565efe046dee1b908d718e25a31%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637005232853461420%26amp%3Bsdata%3DJEY7OZEd64Y3e1al5V9VURmGSeJ7G7fFNCpmIq8SBZo%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EBest%20practices%20for%20Network%20security%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENote%3A%20To%20use%20TLS%20communication%20between%20the%20security%20solution%20and%20the%20Syslog%20machine%2C%20you%20will%20need%20to%20configure%20the%20Syslog%20daemon%20(rsyslog%20or%20syslog-ng)%20to%20communicate%20in%20TLS%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.rsyslog.com%2Fdoc%2Fv8-stable%2Ftutorials%2Ftls_cert_summary.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EEncrypting%20Syslog%20Traffic%20with%20TLS%20-%20rsyslog%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Fsupport.oneidentity.com%2Ftechnical-documents%2Fsyslog-ng-open-source-edition%2F3.22%2Fadministration-guide%2F60%23TOPIC-1209298%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EEncrypting%20log%20messages%20with%20TLS%20%E2%80%93%20syslog-ng%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--83845524%22%20id%3D%22toc-hId--83845494%22%3E2.%20Properly%20Secure%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ean%20Azure%20VM%20with%20Public%20IP%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--1891299987%22%20id%3D%22toc-hId--1891299957%22%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3ECommon%20Event%20Format%20uses%20UDP%20514%20therefore%20messages%20will%20be%20sent%20in%20clear%20text.%20If%20we%20use%20an%20unencrypted%20connection%20and%20a%20third%20party%20intercepts%20the%20connection%2C%20they%20can%20see%20all%20the%20information%20exchanged%20in%20plain%20text.%20%26nbsp%3BTLS%20can%20protect%20this%20communication%20traffic.%20Additionally%2C%20a%20bad%20actor%20can%20potentially%20intercept%20and%20send%20messages%20to%20your%20Azure%20VMs%20to%20create%20false%20records.%20Make%20sure%20to%20protect%20the%20Azure%20VM%20with%20either%20a%20Network%20Security%20Group%20or%20NVA.%20On%20the%20NSG%2C%20you%20should%20configure%20a%20list%20of%20source%20IP%20addresses%20you%20want%20to%20allow%20to%20communicate%20to%20the%20VM.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-596212846%22%20id%3D%22toc-hId-596212876%22%3E3.%20Deploy%20CEF%20collector%20machine%20close%20to%20source%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet%E2%80%99s%20review%20the%20common%20scenarios%3A%3C%2FP%3E%0A%3CP%3EOn-prem%20source%20%E2%80%93%20We%20recommend%20you%20deploy%20the%20CEF%20collector%20on-prem.%20Syslog%20CEF%20is%20default%20sent%20over%20UDP%20port%20514%20in%20plain%20text.%20Once%20it%20reaches%20the%20CEF%20collector%2C%20it%20is%20sent%20to%20Azure%20Sentinel%20using%20HTTPs.%20Deploying%20on-prem%20ensure%20your%20data%20is%20not%20sent%20in%20the%20clear%20outside%20your%20network.%3C%2FP%3E%0A%3CP%3EIf%20on-prem%20deployment%20is%20not%20an%20option%20at%20all%2C%20we%20recommend%20you%20deploy%20in%20a%20cloud%20VM%20and%20use%20TCP%20over%20TLS%20or%20ensure%20there%20is%20a%20secure%20path%20(VPN)%20between%20the%20source%20and%20the%20collector%20VM.%3C%2FP%3E%0A%3CP%3ECloud%20source%20%E2%80%93%20We%20recommend%20you%20deploy%20the%20CEF%20collector%20in%20the%20same%20virtual%20network%20as%20the%20source.%20You%20can%20also%20use%20VNet%20peering%20to%20have%20multiple%20VNets%20connected%20to%20the%20CEF%20collector.%20This%20again%20prevents%20your%20traffic%20from%20being%20sent%20over%20the%20internet%20in%20the%20clear.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1211241617%22%20id%3D%22toc-hId--1211241587%22%3E4.%20Do%20not%20configure%20the%20source%20to%20send%20to%202%20CEF%20%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20avoid%20duplicate%20records%2Fmessages%20in%20Azure%20Sentinel%20do%20not%20configure%20your%20third-party%20security%20appliance%20to%20send%20data%20to%202%20Common%20Event%20Format%20collectors.%20Additionally%2C%20sending%20duplicate%20data%20will%20increase%20your%20consumption%20bill%20therefore%20ensure%20that%20your%20security%20appliances%20are%20set%20to%20send%20data%20to%20a%20single%20CEF%20collector.%20You%20may%20consider%20using%20a%20load%20balancer%20or%20rsyslog%20cluster%20(%3CA%20href%3D%22https%3A%2F%2Fwww.rsyslog.com%2Fload-balancing-for-rsyslog%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.rsyslog.com%2Fload-balancing-for-rsyslog%2F%3C%2FA%3E)%20as%20an%20aleternative.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1276271216%22%20id%3D%22toc-hId-1276271246%22%3E5.%20TCP%20is%20the%20default%20protocol%2C%20always%20use%20%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESyslog%20CEF%20can%20support%20UDP%20or%20TCP.%20However%2C%20TCP%20is%20now%20the%20default%20protocol%20and%20should%20always%20be%20used%20unless%20the%20source%20device%20does%20not%20support%20TCP.%20The%20advantage%20is%20the%20reliability%20of%20the%20TCP%20protocol.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--531183247%22%20id%3D%22toc-hId--531183217%22%3EQuerying%20the%20Data%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20you%20satisfy%20the%20configuration%20steps%20in%20the%20Common%20Event%20Format%20data%20connector%2C%20you%20can%20then%20query%20the%20data.%20CEF%20logs%20will%20reside%20within%20the%20CommonSecurityLog%20table%2C%20hence%20by%20querying%20for%20CommonSecurityLog%20you%20will%20have%20visibility%20to%20your%20CEF%20data.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F157877i4279312FDD83F8E8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22CommonSecurityLog.png%22%20title%3D%22CommonSecurityLog.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20that%20we%20can%20see%20the%20data%20in%20Azure%20Sentinel%2C%20we%20now%20can%20build%20workbooks%2C%20analytic%20rules%2C%20hunting%20queries%2C%20or%20associate%20it%20with%20other%20data%20for%20correlation.%3C%2FP%3E%0A%3CH2%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20inherit%3B%20font-family%3A%20inherit%3B%20font-size%3A%2024px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20normal%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.2%3B%20margin-bottom%3A%2012px%3B%20margin-top%3A%2024px%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%20id%3D%22toc-hId--664867971%22%20id%3D%22toc-hId--664867941%22%3EConclusion%3C%2FH2%3E%0A%3CP%3EIn%20this%20blog%2C%20you%20learned%20how%20Common%20Event%20Format%20collection%20works%20and%20the%20best%20practices%20to%20consider%20when%20configuring%20CEF%20collection%20in%20Azure%20Sentinel.%20To%20learn%20more%20about%20Azure%20Sentinel%2C%20see%20the%20following%20articles%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELearn%20how%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsentinel%2Fquickstart-get-visibility%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eget%20visibility%20into%20your%20data%2C%20and%20potential%20threats.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EGet%20started%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsentinel%2Ftutorial-detect-threats%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Edetecting%20threats%20with%20Azure%20Sentinel.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-969990%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23333333%3B%20cursor%3A%20text%3B%20font-family%3A%20inherit%3B%20font-size%3A%2016px%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.7142%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%3EBy%20Nicholas%20DiCola%20%26amp%3B%20Cristhofer%20Romeo%20Munoz%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-969990%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Sentinel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EConnectors%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDetection%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecurity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E

 

Intro: What is CEF collection

 

Common Event Format (CEF) is an industry standard format on top of Syslog messages, used by many security vendors to allow event interoperability among different platforms. Azure Sentinel provides the ability to ingest data from an external solution. If your appliance or system enables you to save logs as Syslog Common Event Format (CEF), the integration with Azure Sentinel enables you to easily run analytics, and queries across the data.

 

The number of systems supporting Syslog or CEF is in the hundreds, please make sure to check out the Azure Sentinel: Syslog and CEF source configuration grand list.

In this blogpost, we will provide details on how CEF collection works and the best practices you should consider when configuring common event format collection in Azure Sentinel.

 

How does it work?

 

CEF Collection in Azure Sentinel works by selecting or creating a Linux machine that Azure Sentinel will use as the proxy between your security solution and Azure Sentinel. The Linux machine can be on your on-prem environment, Azure or other clouds. In addition, the Azure Sentinel syslog agent, based on the Microsoft monitoring agent is required to be installed on the Linux machine to collect data and send it securely to your Azure Sentinel workspace.

 

The following flow chart details the high-level steps to configure CEF collection in Azure Sentinel:

flowchart.png

CEF1.png

 

CEF2.png

 

 

 

Note: For additional information on how CEF collection works, please visit:

https://docs.microsoft.com/en-us/azure/sentinel/connect-common-event-format

For data security in Log analytics see https://docs.microsoft.com/en-us/azure/azure-monitor/platform/data-security

 

CEF Best Practices:

 

1. Secure your machine

 

Make sure to configure the machine's security according to your organization's security policy. For example, you can configure your network to align with your corporate network security policy and change the ports and protocols in the daemon to align with your requirements. You can use the following instructions to improve your machine security configuration: Secure VM in azure, Best practices for Network security.

 

Note: To use TLS communication between the security solution and the Syslog machine, you will need to configure the Syslog daemon (rsyslog or syslog-ng) to communicate in TLS: Encrypting Syslog Traffic with TLS - rsyslog, Encrypting log messages with TLS – syslog-ng.

 

2. Properly Secure an Azure VM with Public IP

  

Common Event Format uses UDP 514 therefore messages will be sent in clear text. If we use an unencrypted connection and a third party intercepts the connection, they can see all the information exchanged in plain text.  TLS can protect this communication traffic. Additionally, a bad actor can potentially intercept and send messages to your Azure VMs to create false records. Make sure to protect the Azure VM with either a Network Security Group or NVA. On the NSG, you should configure a list of source IP addresses you want to allow to communicate to the VM.

 

3. Deploy CEF collector machine close to source

 

Let’s review the common scenarios:

On-prem source – We recommend you deploy the CEF collector on-prem. Syslog CEF is default sent over UDP port 514 in plain text. Once it reaches the CEF collector, it is sent to Azure Sentinel using HTTPs. Deploying on-prem ensure your data is not sent in the clear outside your network.

If on-prem deployment is not an option at all, we recommend you deploy in a cloud VM and use TCP over TLS or ensure there is a secure path (VPN) between the source and the collector VM.

Cloud source – We recommend you deploy the CEF collector in the same virtual network as the source. You can also use VNet peering to have multiple VNets connected to the CEF collector. This again prevents your traffic from being sent over the internet in the clear.

 

4. Do not configure the source to send to 2 CEF  

 

To avoid duplicate records/messages in Azure Sentinel do not configure your third-party security appliance to send data to 2 Common Event Format collectors. Additionally, sending duplicate data will increase your consumption bill therefore ensure that your security appliances are set to send data to a single CEF collector. You may consider using a load balancer or rsyslog cluster (https://www.rsyslog.com/load-balancing-for-rsyslog/) as an aleternative.

 

5. TCP is the default protocol, always use  

 

Syslog CEF can support UDP or TCP. However, TCP is now the default protocol and should always be used unless the source device does not support TCP. The advantage is the reliability of the TCP protocol.

Querying the Data

 

Once you satisfy the configuration steps in the Common Event Format data connector, you can then query the data. CEF logs will reside within the CommonSecurityLog table, hence by querying for CommonSecurityLog you will have visibility to your CEF data.

 

CommonSecurityLog.png

 

Now that we can see the data in Azure Sentinel, we now can build workbooks, analytic rules, hunting queries, or associate it with other data for correlation.

Conclusion

In this blog, you learned how Common Event Format collection works and the best practices to consider when configuring CEF collection in Azure Sentinel. To learn more about Azure Sentinel, see the following articles:

 

Learn how to get visibility into your data, and potential threats.

Get started detecting threats with Azure Sentinel.