Home

Failed Sign-in queries not working

%3CLINGO-SUB%20id%3D%22lingo-sub-369308%22%20slang%3D%22en-US%22%3EFailed%20Sign-in%20queries%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-369308%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EToday%2C%20I%20noticed%20that%20the%20queries%20to%20display%20failed%20sign-ins%20are%20not%20working.%20This%20is%20(one%20of)%20the%20queries%20used%20in%20the%20default%20Azure%20AD%20Sign-Ins%20dashboard%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CEM%3ESigninLogs%3C%2FEM%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CEM%3E%7C%20extend%20ErrorCode%20%3D%20Status.errorCode%3C%2FEM%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CEM%3E%7C%20extend%20FailureReason%20%3D%20Status.failureReason%3C%2FEM%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CEM%3E%7C%20where%20ErrorCode%20!in%20(%220%22%2C%225048%22%2C%2250140%22%2C%20%2251006%22%2C%20%2250059%22%2C%20%2265001%22%2C%20%2252004%22%2C%20%2250055%22%2C%20%2250144%22%2C%2250072%22%2C%20%2250074%22%2C%20%2216000%22%2C%2216001%22%2C%20%2216003%22%2C%20%2250127%22%2C%20%2250125%22%2C%20%2250129%22%2C%2250143%22%2C%20%2281010%22%2C%20%2281014%22%2C%20%2281012%22)%3C%2FEM%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CEM%3E%7C%20summarize%20count()%20by%20bin(TimeGenerated%2C%2024h)%3C%2FEM%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EAs%20you%20can%20see%2C%20the%20query%20is%20looking%20for%20the%20ErrorCodes%20above.%20However%2C%20when%20manually%20querying%20the%20logs%2C%20the%20data%20is%20formatted%20differently.%20For%20example%2C%2050140%20is%20%2250%2C140%22%2C%2065001%20is%20%2265%2C001%22%20etc.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EWhen%20I%20(manually)%20update%20the%20query%20(below)%2C%20it%20works%20again%20(stripped%20for%20brevity)%3A%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CEM%3E...%7C%20where%20ErrorCode%20!in%20(%220%22%2C%225048%22%2C%2250%2C140%22%2C%20%2251%2C006%22%2C%20%2250%2C059%22%2C%20....%3C%2FEM%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3ECan%20someone%20look%20into%20the%20data%20format%20and%2For%20default%20queries%20for%20the%20dashboard%3F%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EThanks%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EMichael%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-393249%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20Sign-in%20queries%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-393249%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F301871%22%20target%3D%22_blank%22%3E%40Juliango%3C%2FA%3E%26nbsp%3Bsorry%20for%20the%20belated%20reply.%20Because%20of%20travel%20(MVP%20summit)%20and%20some%20other%20engagements%2C%20I%20have%20not%20had%20much%20time%20to%20look%20into%20the%20Tech%20Community...%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20query%2Fqueries%20I%20am%20referring%20to%20are%20part%20of%20the%20built-in%20Azure%20AD%20Sign-in%20logs%20dashboard%20(see%20screenshot%20below).%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F101425i980B850C9446A569%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%221_failedsignins.png%22%20title%3D%221_failedsignins.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWhen%20looking%20into%20the%20query%20behind%20any%20of%20these%20given%20'reports'%2C%20the%20issue%20is%20the%20same.%20To%20view%20the%20query%2C%20I%20click%20%22edit%20query%22.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20example%2C%20the%20following%20is%20the%20query%20for%20the%20%22Sign-in%20errors%22-report%3A%3C%2FP%3E%0A%3CP%3ESigninLogs%20%7C%20extend%20ErrorCode%20%3D%20Status.errorCode%20%7C%20extend%20FailureReason%20%3D%20Status.failureReason%20%7C%20where%20ErrorCode%20!in%20(%220%22%2C%225048%22%2C%2250140%22%2C%20%2251006%22%2C%20%2250059%22%2C%20%2265001%22%2C%20%2252004%22%2C%20%2250055%22%2C%20%2250144%22%2C%2250072%22%2C%20%2250074%22%2C%20%2216000%22%2C%2216001%22%2C%20%2216003%22%2C%20%2250127%22%2C%20%2250125%22%2C%20%2250129%22%2C%2250143%22%2C%20%2281010%22%2C%20%2281014%22%2C%20%2281012%22)%20%7C%20summarize%20count()%20by%20bin(TimeGenerated%2C%2024h)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20query%20returns%20no%20results.%20However%2C%20when%20I%20update%20the%20query%20to%20the%20following%2C%20it%20works%20as%20expected%3A%3C%2FP%3E%0A%3CP%3ESigninLogs%20%7C%20extend%20ErrorCode%20%3D%20Status.errorCode%20%7C%20extend%20FailureReason%20%3D%20Status.failureReason%20%7C%20where%20ErrorCode%20!in%20(%220%22%2C%225%2C048%22%2C%2250%2C140%22%2C%20%2251%2C006%22%2C%20%2250%2C059%22%2C%20%2265%2C001%22%2C%20%2252%2C004%22%2C%20%2250%2C055%22%2C%20%2250%2C144%22%2C%2250%2C072%22%2C%20%2250%2C074%22%2C%20%2216%2C000%22%2C%2216%2C001%22%2C%20%2216%2C003%22%2C%20%2250%2C127%22%2C%20%2250%2C125%22%2C%20%2250%2C129%22%2C%2250%2C143%22%2C%20%2281%2C010%22%2C%20%2281%2C014%22%2C%20%2281%2C012%22)%20%7C%20summarize%20count()%20by%20bin(TimeGenerated%2C%2024h)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENote%20that%20I%20had%20to%20add%20the%20commas%20manually.%20Result%20in%20the%20screenshot%20below%3A%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-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F101427i279CA1566C85757D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222_workingquery.png%22%20title%3D%222_workingquery.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20hope%20this%20clarifies%20things%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-372522%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20Sign-in%20queries%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-372522%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3400%22%20target%3D%22_blank%22%3E%40Michael%20Van%20Horenbeeck%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20couldn't%20find%20which%20query%20in%20which%20dashboard%20this%20query%20was%20associated%20with.%26nbsp%3B%20I%20clicked%20through%20all%20of%20the%20queries%20on%20the%20AD%20dashboard%20and%20didn't%20see%20this%20query%20in%20any%20of%20them.%26nbsp%3B%20Do%20you%20mind%20giving%20me%20more%20information%20so%20I%20can%20find%20it%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlso%2C%20the%20query%20you%20showed%20is%20looking%20for%20error%20codes%20that%20do%20not%20appear%20in%20the%20list.%26nbsp%3B%20(!in)%26nbsp%3B%20I%20couldn't%20find%20any%20problems%20with%20the%20query%20but%20let%20me%20know%20if%20I%20am%20missing%20something.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20query%20you%20showed%2C%20the%20%22ErrorCode%22%20column%20is%20an%20extended%20column%20displaying%20a%20dynamic%20data%20type%20derived%20from%20an%20integer%20data%20type%20(%22errorCode%22).%26nbsp%3B%20Both%20columns%20are%20referring%20to%20the%20same%20data%2C%20just%20displayed%20differently.%26nbsp%3B%20I%20put%20a%20query%20below%20to%20demonstrate%20the%20difference.%26nbsp%3B%20I%20am%20not%20sure%20if%20this%20sheds%20light%20on%20this%20situation%2C%20so%20let%20me%20know%20if%20this%20doesn't%20address%20your%20concern.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20style%3D%22color%3A%20%23000000%3B%20background-color%3A%20%23fffffe%3B%20font-family%3A%20Consolas%2C%20'Courier%20New'%2C%20monospace%3B%20font-weight%3A%20normal%3B%20font-size%3A%2014px%3B%20line-height%3A%2016px%3B%20white-space%3A%20pre%3B%22%3E%0A%3CDIV%3E%0A%3CDIV%20style%3D%22color%3A%20%23000000%3B%20background-color%3A%20%23fffffe%3B%20font-family%3A%20Consolas%2C%20'Courier%20New'%2C%20monospace%3B%20font-weight%3A%20normal%3B%20font-size%3A%2014px%3B%20line-height%3A%2016px%3B%20white-space%3A%20pre%3B%22%3E%0A%3CDIV%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3ESigninLogs%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%7C%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%230000ff%3B%22%3Ewhere%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%20TimeGenerated%20%26gt%3B%3D%20ago(%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%2309885a%3B%22%3E365%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3Ed)%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%7C%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%230000ff%3B%22%3Eextend%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%20ErrorCode%20%3D%20Status.errorCode%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%7C%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%230000ff%3B%22%3Eextend%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%20FailureReason%20%3D%20Status.failureReason%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%7C%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%230000ff%3B%22%3Eevaluate%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%20bag_unpack(Status)%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%7C%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%230000ff%3B%22%3Eproject%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%20ErrorCode%2C%20errorCode%2C%20errorString%20%3D%20tostring(errorCode)%2C%20errorInt%20%3D%20toint(errorCode)%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%7C%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%230000ff%3B%22%3Esummarize%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22color%3A%20%230000ff%3B%22%3Eby%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%20tostring(ErrorCode)%2C%20errorCode%2C%20errorString%2C%20errorInt%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-370144%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20Sign-in%20queries%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-370144%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%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%26nbsp%3B%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23333333%3B%20font-family%3A%20'SegoeUI'%2C'Lato'%2C'Helvetica%20Neue'%2CHelvetica%2CArial%2Csans-serif%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%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%3EIs%20this%20something%20you%20can%20speak%20to%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-443713%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20Sign-in%20queries%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-443713%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F301871%22%20target%3D%22_blank%22%3E%40Juliango%3C%2FA%3E%26nbsp%3Bany%20update%20on%20this...%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-445873%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20Sign-in%20queries%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-445873%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3400%22%20target%3D%22_blank%22%3E%40Michael%20Van%20Horenbeeck%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%2F293879%22%20target%3D%22_blank%22%3E%40Ofer_Shezaf%3C%2FA%3E%3A%20Looping%20in%20Ofer%20and%20Chris.%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%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-447240%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20Sign-in%20queries%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-447240%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F293935%22%20target%3D%22_blank%22%3E%40Valon_Kolica%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%2F3400%22%20target%3D%22_blank%22%3E%40Michael%20Van%20Horenbeeck%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMichael%2C%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20appears%20your%20fix%20works%20because%20your%20IN%20statement%20is%20actually%20a%20NOT%20IN%20(!in)%20statement.%20So%20when%20you%20add%20the%20%22%2C%22%20you're%20allowing%20the%20query%20to%20now%20search%20for%20those%20errors%20codes%20in%20which%20it%20was%20ignoring%20before.%26nbsp%3B%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-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F108482i36FB1B9943704616%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Annotation%202019-04-12%20141727.png%22%20title%3D%22Annotation%202019-04-12%20141727.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20you're%20looking%20at%20the%20return%20data%20and%20if%20it%20has%20commas%2C%20normally%20this%20is%20a%20client%20side%20feature%20to%20make%20the%20data%20more%20readable.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20this%20helps%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-447353%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20Sign-in%20queries%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-447353%22%20slang%3D%22en-US%22%3EChris%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%2C%20but%20my%20point%20is%20that%20I%20did%20not%20change%20the%20queries%20at%20all.%20These%20are%20the%20default%20queries%20from%20the%20default%20dashboard...%20The%20dashboard%20stopped%20working%20all%20of%20a%20sudden.%20Even%20more%20so%2C%20the%20queries%20are%20also%20a%20NOT%20IN%20(see%20my%20previous%20copy%2Fpaste).%3CBR%20%2F%3E%3CBR%20%2F%3EMore%20than%20happy%20to%20create%20a%20video%20to%20show%20you%20of%20that%20helps!%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%2C%3CBR%20%2F%3E%3CBR%20%2F%3EMichael%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-447721%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20Sign-in%20queries%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-447721%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%3BI%20figured%20creating%20a%20short%20video%20wouldn't%20hurt.%20In%20the%20video%20you'll%20see%20what%20I'm%20talking%20about.%20I'm%20opening%20the%20built-in%20dashboard%20for%20Azure%20AD%20Sign-Ins%20and%20notice%20some%20reports%20aren't%20working.%26nbsp%3BI%20then%20just%20edit%20the%20built-in%20query%20and%20add%20the%20commas%20to%20get%20it%20back%20up-and-running.%20Nothing%20else.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20question%20isn't%20why%20my%20workaround%20works.%20But%20rather%201)%20why%20has%20this%20happened%20with%20this%20dashboard%20and%202)%20why%20do%20I%20need%20to%20add%20commas%20to%20my%20queries%20in%20this%20tenant%2C%20but%20not%20in%20other%20tenants%20(where%20the%20built-in%20reports%20just%20work%20fine)%3F%20Could%20this%20be%20due%20to%20region%20or%20language%20settings%3F%20Although%20I%20would%20expect%20those%20to%20be%20transparent%20to%20the%20backend...%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMichael%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-450857%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20Sign-in%20queries%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-450857%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3400%22%20target%3D%22_blank%22%3E%40Michael%20Van%20Horenbeeck%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20you%20say%2C%20in%20most%20tenants%20(and%20all%20that%20I%20have%20access%20to)%2C%20the%20event%20IDs%20do%20not%20have%20a%20comma%2C%20and%20the%20dashboard%20works%20right.%20I%20suggest%20opening%20a%20support%20ticket%20to%20investigate%20what's%20unique%20to%20this%20tenant.%20As%20a%20first%20step%20providing%20here%20a%20sample%20of%20the%20raw%20events%20may%20help%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CEM%3ESigninLogs%3C%2FEM%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CEM%3E%7C%20extend%20ErrorCode%20%3D%20Status.errorCode%3C%2FEM%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CEM%3E%7C%20extend%20FailureReason%20%3D%20Status.failureReason%3C%2FEM%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CEM%3E%7C%20where%20ErrorCode%20!in%20(%220%22)%3C%2FEM%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat%20said%2C%20not%20that%20as%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%3Bwrites%2C%20the%20cause%20you%20update%20is%20a%20negation%20clause%2C%20so%20the%20dashboard%20works%20also%20if%20completely%20removed%2C%20just%20reporting%20on%20unneeded%20events.%20In%20practice%2C%20ErrorCode%3D0%20would%20dominate%20which%20may%20make%20the%20chart%20awkward.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E~%20Ofer%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-454366%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20Sign-in%20queries%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-454366%22%20slang%3D%22en-US%22%3E%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%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3400%22%20target%3D%22_blank%22%3E%40Michael%20Van%20Horenbeeck%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFollow%20up%20to%20what%20Ofer%20has%20mentioned%2C%20run%20the%20follow%20query%20to%20see%20what%20events%20have%20been%20collected%20within%20your%20SignInLogs%20Security%20Events.%20See%20if%20any%20of%20them%20are%20outside%20of%20the%20query.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20style%3D%22color%3A%20%23000000%3B%20background-color%3A%20%23fffffe%3B%20font-family%3A%20Consolas%2C%20'Courier%20New'%2C%20monospace%3B%20font-weight%3A%20normal%3B%20font-size%3A%2014px%3B%20line-height%3A%2016px%3B%20white-space%3A%20pre%3B%22%3E%0A%3CDIV%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3ESigninLogs%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%7C%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%230000ff%3B%22%3Eextend%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%20tostring(ErrorCode%20%3D%20Status.errorCode)%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%2C%20tostring(FailureReason%20%3D%20Status.failureReason)%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%7C%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%230000ff%3B%22%3Edistinct%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%20ErrorCode%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EExample%3A%20over%2024%20hours%20showing%20a%20list%20of%20ErrorCode%20types.%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-inline%22%20style%3D%22width%3A%20558px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F108815iAF70CE3F926890E5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Annotation%202019-04-15%20093114.png%22%20title%3D%22Annotation%202019-04-15%20093114.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-454468%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20Sign-in%20queries%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-454468%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%0A%3CP%3E%3CBR%20%2F%3EI%20get%20'similar'%20results%20to%20you.%20In%20my%20environment%20only%20a%20hit%20for%20code%2050140.%20Also%2C%20the%20information%20returned%20is%20without%20a%20comma%20(as%20you%20would%20expect).%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-inline%22%20style%3D%22width%3A%20445px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F108819iA630354D5DFFB6EC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222019-04-15_15-45-14.png%22%20title%3D%222019-04-15_15-45-14.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-454920%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20Sign-in%20queries%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-454920%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3400%22%20target%3D%22_blank%22%3E%40Michael%20Van%20Horenbeeck%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESo%20based%20on%20that%20data%2C%20we%20see%200%20events%20outside%20of%20the%20following%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoeui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Blato%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Chelvetica%2Carial%2Csans-serif%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%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%3CEM%20style%3D%22box-sizing%3A%20border-box%3B%22%3ESigninLogs%3C%2FEM%3E%3C%2FDIV%3E%0A%3CDIV%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoeui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Blato%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Chelvetica%2Carial%2Csans-serif%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%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%3CEM%20style%3D%22box-sizing%3A%20border-box%3B%22%3E%7C%20extend%20ErrorCode%20%3D%20Status.errorCode%3C%2FEM%3E%3C%2FDIV%3E%0A%3CDIV%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoeui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Blato%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Chelvetica%2Carial%2Csans-serif%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%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%3CEM%20style%3D%22box-sizing%3A%20border-box%3B%22%3E%7C%20extend%20FailureReason%20%3D%20Status.failureReason%3C%2FEM%3E%3C%2FDIV%3E%0A%3CDIV%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoeui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Blato%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Chelvetica%2Carial%2Csans-serif%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%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%3CEM%20style%3D%22box-sizing%3A%20border-box%3B%22%3E%7C%20where%20ErrorCode%20!in%20(%220%22%2C%225048%22%2C%2250140%22%2C%20%2251006%22%2C%20%2250059%22%2C%20%2265001%22%2C%20%2252004%22%2C%20%2250055%22%2C%20%2250144%22%2C%2250072%22%2C%20%2250074%22%2C%20%2216000%22%2C%2216001%22%2C%20%2216003%22%2C%20%2250127%22%2C%20%2250125%22%2C%20%2250129%22%2C%2250143%22%2C%20%2281010%22%2C%20%2281014%22%2C%20%2281012%22)%3C%2FEM%3E%3C%2FDIV%3E%0A%3CDIV%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoeui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Blato%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Chelvetica%2Carial%2Csans-serif%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%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%3CEM%20style%3D%22box-sizing%3A%20border-box%3B%22%3E%7C%20summarize%20count()%20by%20bin(TimeGenerated%2C%2024h)%3C%2FEM%3E%3C%2FDIV%3E%0A%3CDIV%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoeui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Blato%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Chelvetica%2Carial%2Csans-serif%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%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%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoeui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Blato%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Chelvetica%2Carial%2Csans-serif%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%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%3EShowing%20a%20blank%20report%2C%20we're%20looking%20for%20something%20without%20those%20events%20ID.%20The%20only%20events%20that%20have%20been%20collected%20thus%20far%20are%20ignored.%26nbsp%3B%20When%20you%20have%20an%20EventID%20that%20different%20than%20the%20ones%20reported%20above%2C%20you'll%20have%20a%20tick%20mark%20added%20to%20the%20graph.%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-455253%22%20slang%3D%22en-US%22%3ERe%3A%20Failed%20Sign-in%20queries%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-455253%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%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHey%20Chris%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks.%20I've%20been%20staring%20blind%20on%20the%20fact%20the%20reports%20*did*%20work%20before...%20Odd%20though%2C%20but%20seems%20we're%20doing%20fairly%20well%20in%20our%20tenant%2C%20then...%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E-Michael%3C%2FP%3E%3C%2FLINGO-BODY%3E
Michael Van Horenbeeck
MVP

Hi all,

 

Today, I noticed that the queries to display failed sign-ins are not working. This is (one of) the queries used in the default Azure AD Sign-Ins dashboard:

 

SigninLogs
| extend ErrorCode = Status.errorCode
| extend FailureReason = Status.failureReason
| where ErrorCode !in ("0","5048","50140", "51006", "50059", "65001", "52004", "50055", "50144","50072", "50074", "16000","16001", "16003", "50127", "50125", "50129","50143", "81010", "81014", "81012")
| summarize count() by bin(TimeGenerated, 24h)
 
As you can see, the query is looking for the ErrorCodes above. However, when manually querying the logs, the data is formatted differently. For example, 50140 is "50,140", 65001 is "65,001" etc.
When I (manually) update the query (below), it works again (stripped for brevity):
 
...| where ErrorCode !in ("0","5048","50,140", "51,006", "50,059", ....
 
Can someone look into the data format and/or default queries for the dashboard?
 
Thanks,
 
Michael
13 Replies

 @Eliav LeviIs this something you can speak to?

Hi @Michael Van Horenbeeck,

 

I couldn't find which query in which dashboard this query was associated with.  I clicked through all of the queries on the AD dashboard and didn't see this query in any of them.  Do you mind giving me more information so I can find it?

 

Also, the query you showed is looking for error codes that do not appear in the list.  (!in)  I couldn't find any problems with the query but let me know if I am missing something.

 

In the query you showed, the "ErrorCode" column is an extended column displaying a dynamic data type derived from an integer data type ("errorCode").  Both columns are referring to the same data, just displayed differently.  I put a query below to demonstrate the difference.  I am not sure if this sheds light on this situation, so let me know if this doesn't address your concern.

 

SigninLogs
| where TimeGenerated >= ago(365d)
| extend ErrorCode = Status.errorCode
| extend FailureReason = Status.failureReason
| evaluate bag_unpack(Status)
| project ErrorCode, errorCode, errorString = tostring(errorCode), errorInt = toint(errorCode)
| summarize by tostring(ErrorCode), errorCode, errorString, errorInt

@Juliango sorry for the belated reply. Because of travel (MVP summit) and some other engagements, I have not had much time to look into the Tech Community... 

 

The query/queries I am referring to are part of the built-in Azure AD Sign-in logs dashboard (see screenshot below).

1_failedsignins.png

When looking into the query behind any of these given 'reports', the issue is the same. To view the query, I click "edit query".

 

For example, the following is the query for the "Sign-in errors"-report:

SigninLogs | extend ErrorCode = Status.errorCode | extend FailureReason = Status.failureReason | where ErrorCode !in ("0","5048","50140", "51006", "50059", "65001", "52004", "50055", "50144","50072", "50074", "16000","16001", "16003", "50127", "50125", "50129","50143", "81010", "81014", "81012") | summarize count() by bin(TimeGenerated, 24h)

 

This query returns no results. However, when I update the query to the following, it works as expected:

SigninLogs | extend ErrorCode = Status.errorCode | extend FailureReason = Status.failureReason | where ErrorCode !in ("0","5,048","50,140", "51,006", "50,059", "65,001", "52,004", "50,055", "50,144","50,072", "50,074", "16,000","16,001", "16,003", "50,127", "50,125", "50,129","50,143", "81,010", "81,014", "81,012") | summarize count() by bin(TimeGenerated, 24h)

 

Note that I had to add the commas manually. Result in the screenshot below:

 

2_workingquery.png

 

I hope this clarifies things?

 

@Juliango any update on this...?

@Michael Van Horenbeeck 

 

@Ofer_Shezaf: Looping in Ofer and Chris.

@Chris Boehm  

@Valon_Kolica 

@Michael Van Horenbeeck 

 

Michael, 

 

It appears your fix works because your IN statement is actually a NOT IN (!in) statement. So when you add the "," you're allowing the query to now search for those errors codes in which it was ignoring before. 

 

Annotation 2019-04-12 141727.png

 

When you're looking at the return data and if it has commas, normally this is a client side feature to make the data more readable. 

 

Hope this helps,

 

Thanks!

Chris,

Thanks, but my point is that I did not change the queries at all. These are the default queries from the default dashboard... The dashboard stopped working all of a sudden. Even more so, the queries are also a NOT IN (see my previous copy/paste).

More than happy to create a video to show you of that helps!

Thanks,

Michael

@Chris Boehm I figured creating a short video wouldn't hurt. In the video you'll see what I'm talking about. I'm opening the built-in dashboard for Azure AD Sign-Ins and notice some reports aren't working. I then just edit the built-in query and add the commas to get it back up-and-running. Nothing else.

 

The question isn't why my workaround works. But rather 1) why has this happened with this dashboard and 2) why do I need to add commas to my queries in this tenant, but not in other tenants (where the built-in reports just work fine)? Could this be due to region or language settings? Although I would expect those to be transparent to the backend...

 

Thanks,

 

Michael

Hi @Michael Van Horenbeeck 

 

As you say, in most tenants (and all that I have access to), the event IDs do not have a comma, and the dashboard works right. I suggest opening a support ticket to investigate what's unique to this tenant. As a first step providing here a sample of the raw events may help:

 

SigninLogs
| extend ErrorCode = Status.errorCode
| extend FailureReason = Status.failureReason
| where ErrorCode !in ("0")

 

That said, not that as @Chris Boehm writes, the cause you update is a negation clause, so the dashboard works also if completely removed, just reporting on unneeded events. In practice, ErrorCode=0 would dominate which may make the chart awkward.

 

~ Ofer

@Ofer_Shezaf

@Michael Van Horenbeeck 

 

Follow up to what Ofer has mentioned, run the follow query to see what events have been collected within your SignInLogs Security Events. See if any of them are outside of the query.

 

SigninLogs
| extend tostring(ErrorCode = Status.errorCode)
, tostring(FailureReason = Status.failureReason)
| distinct ErrorCode

 

Example: over 24 hours showing a list of ErrorCode types.

 

Annotation 2019-04-15 093114.png

@Chris Boehm 


I get 'similar' results to you. In my environment only a hit for code 50140. Also, the information returned is without a comma (as you would expect).

 

2019-04-15_15-45-14.png

@Michael Van Horenbeeck 

 

So based on that data, we see 0 events outside of the following:

 

SigninLogs
| extend ErrorCode = Status.errorCode
| extend FailureReason = Status.failureReason
| where ErrorCode !in ("0","5048","50140", "51006", "50059", "65001", "52004", "50055", "50144","50072", "50074", "16000","16001", "16003", "50127", "50125", "50129","50143", "81010", "81014", "81012")
| summarize count() by bin(TimeGenerated, 24h)
 
Showing a blank report, we're looking for something without those events ID. The only events that have been collected thus far are ignored.  When you have an EventID that different than the ones reported above, you'll have a tick mark added to the graph.

@Chris Boehm 

 

Hey Chris,

 

Thanks. I've been staring blind on the fact the reports *did* work before... Odd though, but seems we're doing fairly well in our tenant, then...

 

-Michael

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