SOLVED

Not getting logs from Custom Log source

%3CLINGO-SUB%20id%3D%22lingo-sub-1151859%22%20slang%3D%22en-US%22%3ENot%20getting%20logs%20from%20Custom%20Log%20source%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1151859%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Team%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20created%20a%20txt%20file%20and%20called%20it%20in%20the%20Custom%20log.%20The%20txt%20file%20contains%20only%205%20IPs%20separated%20by%20new%20line.%3C%2FP%3E%3CP%3EI%20am%20not%20getting%20those%205%20IPs%20in%20RawData%20for%20that%20Custom%20log.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20we%20need%20to%20do%20anything%20to%20enable%20reading%20the%20files%20via%20Custom%20log%3F%20My%20requirement%20is%20to%20make%20a%20list%20out%20of%20those%20IPs.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EMitesh%20Agrawal%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1152092%22%20slang%3D%22en-US%22%3ERe%3A%20Not%20getting%20logs%20from%20Custom%20Log%20source%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1152092%22%20slang%3D%22en-US%22%3EHow%20are%20you%20ingesting%20it%20in%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1152306%22%20slang%3D%22en-US%22%3ERe%3A%20Not%20getting%20logs%20from%20Custom%20Log%20source%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1152306%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F539205%22%20target%3D%22_blank%22%3E%40MiteshAgrawal%3C%2FA%3E%26nbsp%3BAnother%20option%20you%20can%20try%20to%20is%20to%20use%20PowerShell%20to%20read%20the%20file%20and%20add%20the%20entries%20into%20the%20Log%20Analytics%20workspace.%26nbsp%3B%20These%20links%20will%20help%20get%20you%20started.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fdata-collector-api%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fdata-collector-api%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgallery.technet.microsoft.com%2FPowerShell-script-to-0823e09d%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgallery.technet.microsoft.com%2FPowerShell-script-to-0823e09d%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1152448%22%20slang%3D%22en-US%22%3ERe%3A%20Not%20getting%20logs%20from%20Custom%20Log%20source%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1152448%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F46875%22%20target%3D%22_blank%22%3E%40Gary%20Bushey%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20quick%20reply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20find%20the%20attached%20screenshots%20which%20clearly%20shows%20what%20I%20am%20trying%20to%20do.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20following%20the%20below%20mentioned%20post%20to%20read%20data%20from%20txt%20files%20and%20looking%20for%20those%20entries%20in%20txt%20files%20in%20RawData%20under%20newly%20created%20Custom%20Log.%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fdata-sources-custom-logs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fdata-sources-custom-logs%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F46875%22%20target%3D%22_blank%22%3E%40Gary%20Bushey%3C%2FA%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%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%3B%3A%20Please%20help.%20I%20have%20also%20tried%20the%20below%20mentioned%20link%20but%20didn't%20get%20how%20to%20check%20the%20proxy%20issues.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-log-analytics%2Fazure-not-collecting-custom-log-data%2Fm-p%2F631780%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-log-analytics%2Fazure-not-collecting-custom-log-data%2Fm-p%2F631780%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20have%20the%20txt%20file%20in%20my%20local%20system%20with%20access%20to%20Azure.%20Custom%20Log%20creation%20was%20successful.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ERegards%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EMitesh%20Agrawal%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1152453%22%20slang%3D%22en-US%22%3ERe%3A%20Not%20getting%20logs%20from%20Custom%20Log%20source%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1152453%22%20slang%3D%22en-US%22%3EHi%2C%20Please%20check%20my%20reply%20to%20Gary.%20I%20have%20explained%20what%20I%20am%20trying%20to%20achieve%20and%20also%20have%20attached%20the%20screenshots%20for%20better%20understanding.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1152487%22%20slang%3D%22en-US%22%3ERe%3A%20Not%20getting%20logs%20from%20Custom%20Log%20source%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1152487%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F539205%22%20target%3D%22_blank%22%3E%40MiteshAgrawal%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%201st%20check%2C%20does%20your%20machine%20that%20contains%20the%20log%20file%20have%20a%20working%20MMA%20on%20it%3F%26nbsp%3B%20You%20have%20data%20from%20that%20computer%20in%20the%20Heartbeat%20table%3F%3C%2FP%3E%0A%3CP%3E2.%26nbsp%3B%20In%20Log%20Analytics%20the%20table%20shows%20up%20in%20the%20Schema%3F%26nbsp%3B%20%26nbsp%3BI%20think%20the%20answer%20is%20%3CSTRONG%3Eno%3C%2FSTRONG%3E%3F%3C%2FP%3E%0A%3CP%3E%3CNAME%20you%3D%22%22%20used%3D%22%22%3E_CL%3C%2FNAME%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorClive%20Watson_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3Ee.g.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorClive%20Watson_5%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Ecustom_CL%0A%7C%20limit%2010%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CDIV%20id%3D%22tinyMceEditorClive%20Watson_3%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20id%3D%22tinyMceEditorClive%20Watson_4%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3EIf%20the%20MMA%20isn't%20talking%20to%20Azure%20then%20its%20likely%20there%20is%20a%20network%20issue%20(often%20a%20proxy).%20Instructions%20will%20vary%20by%20product%20and%20setup%20to%20resolve%20this.%26nbsp%3B%20Can%20you%20put%20the%20file%20on%20a%20server%20that%20is%20working%3F%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorClive%20Watson_1%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20id%3D%22tinyMceEditorClive%20Watson_2%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%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-SUB%20id%3D%22lingo-sub-1156720%22%20slang%3D%22en-US%22%3ERe%3A%20Not%20getting%20logs%20from%20Custom%20Log%20source%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1156720%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%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%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F46875%22%20target%3D%22_blank%22%3E%40Gary%20Bushey%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20a%20tonne%20for%20your%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20having%20issue%20with%20the%20MMA%20and%20I%20resolved%20it%20and%20as%20you%20mentioned%2C%20I%20started%20receiving%20heartbeat%20from%20my%20system.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20in%20sometime%20I%20got%20the%20Custom%20Logs%20as%20well.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWithout%20your%20help%20this%20might%20not%20be%20possible.%20I%20have%20been%20using%20Azure%20only%20from%20past%20couple%20of%20days%20and%20was%20able%20to%20do%20this%20only%20because%20of%20your%20help.%20Thank%20you%20and%20the%20community.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20three%20more%20requirements.%20I%20have%20received%20the%20IPs%20in%20the%20RawData%20under%20Custom%20Log%20source%20table%20name.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20I%20want%20to%20save%20those%20IPs%20in%20some%20list%20or%20table%20permanently%20which%20I%20can%20call%20in%20rules.%20How%20can%20I%20achieve%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20I%20used%20BLOB%20storage%20and%20uploaded%20a%20txt%20file%20over%20there%20with%20IPs.%20Called%20them%20in%20the%20query%20using%20externaldata%20operator.%20This%20is%20successful.%20But%20again%20I%20want%20to%20use%20these%20IPs%20against%20rules%20and%20so%20want%20to%20save%20these%20IPs%20in%20some%20list.%20And%20what%20if%20I%20delete%20the%20blob%20object%2C%20if%20I%20do%20not%20create%20a%20list%20then%20we%20cannot%20reference%20the%20data%20via%20externaldata%20operator%20right%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E3.%20How%20can%20I%20change%20the%20time%20of%20querying%20the%20file%20read%20for%20Custom%20Log%20collection%3F%20I%20want%20to%20read%20the%20logs%20from%20the%20file%20in%20every%201%20hours%20(for%20example)%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20find%20the%20necessary%20screenshots%20attached%20in%20order%20to%20understand%20my%20requirement%20correctly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EMitesh%20Agrawal%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1158071%22%20slang%3D%22en-US%22%3ERe%3A%20Not%20getting%20logs%20from%20Custom%20Log%20source%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1158071%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F539205%22%20target%3D%22_blank%22%3E%40MiteshAgrawal%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-sentinel%2Fimplementing-lookups-in-azure-sentinel-part-1-reference-files%2Fba-p%2F1091306%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-sentinel%2Fimplementing-lookups-in-azure-sentinel-part-1-reference-files%2Fba-p%2F1091306%3C%2FA%3E%26nbsp%3Blists%20externaldata%20that%20you've%20used.%26nbsp%3B%20%3CBR%20%2F%3EI%20like%20this%20as%20the%20file%20on%20Blob%20is%20a%20single%20thing%20to%20maintain%20centrally%2C%20used%20by%20many%20scripts.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E2.%20If%20you%20delete%20the%20file%2C%20%3CSTRONG%3Eexternaldata%3C%2FSTRONG%3E%20will%20fail.%26nbsp%3B%20An%20alternative%20is%20a%20datatable%20in%20each%20Query%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fkusto%2Fquery%2Fdatatableoperator%3Fpivots%3Dazuremonitor%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fkusto%2Fquery%2Fdatatableoperator%3Fpivots%3Dazuremonitor%3C%2FA%3E%26nbsp%3B-%20depending%20on%20how%20much%20data%20you%20want%20to%20compare%20and%20how%20often%20it%20changes%2C%20and%20its%20unique%20to%20each%20query.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E3.%20Custom%20log%20works%20that%20way%20(when%20files%20changes%2Fflushes%20occur)%2C%20alternatives%20are%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fdata-sources-custom-logs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fdata-sources-custom-logs%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EIn%20the%20cases%20where%20your%20data%20can't%20be%20collected%20with%20custom%20logs%2C%20consider%20the%20following%20alternate%20strategies%3A%3C%2FEM%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CEM%3EUse%20a%20custom%20script%20or%20other%20method%20to%20write%20data%20to%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fdata-sources-windows-events%22%20data-linktype%3D%22relative-path%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EWindows%20Events%3C%2FA%3E%26nbsp%3Bor%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fdata-sources-syslog%22%20data-linktype%3D%22relative-path%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ESyslog%3C%2FA%3E%26nbsp%3Bwhich%20are%20collected%20by%20Azure%20Monitor.%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3E%3CEM%3ESend%20the%20data%20directly%20to%20Azure%20Monitor%20using%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fdata-collector-api%22%20data-linktype%3D%22relative-path%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EHTTP%20Data%20Collector%20API%3C%2FA%3E.%3C%2FEM%3E%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1164036%22%20slang%3D%22en-US%22%3ERe%3A%20Not%20getting%20logs%20from%20Custom%20Log%20source%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1164036%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%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%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20I%20append%20blobs%20using%20scripts%3F%20I%20mean%20if%20I%20get%20some%20new%20IOCs%20then%20I%20do%20not%20want%20to%20manually%20upload%20the%20BLOB.%20I%20want%20a%20mechanism%20which%20can%20append%20some%20data%20in%20an%20exisiting%20BLOB.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20is%20it%20possible%20to%20get%20data%20from%20an%20external%20website%20and%20do%20certain%20operations%20and%20create%20a%20BLOB%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EMitesh%20Agrawal%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi Team,

 

I created a txt file and called it in the Custom log. The txt file contains only 5 IPs separated by new line.

I am not getting those 5 IPs in RawData for that Custom log. 

 

Do we need to do anything to enable reading the files via Custom log? My requirement is to make a list out of those IPs.

 

Please help.

 

Regards,

Mitesh Agrawal

8 Replies
How are you ingesting it in?

@MiteshAgrawal Another option you can try to is to use PowerShell to read the file and add the entries into the Log Analytics workspace.  These links will help get you started.

 

https://docs.microsoft.com/en-us/azure/azure-monitor/platform/data-collector-api

https://gallery.technet.microsoft.com/PowerShell-script-to-0823e09d

Hi @Gary Bushey ,

 

Thanks for your quick reply.

 

Please find the attached screenshots which clearly shows what I am trying to do.

 

I am following the below mentioned post to read data from txt files and looking for those entries in txt files in RawData under newly created Custom Log.

https://docs.microsoft.com/en-us/azure/azure-monitor/platform/data-sources-custom-logs

 

@Gary Bushey   @Clive Watson : Please help. I have also tried the below mentioned link but didn't get how to check the proxy issues.

https://techcommunity.microsoft.com/t5/azure-log-analytics/azure-not-collecting-custom-log-data/m-p/...

 

I have the txt file in my local system with access to Azure. Custom Log creation was successful.

 

 

Regards,

Mitesh Agrawal

 

Hi, Please check my reply to Gary. I have explained what I am trying to achieve and also have attached the screenshots for better understanding.
best response confirmed by MiteshAgrawal (Contributor)
Solution

@MiteshAgrawal 

 

1. 1st check, does your machine that contains the log file have a working MMA on it?  You have data from that computer in the Heartbeat table?

2.  In Log Analytics the table shows up in the Schema?   I think the answer is no?

<name you used>_CL

 

e.g.

 
custom_CL
| limit 10
 
 

If the MMA isn't talking to Azure then its likely there is a network issue (often a proxy). Instructions will vary by product and setup to resolve this.  Can you put the file on a server that is working?

 
 

 

 

 

Hi @Clive Watson @Gary Bushey ,

 

Thanks a tonne for your help.

 

I was having issue with the MMA and I resolved it and as you mentioned, I started receiving heartbeat from my system.

 

Also, in sometime I got the Custom Logs as well.

 

Without your help this might not be possible. I have been using Azure only from past couple of days and was able to do this only because of your help. Thank you and the community.

 

I have three more requirements. I have received the IPs in the RawData under Custom Log source table name.

 

1. I want to save those IPs in some list or table permanently which I can call in rules. How can I achieve this?

 

2. I used BLOB storage and uploaded a txt file over there with IPs. Called them in the query using externaldata operator. This is successful. But again I want to use these IPs against rules and so want to save these IPs in some list. And what if I delete the blob object, if I do not create a list then we cannot reference the data via externaldata operator right?

 

3. How can I change the time of querying the file read for Custom Log collection? I want to read the logs from the file in every 1 hours (for example)?

 

Please find the necessary screenshots attached in order to understand my requirement correctly.

 

Regards,

Mitesh Agrawal

@MiteshAgrawal 

 

1. https://techcommunity.microsoft.com/t5/azure-sentinel/implementing-lookups-in-azure-sentinel-part-1-... lists externaldata that you've used. 
I like this as the file on Blob is a single thing to maintain centrally, used by many scripts.


2. If you delete the file, externaldata will fail.  An alternative is a datatable in each Query https://docs.microsoft.com/en-us/azure/kusto/query/datatableoperator?pivots=azuremonitor - depending on how much data you want to compare and how often it changes, and its unique to each query.

3. Custom log works that way (when files changes/flushes occur), alternatives are: https://docs.microsoft.com/en-us/azure/azure-monitor/platform/data-sources-custom-logs 

In the cases where your data can't be collected with custom logs, consider the following alternate strategies:

Hi @Clive Watson,

 

How can I append blobs using scripts? I mean if I get some new IOCs then I do not want to manually upload the BLOB. I want a mechanism which can append some data in an exisiting BLOB.

 

Also, is it possible to get data from an external website and do certain operations and create a BLOB?

 

Regards,

Mitesh Agrawal