Log analytics - Look up external source of data

%3CLINGO-SUB%20id%3D%22lingo-sub-101198%22%20slang%3D%22en-US%22%3ELog%20analytics%20-%20Look%20up%20external%20source%20of%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-101198%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20a%20requirement%20where%20we%20should%20be%20able%20to%20lookup%20data%20from%20an%20external%20text%20file%20and%20use%20it%20in%20our%20filter%20conditions%20in%20the%20queries.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESince%20we%20did%20not%20see%20an%20option%20to%20do%20a%20lookup%2C%20we%20decided%20to%20attach%20a%20text%20file%20to%20one%20of%20the%20VMs%20and%20create%20a%20custom%20log.%20Now%20the%20other%20problem%20that%20we%20have%20is%20to%20parse%20the%20RawData%20from%20these%20text%20files.%3C%2FP%3E%3CP%3E%26nbsp%3BThe%20example%20query%20is%2C%20lets%20say%20we%20are%20trying%20to%20find%20out%20the%20security%20events%20fired%20by%20users%20which%20belong%20to%20the%20text%20file%20in%20custom%20logs.%20Can%20anyone%20help%20in%20providing%20some%20reference%20in%20building%20such%20queries%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ESecurityEvent%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%7C%20where%20SubjectUserName%20in%20(%20table(%22USERS4_CL%22)%20%7C%20project%20RawData)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-101198%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Log%20Analytics%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-102489%22%20slang%3D%22en-US%22%3ERe%3A%20Log%20analytics%20-%20Look%20up%20external%20source%20of%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-102489%22%20slang%3D%22en-US%22%3E%3CP%3EThat%20first%20line%20was%20a%20mistake.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-102063%22%20slang%3D%22en-US%22%3ERe%3A%20Log%20analytics%20-%20Look%20up%20external%20source%20of%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-102063%22%20slang%3D%22en-US%22%3E%3CP%3EOk.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EQ%3A%20What%20is%20the%20first%20let%20statement%20for%20%3F%20%26nbsp%3B%20let%20arr%20%3D%20(search%20%22whitelistusers_CL%22%20%7C%20project%20Name_s)%3C%2FP%3E%0A%3CP%3EDoesn't%20seem%20to%20be%20used%20anywhere%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-101922%22%20slang%3D%22en-US%22%3ERe%3A%20Log%20analytics%20-%20Look%20up%20external%20source%20of%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-101922%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Ketan%2C%20i%20was%20able%20to%20make%20it%20work%2C%20my%20query%26nbsp%3Bwas%20slightly%20different.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Elet%20arr%20%3D%20(search%20%22whitelistusers_CL%22%26nbsp%3B%20%7C%20project%20Name_s%20)%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Elet%20foo%20%3D%20(tableName%3Astring)%20%7B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20table(tableName)%20%7C%20project%20Name_s%20%7D%3B%26nbsp%3B%3C%2FP%3E%3CP%3Elet%20b%20%3D%20foo('whitelistusers_CL')%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESecurityEvent%3CBR%20%2F%3E%7C%20where%20SubjectUserName%20in%20(b)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-101921%22%20slang%3D%22en-US%22%3ERe%3A%20Log%20analytics%20-%20Look%20up%20external%20source%20of%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-101921%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Noa%2C%20was%20able%20to%20slove%20the%20problem.%20It%20seems%20when%20I%20insert%20the%20custom%20logs%20using%20the%20API%2Cits%20much%20better%20in%20terms%20of%20identifying%20sptring%20fields.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-101498%22%20slang%3D%22en-US%22%3ERe%3A%20Log%20analytics%20-%20Look%20up%20external%20source%20of%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-101498%22%20slang%3D%22en-US%22%3E%3CP%3EFor%20your%20query%20specifically%20it%20seems%20like%20this%20should%20work%2C%20assuming%20you%20have%20ingested%20using%20Custom%20Logs%20functioanlity%20data%20from%20Custom%20Logs%20into%20the%20table%20User4_CL.%3C%2FP%3E%0A%3CP%3E%2F%2FAssuming%20your%20table%20User4_CL%20has%20username%20as%20a%20column%20-%20or%20substitute%20with%20appropriate%20colum.%3C%2FP%3E%0A%3CP%3Elet%20users%3DUsers4_CL%20%7C%20summarize%20makeset(username)%3B%3C%2FP%3E%0A%3CP%3ESecurityEvent%7C%20where%20SubjectUserName%20in%20(users)%20%7C%20project%20RawData)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-101285%22%20slang%3D%22en-US%22%3ERe%3A%20Log%20analytics%20-%20Look%20up%20external%20source%20of%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-101285%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3CBR%20%2F%3Eyou%20can%20do%20it%20quite%20like%20you%20show%20above.%20For%20example%2C%20here's%20how%20you%20can%20query%20Event%20logs%20of%20computers%20that%20also%20have%20security%20events%20from%20the%20last%20hour%3A%3CBR%20%2F%3Elet%20computers_with_security_events%20%3D%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESecurityEvent%26nbsp%3B%7C%20where%20TimeGenerated%20%26gt%3B%20now(-1h)%20%26nbsp%3B%7C%20project%20Computer%3B%3CBR%20%2F%3EEvent%26nbsp%3B%7C%20where%20TimeGenerated%20%26gt%3B%20now(-1h)%20%26nbsp%3B%7C%20where%20Computer%20in%20(computers_with_security_events)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20querying%20the%20custom%20log%20is%20very%20common%2C%20you%20might%20want%20to%20save%20this%20part%20as%20a%20function.%20If%20you%20name%20the%20function%20for%20example%20'computers_in_my_custom_log'%20you%20can%20refer%20to%20it%20from%20any%20other%20query%20like%20this%3A%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3EEvent%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%7C%20%3C%2FSPAN%3E%3CSPAN%3Ewhere%3C%2FSPAN%3E%3CSPAN%3E%20TimeGenerated%20%26gt%3B%20now(-%3C%2FSPAN%3E%3CSPAN%3E1%3C%2FSPAN%3E%3CSPAN%3Eh)%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%7C%20%3C%2FSPAN%3E%3CSPAN%3Ewhere%3C%2FSPAN%3E%3CSPAN%3E%20Computer%20in%20(computers_in_my_custom_log)%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EHope%20this%20helps%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3ENoa%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-799591%22%20slang%3D%22en-US%22%3ERe%3A%20Log%20analytics%20-%20Look%20up%20external%20source%20of%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-799591%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F74673%22%20target%3D%22_blank%22%3E%40Vineet%20Bhatia%3C%2FA%3E%26nbsp%3B%20I%20also%20have%20the%20same%20requirement.%20We%20have%20to%20lookup%20the%20data%20into%20a%20.csv%20file%20and%20use%20the%20corresponding%20data%20in%20a%20query.%20Instead%20of%20using%20Virtual%20machine%2C%20I%20want%20to%20use%20storage%20account.%20Any%20suggestions%20would%20be%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-802107%22%20slang%3D%22en-US%22%3ERe%3A%20Log%20analytics%20-%20Look%20up%20external%20source%20of%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-802107%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F390743%22%20target%3D%22_blank%22%3E%40gagan2509rajpal%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20use%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fkusto%2Fquery%2Fexternaldata-operator%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eexternaldata%3C%2FA%3E%26nbsp%3B%20operator%20to%20read%20files%2C%20like%20csv%20or%26nbsp%3B%3CCODE%3Etsv%3C%2FCODE%3E%3CSPAN%3E%2C%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Escsv%3C%2FCODE%3E%3CSPAN%3E%2C%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Esohsv%3C%2FCODE%3E%3CSPAN%3E%2C%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Epsv%3C%2FCODE%3E%3CSPAN%3E%2C%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Etxt%3C%2FCODE%3E%3CSPAN%3E%2C%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Eraw%3C%2FCODE%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20example%20files%20happens%20to%20be%20publicly%20accessible%20on%20a%20website%2C%20but%20you%20could%20use%20one%20in%20Azure%20Blob%20instead%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eexternaldata(Name%3Astring%2C%20Code%3Astring)%20%5B%40%22%3CA%20href%3D%22https%3A%2F%2Fdatahub.io%2Fcore%2Fcountry-list%2Fr%2Fdata.csv%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdatahub.io%2Fcore%2Fcountry-list%2Fr%2Fdata.csv%3C%2FA%3E%22%5D%0A%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CA%20href%3D%22https%3A%2F%2Fportal.loganalytics.io%2FDemo%3Fq%3DH4sIAAAAAAAAA0utKEktykvMSUksSdTwS8xNtSouKcrMS9dRcM5PgXE0FaIdlDJKSgqKrfT1QSozSpP0MvP1k%252FOLUoFEaV5JUaVuTmZxiX4RWFovubhMKZaXq0YhJzM3s0TBlJcLAOW7FjtoAAAA%26amp%3Btimespan%3DP1D%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EGo%20to%20Log%20Analytics%20and%20Run%20Query%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%0A%3CDIV%3E%0A%3CTABLE%20cellspacing%3D%221%22%20cellpadding%3D%225%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTH%3EName%3C%2FTH%3E%0A%3CTH%3ECode%3C%2FTH%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3EName%3C%2FTD%3E%0A%3CTD%3ECode%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3EAfghanistan%3C%2FTD%3E%0A%3CTD%3EAF%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%C3%85land%20Islands%3C%2FTD%3E%0A%3CTD%3EAX%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3EAlbania%3C%2FTD%3E%0A%3CTD%3EAL%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3EAlgeria%3C%2FTD%3E%0A%3CTD%3EDZ%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EYou%20can%20then%20%3CSTRONG%3EJOIN%3C%2FSTRONG%3Ethose%20datasets%20together%26nbsp%3B%20-%20I've%20used%20the%26nbsp%3B%20%3CSTRONG%3EWireData%3C%2FSTRONG%3Etable%2C%20but%20you%20may%20need%20to%20use%20one%20you%20have%20or%20want%20to%20use%20-%20the%20link%20below%20uses%20the%20Microsoft%20demo%20dataset%3F%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eexternaldata(Name%3Astring%2C%20Code%3Astring)%20%5B%40%22%3CA%20href%3D%22https%3A%2F%2Fdatahub.io%2Fcore%2Fcountry-list%2Fr%2Fdata.csv%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdatahub.io%2Fcore%2Fcountry-list%2Fr%2Fdata.csv%3C%2FA%3E%22%5D%0A%7C%20join%20kind%3D%20inner%20(%0A%20%20%20WireData%0A%20%20%20%7C%20where%20TimeGenerated%20%26gt%3B%20startofday(ago(1d))%0A)%20on%20%24left.Name%20%3D%3D%20%24right.RemoteIPCountry%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3ERun%20the%20above%20in%20the%20demo%20workspace%2C%20which%20adds%20the%20CODE%20column%20from%20the%20csv%20file%20to%20the%20WireData%20-%20use%20this%20link%3A%3C%2FDIV%3E%0A%3CDIV%3E%3CA%20href%3D%22https%3A%2F%2Fportal.loganalytics.io%2FDemo%3Fq%3DH4sIAAAAAAAAAzWOuwrCQBBF%252B0D%252B4SIWCWiCrRARFMRGRAQLsVjdMRlNdmV2fIEfb1RsLhzuKQ49lMSZ2ho1ycI0NAwq7MoeJt7%252BIcV23KlUL2GY5x%252Bzuu4z9vnBC7VzdSrPfs1Bc%252Fne2SHcOrs4euHk2eHMzhZg50iQxBGADQtNW%252FELL9wrEsKaG5pRKxklixGCGlF%252FtOaZmNInA5umcZTCO3RrOmr2qUVRoCtcVpqtqPFK8%252BXk1xNHb3T%252B%252BELbAAAA%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EGo%20to%20Log%20Analytics%20and%20Run%20Query%26nbsp%3B%3C%2FA%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3EExample%20results%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%0A%3CDIV%3E%0A%3CTABLE%20cellspacing%3D%221%22%20cellpadding%3D%225%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTH%3EName%3C%2FTH%3E%0A%3CTH%3ECode%3C%2FTH%3E%0A%3CTH%3EComputer%3C%2FTH%3E%0A%3CTH%3ESessionStartTime%3C%2FTH%3E%0A%3CTH%3ESessionEndTime%3C%2FTH%3E%0A%3CTH%3ELocalIP%3C%2FTH%3E%0A%3CTH%3ELocalSubnet%3C%2FTH%3E%0A%3CTH%3ELocalMAC%3C%2FTH%3E%0A%3CTH%3ELocalPortNumber%3C%2FTH%3E%0A%3CTH%3ERemoteIP%3C%2FTH%3E%0A%3CTH%3ERemoteMAC%3C%2FTH%3E%0A%3CTH%3ERemotePortNumber%3C%2FTH%3E%0A%3CTH%3ESessionID%3C%2FTH%3E%0A%3CTH%3ESequenceNumber%3C%2FTH%3E%0A%3CTH%3ESessionState%3C%2FTH%3E%0A%3CTH%3ESentBytes%3C%2FTH%3E%0A%3CTH%3EReceivedBytes%3C%2FTH%3E%0A%3CTH%3ETotalBytes%3C%2FTH%3E%0A%3CTH%3EProtocolName%3C%2FTH%3E%0A%3CTH%3EIPVersion%3C%2FTH%3E%0A%3CTH%3ESentPackets%3C%2FTH%3E%0A%3CTH%3EReceivedPackets%3C%2FTH%3E%0A%3CTH%3EDirection%3C%2FTH%3E%0A%3CTH%3EApplicationProtocol%3C%2FTH%3E%0A%3CTH%3EProcessID%3C%2FTH%3E%0A%3CTH%3EProcessName%3C%2FTH%3E%0A%3CTH%3EApplicationServiceName%3C%2FTH%3E%0A%3CTH%3ELatencyMilliseconds%3C%2FTH%3E%0A%3CTH%3ELatencySamplingTimeStamp%3C%2FTH%3E%0A%3CTH%3ELatencySamplingFailureRate%3C%2FTH%3E%0A%3CTH%3EMaliciousIP%3C%2FTH%3E%0A%3CTH%3EIndicatorThreatType%3C%2FTH%3E%0A%3CTH%3EDescription%3C%2FTH%3E%0A%3CTH%3ETLPLevel%3C%2FTH%3E%0A%3CTH%3EConfidence%3C%2FTH%3E%0A%3CTH%3ESeverity%3C%2FTH%3E%0A%3CTH%3EFirstReportedDateTime%3C%2FTH%3E%0A%3CTH%3ELastReportedDateTime%3C%2FTH%3E%0A%3CTH%3EIsActive%3C%2FTH%3E%0A%3CTH%3EReportReferenceLink%3C%2FTH%3E%0A%3CTH%3EAdditionalInformation%3C%2FTH%3E%0A%3CTH%3ERemoteIPLongitude%3C%2FTH%3E%0A%3CTH%3ERemoteIPLatitude%3C%2FTH%3E%0A%3CTH%3ERemoteIPCountry%3C%2FTH%3E%0A%3CTH%3ESourceSystem%3C%2FTH%3E%0A%3CTH%3EMG%3C%2FTH%3E%0A%3CTH%3EManagementGroupName%3C%2FTH%3E%0A%3CTH%3ETenantId%3C%2FTH%3E%0A%3CTH%3ETimeGenerated%3C%2FTH%3E%0A%3CTH%3EType%3C%2FTH%3E%0A%3CTH%3E_ResourceId%3C%2FTH%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3ENetherlands%3C%2FTD%3E%0A%3CTD%3ENL%3C%2FTD%3E%0A%3CTD%3EContosoAppSrv1%3C%2FTD%3E%0A%3CTD%3E2019-08-13T07%3A52%3A02Z%3C%2FTD%3E%0A%3CTD%3E2019-08-13T07%3A52%3A17Z%3C%2FTD%3E%0A%3CTD%3E10.6.0.28%3C%2FTD%3E%0A%3CTD%3E10.6.0.0%2F24%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E3389%3C%2FTD%3E%0A%3CTD%3E194.61.24.9%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E0%3C%2FTD%3E%0A%3CTD%3E10.6.0.28_3389_194.61.24.9_0_1104%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3EConnected%3C%2FTD%3E%0A%3CTD%3E6789%3C%2FTD%3E%0A%3CTD%3E4272%3C%2FTD%3E%0A%3CTD%3E11061%3C%2FTD%3E%0A%3CTD%3ETCP%3C%2FTD%3E%0A%3CTD%3EIPv4%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3EInbound%3C%2FTD%3E%0A%3CTD%3ERDP%3C%2FTD%3E%0A%3CTD%3E1104%3C%2FTD%3E%0A%3CTD%3EC%3A%5CWindows%5CSystem32%5Csvchost.exe%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E5.71%3C%2FTD%3E%0A%3CTD%3E52.51%3C%2FTD%3E%0A%3CTD%3ENetherlands%3C%2FTD%3E%0A%3CTD%3EOpsManager%3C%2FTD%3E%0A%3CTD%3E00000000-0000-0000-0000-000000000001%3C%2FTD%3E%0A%3CTD%3EAOI-b438b4f6-912a-46d5-9cb1-b44069212abc%3C%2FTD%3E%0A%3CTD%3Eb438b4f6-912a-46d5-9cb1-b44069212abc%3C%2FTD%3E%0A%3CTD%3E2019-08-13T07%3A53%3A09Z%3C%2FTD%3E%0A%3CTD%3EWireData%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3EUnited%20States%3C%2FTD%3E%0A%3CTD%3EUS%3C%2FTD%3E%0A%3CTD%3EContosoAppSrv1%3C%2FTD%3E%0A%3CTD%3E2019-08-13T07%3A52%3A02Z%3C%2FTD%3E%0A%3CTD%3E2019-08-13T07%3A52%3A17Z%3C%2FTD%3E%0A%3CTD%3E10.6.0.28%3C%2FTD%3E%0A%3CTD%3E10.6.0.0%2F24%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E3389%3C%2FTD%3E%0A%3CTD%3E50.243.35.24%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E0%3C%2FTD%3E%0A%3CTD%3E10.6.0.28_3389_50.243.35.24_0_1104%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3EDisconnected%3C%2FTD%3E%0A%3CTD%3E1563%3C%2FTD%3E%0A%3CTD%3E1148%3C%2FTD%3E%0A%3CTD%3E2711%3C%2FTD%3E%0A%3CTD%3ETCP%3C%2FTD%3E%0A%3CTD%3EIPv4%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3EInbound%3C%2FTD%3E%0A%3CTD%3ERDP%3C%2FTD%3E%0A%3CTD%3E1104%3C%2FTD%3E%0A%3CTD%3EC%3A%5CWindows%5CSystem32%5Csvchost.exe%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E-75.14%3C%2FTD%3E%0A%3CTD%3E39.99%3C%2FTD%3E%0A%3CTD%3EUnited%20States%3C%2FTD%3E%0A%3CTD%3EOpsManager%3C%2FTD%3E%0A%3CTD%3E00000000-0000-0000-0000-000000000001%3C%2FTD%3E%0A%3CTD%3EAOI-b438b4f6-912a-46d5-9cb1-b44069212abc%3C%2FTD%3E%0A%3CTD%3Eb438b4f6-912a-46d5-9cb1-b44069212abc%3C%2FTD%3E%0A%3CTD%3E2019-08-13T07%3A53%3A09Z%3C%2FTD%3E%0A%3CTD%3EWireData%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3ECanada%3C%2FTD%3E%0A%3CTD%3ECA%3C%2FTD%3E%0A%3CTD%3EContosoAppSrv1%3C%2FTD%3E%0A%3CTD%3E2019-08-13T07%3A52%3A02Z%3C%2FTD%3E%0A%3CTD%3E2019-08-13T07%3A52%3A17Z%3C%2FTD%3E%0A%3CTD%3E10.6.0.28%3C%2FTD%3E%0A%3CTD%3E10.6.0.0%2F24%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E3389%3C%2FTD%3E%0A%3CTD%3E96.125.135.204%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E0%3C%2FTD%3E%0A%3CTD%3E10.6.0.28_3389_96.125.135.204_0_1104%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3EDisconnected%3C%2FTD%3E%0A%3CTD%3E1563%3C%2FTD%3E%0A%3CTD%3E1144%3C%2FTD%3E%0A%3CTD%3E2707%3C%2FTD%3E%0A%3CTD%3ETCP%3C%2FTD%3E%0A%3CTD%3EIPv4%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3EInbound%3C%2FTD%3E%0A%3CTD%3ERDP%3C%2FTD%3E%0A%3CTD%3E1104%3C%2FTD%3E%0A%3CTD%3EC%3A%5CWindows%5CSystem32%5Csvchost.exe%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E-79.52%3C%2FTD%3E%0A%3CTD%3E43.61%3C%2FTD%3E%0A%3CTD%3ECanada%3C%2FTD%3E%0A%3CTD%3EOpsManager%3C%2FTD%3E%0A%3CTD%3E00000000-0000-0000-0000-000000000001%3C%2FTD%3E%0A%3CTD%3EAOI-b438b4f6-912a-46d5-9cb1-b44069212abc%3C%2FTD%3E%0A%3CTD%3Eb438b4f6-912a-46d5-9cb1-b44069212abc%3C%2FTD%3E%0A%3CTD%3E2019-08-13T07%3A53%3A09Z%3C%2FTD%3E%0A%3CTD%3EWireData%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3EUnited%20States%3C%2FTD%3E%0A%3CTD%3EUS%3C%2FTD%3E%0A%3CTD%3EContosoAppSrv1%3C%2FTD%3E%0A%3CTD%3E2019-08-13T07%3A52%3A02Z%3C%2FTD%3E%0A%3CTD%3E2019-08-13T07%3A52%3A17Z%3C%2FTD%3E%0A%3CTD%3E10.6.0.28%3C%2FTD%3E%0A%3CTD%3E10.6.0.0%2F24%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E3389%3C%2FTD%3E%0A%3CTD%3E193.188.22.243%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E0%3C%2FTD%3E%0A%3CTD%3E10.6.0.28_3389_193.188.22.243_0_1104%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3EDisconnected%3C%2FTD%3E%0A%3CTD%3E1563%3C%2FTD%3E%0A%3CTD%3E1122%3C%2FTD%3E%0A%3CTD%3E2685%3C%2FTD%3E%0A%3CTD%3ETCP%3C%2FTD%3E%0A%3CTD%3EIPv4%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3EInbound%3C%2FTD%3E%0A%3CTD%3ERDP%3C%2FTD%3E%0A%3CTD%3E1104%3C%2FTD%3E%0A%3CTD%3EC%3A%5CWindows%5CSystem32%5Csvchost.exe%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E-122.28%3C%2FTD%3E%0A%3CTD%3E37.77%3C%2FTD%3E%0A%3CTD%3EUnited%20States%3C%2FTD%3E%0A%3CTD%3EOpsManager%3C%2FTD%3E%0A%3CTD%3E00000000-0000-0000-0000-000000000001%3C%2FTD%3E%0A%3CTD%3EAOI-b438b4f6-912a-46d5-9cb1-b44069212abc%3C%2FTD%3E%0A%3CTD%3Eb438b4f6-912a-46d5-9cb1-b44069212abc%3C%2FTD%3E%0A%3CTD%3E2019-08-13T07%3A53%3A09Z%3C%2FTD%3E%0A%3CTD%3EWireData%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3ENetherlands%3C%2FTD%3E%0A%3CTD%3ENL%3C%2FTD%3E%0A%3CTD%3EContosoAppSrv1%3C%2FTD%3E%0A%3CTD%3E2019-08-13T07%3A52%3A17Z%3C%2FTD%3E%0A%3CTD%3E2019-08-13T07%3A52%3A32Z%3C%2FTD%3E%0A%3CTD%3E10.6.0.28%3C%2FTD%3E%0A%3CTD%3E10.6.0.0%2F24%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E3389%3C%2FTD%3E%0A%3CTD%3E194.61.24.9%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E0%3C%2FTD%3E%0A%3CTD%3E10.6.0.28_3389_194.61.24.9_0_1104%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3EConnected%3C%2FTD%3E%0A%3CTD%3E4888%3C%2FTD%3E%0A%3CTD%3E4032%3C%2FTD%3E%0A%3CTD%3E8920%3C%2FTD%3E%0A%3CTD%3ETCP%3C%2FTD%3E%0A%3CTD%3EIPv4%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3EInbound%3C%2FTD%3E%0A%3CTD%3ERDP%3C%2FTD%3E%0A%3CTD%3E1104%3C%2FTD%3E%0A%3CTD%3EC%3A%5CWindows%5CSystem32%5Csvchost.exe%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3Enull%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%3E5.71%3C%2FTD%3E%0A%3CTD%3E52.51%3C%2FTD%3E%0A%3CTD%3ENetherlands%3C%2FTD%3E%0A%3CTD%3EOpsManager%3C%2FTD%3E%0A%3CTD%3E00000000-0000-0000-0000-000000000001%3C%2FTD%3E%0A%3CTD%3EAOI-b438b4f6-912a-46d5-9cb1-b44069212abc%3C%2FTD%3E%0A%3CTD%3Eb438b4f6-912a-46d5-9cb1-b44069212abc%3C%2FTD%3E%0A%3CTD%3E2019-08-13T07%3A53%3A09Z%3C%2FTD%3E%0A%3CTD%3EWireData%3C%2FTD%3E%0A%3CTD%3E%26nbsp%3B%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-982226%22%20slang%3D%22en-US%22%3ERe%3A%20Log%20analytics%20-%20Look%20up%20external%20source%20of%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-982226%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239477%22%20target%3D%22_blank%22%3E%40Clive%20Watson%3C%2FA%3E%26nbsp%3BThank%20you%20for%20the%20tip%20on%20External%20Data%20and%20I%20see%20how%20the%20External%20Data%20can%20be%20a%20Blob%20in%20Storage%20Account.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAside%20to%20flat%20files%2C%20can%20we%20have%20external%20data%20as%20a%20table%20in%20Storage%20Account%20that%20can%20be%20accessed%20from%20Log%20Analytics%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

We have a requirement where we should be able to lookup data from an external text file and use it in our filter conditions in the queries.

 

Since we did not see an option to do a lookup, we decided to attach a text file to one of the VMs and create a custom log. Now the other problem that we have is to parse the RawData from these text files.

 The example query is, lets say we are trying to find out the security events fired by users which belong to the text file in custom logs. Can anyone help in providing some reference in building such queries ?

 

SecurityEvent
| where SubjectUserName in ( table("USERS4_CL") | project RawData)

 

9 Replies
Highlighted

Hi,
you can do it quite like you show above. For example, here's how you can query Event logs of computers that also have security events from the last hour:
let computers_with_security_events = 

SecurityEvent | where TimeGenerated > now(-1h)  | project Computer;
Event | where TimeGenerated > now(-1h)  | where Computer in (computers_with_security_events)

 

If querying the custom log is very common, you might want to save this part as a function. If you name the function for example 'computers_in_my_custom_log' you can refer to it from any other query like this:

Event | where TimeGenerated > now(-1h) | where Computer in (computers_in_my_custom_log)
 
Hope this helps,
Noa
Highlighted

For your query specifically it seems like this should work, assuming you have ingested using Custom Logs functioanlity data from Custom Logs into the table User4_CL.

//Assuming your table User4_CL has username as a column - or substitute with appropriate colum.

let users=Users4_CL | summarize makeset(username);

SecurityEvent| where SubjectUserName in (users) | project RawData)

Highlighted

Thanks Noa, was able to slove the problem. It seems when I insert the custom logs using the API,its much better in terms of identifying sptring fields.

Highlighted

Thanks Ketan, i was able to make it work, my query was slightly different.

 

let arr = (search "whitelistusers_CL"  | project Name_s );


let foo = (tableName:string) {     table(tableName) | project Name_s }; 

let b = foo('whitelistusers_CL');

 

SecurityEvent
| where SubjectUserName in (b)

Highlighted

Ok.

 

Q: What is the first let statement for ?   let arr = (search "whitelistusers_CL" | project Name_s)

Doesn't seem to be used anywhere?

Highlighted

That first line was a mistake.

Highlighted

@Vineet Bhatia  I also have the same requirement. We have to lookup the data into a .csv file and use the corresponding data in a query. Instead of using Virtual machine, I want to use storage account. Any suggestions would be appreciated.

 

Thanks!!

Highlighted

@gagan2509rajpal 

 

You can use externaldata  operator to read files, like csv or tsvscsvsohsvpsvtxtraw.

 

This example files happens to be publicly accessible on a website, but you could use one in Azure Blob instead?

 

externaldata(Name:string, Code:string) [@"https://datahub.io/core/country-list/r/data.csv"]

 
Go to Log Analytics and Run Query

Name Code
Name Code
Afghanistan AF
Åland Islands AX
Albania AL
Algeria DZ
 
You can then JOIN those datasets together  - I've used the  WireData table, but you may need to use one you have or want to use - the link below uses the Microsoft demo dataset?
 
externaldata(Name:string, Code:string) [@"https://datahub.io/core/country-list/r/data.csv"]
| join kind= inner (
   WireData
   | where TimeGenerated > startofday(ago(1d))
) on $left.Name == $right.RemoteIPCountry
 
Run the above in the demo workspace, which adds the CODE column from the csv file to the WireData - use this link:
 
Example results:

Name Code Computer SessionStartTime SessionEndTime LocalIP LocalSubnet LocalMAC LocalPortNumber RemoteIP RemoteMAC RemotePortNumber SessionID SequenceNumber SessionState SentBytes ReceivedBytes TotalBytes ProtocolName IPVersion SentPackets ReceivedPackets Direction ApplicationProtocol ProcessID ProcessName ApplicationServiceName LatencyMilliseconds LatencySamplingTimeStamp LatencySamplingFailureRate MaliciousIP IndicatorThreatType Description TLPLevel Confidence Severity FirstReportedDateTime LastReportedDateTime IsActive ReportReferenceLink AdditionalInformation RemoteIPLongitude RemoteIPLatitude RemoteIPCountry SourceSystem MG ManagementGroupName TenantId TimeGenerated Type _ResourceId
Netherlands NL ContosoAppSrv1 2019-08-13T07:52:02Z 2019-08-13T07:52:17Z 10.6.0.28 10.6.0.0/24   3389 194.61.24.9   0 10.6.0.28_3389_194.61.24.9_0_1104 null Connected 6789 4272 11061 TCP IPv4 null null Inbound RDP 1104 C:\Windows\System32\svchost.exe   null null             null           5.71 52.51 Netherlands OpsManager 00000000-0000-0000-0000-000000000001 AOI-b438b4f6-912a-46d5-9cb1-b44069212abc b438b4f6-912a-46d5-9cb1-b44069212abc 2019-08-13T07:53:09Z WireData  
United States US ContosoAppSrv1 2019-08-13T07:52:02Z 2019-08-13T07:52:17Z 10.6.0.28 10.6.0.0/24   3389 50.243.35.24   0 10.6.0.28_3389_50.243.35.24_0_1104 null Disconnected 1563 1148 2711 TCP IPv4 null null Inbound RDP 1104 C:\Windows\System32\svchost.exe   null null             null           -75.14 39.99 United States OpsManager 00000000-0000-0000-0000-000000000001 AOI-b438b4f6-912a-46d5-9cb1-b44069212abc b438b4f6-912a-46d5-9cb1-b44069212abc 2019-08-13T07:53:09Z WireData  
Canada CA ContosoAppSrv1 2019-08-13T07:52:02Z 2019-08-13T07:52:17Z 10.6.0.28 10.6.0.0/24   3389 96.125.135.204   0 10.6.0.28_3389_96.125.135.204_0_1104 null Disconnected 1563 1144 2707 TCP IPv4 null null Inbound RDP 1104 C:\Windows\System32\svchost.exe   null null             null           -79.52 43.61 Canada OpsManager 00000000-0000-0000-0000-000000000001 AOI-b438b4f6-912a-46d5-9cb1-b44069212abc b438b4f6-912a-46d5-9cb1-b44069212abc 2019-08-13T07:53:09Z WireData  
United States US ContosoAppSrv1 2019-08-13T07:52:02Z 2019-08-13T07:52:17Z 10.6.0.28 10.6.0.0/24   3389 193.188.22.243   0 10.6.0.28_3389_193.188.22.243_0_1104 null Disconnected 1563 1122 2685 TCP IPv4 null null Inbound RDP 1104 C:\Windows\System32\svchost.exe   null null             null           -122.28 37.77 United States OpsManager 00000000-0000-0000-0000-000000000001 AOI-b438b4f6-912a-46d5-9cb1-b44069212abc b438b4f6-912a-46d5-9cb1-b44069212abc 2019-08-13T07:53:09Z WireData  
Netherlands NL ContosoAppSrv1 2019-08-13T07:52:17Z 2019-08-13T07:52:32Z 10.6.0.28 10.6.0.0/24   3389 194.61.24.9   0 10.6.0.28_3389_194.61.24.9_0_1104 null Connected 4888 4032 8920 TCP IPv4 null null Inbound RDP 1104 C:\Windows\System32\svchost.exe   null null             null           5.71 52.51 Netherlands OpsManager 00000000-0000-0000-0000-000000000001 AOI-b438b4f6-912a-46d5-9cb1-b44069212abc b438b4f6-912a-46d5-9cb1-b44069212abc 2019-08-13T07:53:09Z WireData  
 
Highlighted

@Clive Watson Thank you for the tip on External Data and I see how the External Data can be a Blob in Storage Account. 

 

Aside to flat files, can we have external data as a table in Storage Account that can be accessed from Log Analytics ?