Help with making the query work

%3CLINGO-SUB%20id%3D%22lingo-sub-1457064%22%20slang%3D%22en-US%22%3EHelp%20with%20making%20the%20query%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1457064%22%20slang%3D%22en-US%22%3E%3CP%3EConfigurationChange%3CBR%20%2F%3E%7C%20where%20ConfigChangeType%20%3D%3D%20%22WindowsServices%22%3CBR%20%2F%3Eand%20SvcState%20%3D%3D%20%22Stopped%22%3CBR%20%2F%3Eand%20(%3CBR%20%2F%3EComputer%20has%20%22NH-P2PAPP01.networkhg.org.uk%22%3CBR%20%2F%3Eor%20Computer%20has%20%E2%80%9CNET-P2PLIVEAPP1.networkhg.org.uk%22%3CBR%20%2F%3Eor%20Computer%20has%20%E2%80%9CNET-P2PTESTAPP.networkhg.org.uk%E2%80%9D%3CBR%20%2F%3E)%3CBR%20%2F%3Eand%20(%3CBR%20%2F%3ESvcDisplayName%20%3D%3D%20%22Integra%20eSeries%20FINPROD%22%3CBR%20%2F%3Eor%20SvcDisplayName%20%3D%3D%20%22Integra%20SPC%20FINPROD%E2%80%9D%3CBR%20%2F%3Eor%20SvcDisplayName%20%3D%3D%20%22Integra%20UAS%20FINPROD%22%3CBR%20%2F%3Eor%20SvcDisplayName%20%3D%3D%20%22Integra%20eSeries%20FINDEV%22%3CBR%20%2F%3Eor%20SvcDisplayName%20%3D%3D%20%22Integra%20SPC%20FINDEV%22%3CBR%20%2F%3Eor%20SvcDisplayName%20%3D%3D%20%22Integra%20UAS%20FINDEV%22%3CBR%20%2F%3Eor%20SvcDisplayName%20%3D%3D%20%22Integra%20eSeries%20Duet%22%3CBR%20%2F%3Eor%20SvcDisplayName%20%3D%3D%20%E2%80%9CIntegra%20eSeries%20SPTDEV%22%3CBR%20%2F%3Eor%20SvcDisplayName%20%3D%3D%20%22Integra%20eSeries%20FINARCH%22%3CBR%20%2F%3E)%3C%2FP%3E%3CP%3EI%20am%20not%20sure%2C%20why%20this%20alert%20is%20not%20being%20configured%2C%20I%20can%20see%20nothing%20wrong%2C%20can%20you%20please%20assist%20me%20with%20this.%3C%2FP%3E%3CP%3EThe%20request%20had%20some%20invalid%20properties%20%2C%20it%20keeps%20on%20saying%20that%2C%20but%20I%20have%20another%20query%20set%20up%20like%20that%20without%20no%20problems.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1457064%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EQuery%20Language%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1461629%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20making%20the%20query%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1461629%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F643248%22%20target%3D%22_blank%22%3E%40Arslan11%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20seems%20to%20me%20that%20the%20query%20fail%20to%20parse%20because%20you%20were%20using%20the%20wrong%20double%20quote%20character.%20You%20used%26nbsp%3B%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%E2%80%9D%20instead%20of%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%22%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20many%20different%20double%20quote%20chars%20that%20some%20keyboards%20change%20automatically.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOther%20than%20the%20quote%20chars%2C%20I%20have%20slightly%20rewritten%20your%20query%20to%20make%20it%20more%20readable%20and%20easy%20to%20maintain%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3EConfigurationChange%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%7C%20%3C%2FSPAN%3E%3CSPAN%3Ewhere%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EConfigChangeType%20%3D%3D%20%3C%2FSPAN%3E%3CSPAN%3E%22WindowsServices%22%3C%2FSPAN%3E%20%3CSPAN%3Eand%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3ESvcState%20%3D%3D%20%3C%2FSPAN%3E%3CSPAN%3E%22Stopped%22%3C%2FSPAN%3E%20%3CSPAN%3Eand%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EComputer%20has_any%20(%3C%2FSPAN%3E%3CSPAN%3E%22NH-P2PAPP01.networkhg.org.uk%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%3E%22NET-P2PLIVEAPP1.networkhg.org.uk%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%3E%22NET-P2PTESTAPP.networkhg.org.uk%22%3C%2FSPAN%3E%3CSPAN%3E)%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3Eand%3C%2FSPAN%3E%3CSPAN%3E%20SvcDisplayName%20in%20(%3C%2FSPAN%3E%3CSPAN%3E%22Integra%20eSeries%20FINPROD%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%3E%22Integra%20SPC%20FINPROD%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%3E%22Integra%20UAS%20FINPROD%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%3E%22Integra%20eSeries%20FINDEV%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%3E%22Integra%20SPC%20FINDEV%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%3E%22Integra%20UAS%20FINDEV%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%3E%22Integra%20eSeries%20Duet%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%3E%22Integra%20eSeries%20SPTDEV%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%3E%22Integra%20eSeries%20FINARCH%22%3C%2FSPAN%3E%3CSPAN%3E)%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1467258%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20making%20the%20query%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1467258%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F84435%22%20target%3D%22_blank%22%3E%40Meir%20Mendelovich%3C%2FA%3E%26nbsp%3B%20Thanks%2C%20another%20query%20question%20to%20ask%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3EPerf%3CBR%20%2F%3E%7C%20where%20ObjectName%20%3D%3D%20%22LogicalDisk%22%20and%20CounterName%20%3D%3D%20%22%25%20Free%20Space%22%20and%20Computer%20!%3D%20%22net-fs3.networkhg.org.uk%22%20and%20Computer%20!%3D%20%22NET-FS1.networkhg.org.uk%22%26nbsp%3B%20and%20Computer%20!%3D%20%22NET-SQL3.networkhg.org.uk%22%20and%20Computer%20!%3D%20%22NET-EDMLIVEDB1.networkhg.org.uk%22%20and%20Computer%20!%3D%20%22NET-EDM_KOFAX1.networkhg.org.uk%22%3CBR%20%2F%3E%7C%20summarize%20Free_Space%20%3D%20min(CounterValue)%20by%20Computer%2C%20InstanceName%3CBR%20%2F%3E%7C%20where%20strlen(InstanceName)%20%3D%3D%202%20and%20InstanceName%20contains%20%22%3A%22%20and%20Computer%20!%3D%20%22NET-REPAIR2.networkhg.org.uk%22%20and%20InstanceName%20!contains%20%22%3AE%22%26nbsp%3B%20and%20Computer%20!%3D%20%22NH-E2016-01.networkhg.org.uk%22%20and%20InstanceName%20!contains%20%22%3AE%22%20and%20Computer%20!%3D%20%22NH-E2016-02.networkhg.org.uk%22%20and%20InstanceName%20!contains%20%22%3AE%22%20and%20Computer%20!%3D%20%22net-boxi1.networkhg.org.uk%22%20and%20InstanceName%20!contains%20%22%3AD%22%3CBR%20%2F%3E%7C%20where%20Free_Space%20%26lt%3B%2010%3CBR%20%2F%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3EHow%20can%20I%20make%20this%20more%20readable%20%2C%20also%20make%20sure%20that%20one%20instance%20for%20that%20computer%20Is%20not%20being%20monitored%20instead%20of%20all%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1469884%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20making%20the%20query%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1469884%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F643248%22%20target%3D%22_blank%22%3E%40Arslan11%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFYI%2C%20this%20was%20answered%20on%20this%20group%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure%2Fassiatnce-with-kql-disk-space-high-alert%2Fm-p%2F1468547%23M5458%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure%2Fassiatnce-with-kql-disk-space-high-alert%2Fm-p%2F1468547%23M5458%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1488298%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20making%20the%20query%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1488298%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%3B%3C%2FP%3E%3CP%3EI%20need%20assistance%20with%20amending%20the%20query%20further%20and%20make%20it%20more%20automated.%20I%20would%20like%20to%20avoid%20another%20computer%20within%20this%20command%2C%20for%20instance%20G%20drive%20and%20I%20want%20this%20to%20be%20monitored%20for%20less%20then%206%20%25%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20be%20done%20within%20the%20same%20query%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1492023%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20making%20the%20query%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1492023%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%2F643248%22%20target%3D%22_blank%22%3E%40Arslan11%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20may%20get%20a%20faster%20response%20if%20you%20don't%20ask%20me%20directly%20(I'm%20often%20busy%20with%20my%20job%2C%20and%20look%20here%20infrequently%20at%20times)%20also%20others%20may%20have%20alternative%20ideas%20and%20methods%20to%20share.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%3CBR%20%2F%3EAnyway%2C%20you%20can%20probably%26nbsp%3Bachieve%20the%20outcome%20with%20this%2C%20I've%20added%20a%20capacity%20case%20statement%2C%20that%20allows%20for%20a%20specific%20computer%20and%20drive%20letter%20size%2C%20plus%20a%20default%20option%20for%20the%20unspecified%20computers%20%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-cpp%22%3E%3CCODE%3EPerf%0A%2F%2F%20set%20up%20filters%0A%7C%20where%20ObjectName%20%3D%3D%20%22LogicalDisk%22%20and%20CounterName%20%3D%3D%20%22%25%20Free%20Space%22%20%0A%7C%20where%20strlen(InstanceName)%20%3D%3D%202%20and%20InstanceName%20contains%20%22%3A%22%20%0A%2F%2F%20exclude%20ALL%20these%20named%20computers%20%0A%7C%20where%20Computer%20!in%20(%22net-fs3.networkhg.org.uk%22%2C%22NET-FS1.networkhg.org.uk%22%2C%22NET-SQL3.networkhg.org.uk%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22NET-EDMLIVEDB1.networkhg.org.uk%22%2C%22NET-EDM_KOFAX1.networkhg.org.uk%22)%0A%2F%2F%20Show%20all%0A%7C%20summarize%20Free_Space%20%3D%20min(CounterValue)%20by%20Computer%20%2C%20InstanceName%0A%2F%2F%20Exclude%20these%20drive%20%2F%20Computer%20combinations%0A%2F%2F%20Use%20a%20%221%22%20to%20denaote%20an%20exclude%20else%20%220%22%0A%7C%20extend%20ComputerList%20%3D%20case(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Computer%20%3D%3D%20%22NET-REPAIR2.networkhg.org.uk%22%20and%20InstanceName%20%3D%3D%20%22E%3A%22%2C1%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Computer%20%3D%3D%20%22NH-E2016-01.networkhg.org.uk%22%20and%20InstanceName%20%3D%3D%20%22E%3A%22%2C1%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Computer%20%3D%3D%20%22NH-E2016-02.networkhg.org.uk%22%20and%20InstanceName%20%3D%3D%20%22E%3A%22%2C1%2C%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Computer%20%3D%3D%20%22net-boxi1.networkhg.org.uk%22%20%20%20and%20InstanceName%20%3D%3D%20%22D%3A%22%2C1%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20Computer%20%3D%3D%20%22NET-SQL2%22%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20and%20InstanceName%20%3D%3D%20%22G%3A%22%2C1%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Computer%20%3D%3D%20%22RETAILVM01%22%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20and%20InstanceName%20%3D%3D%20%22D%3A%22%2C1%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2Felse%20zero%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%200)%0A%7C%20where%20Computer%20startswith%20%22R%22%20or%20Computer%20%20startswith%20%22SQL%22%20%0A%7C%20where%20ComputerList%20!%3D1%0A%2F%2F%20Set%20a%20required%20capacity%20for%20a%20specifc%20computer%20and%20drive%20letter%20or%20use%20a%20default%20value%20like%2010%25%20%0A%7C%20extend%20driveCapacityFilter%20%3D%20case(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Computer%20%3D%3D%20%22NET-SQL2%22%20%20%20and%20InstanceName%20%3D%3D%20%22G%3A%22%2C%206%2C%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20Computer%20%3D%3D%20%22RETAILVM01%22%20and%20InstanceName%20%3D%3D%20%22G%3A%22%2C%2080%2C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20else%20use%20default%20value%20i.e.10%25%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2010)%0A%7C%20where%20Free_Space%20%26lt%3B%20driveCapacityFilter%0A%7C%20project-away%20ComputerList%3C%2FCODE%3E%3C%2FPRE%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%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1492093%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20making%20the%20query%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1492093%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%3B%20Thanks%20in%20future%2C%20if%20I%20want%20to%20amend%20threshold%20for%20more%20servers%20%2C%20I%20will%20need%20to%20add%20that%20machine%20to%20the%20computer%20list%20and%20with%20similar%20statement%20%22%7C%20where%20Computer%20startswith%20%22R%22%20or%20Computer%20startswith%20%22SQL%22%20%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eand%20also%20in%20the%20drivecapacityfilter%20add%20the%20threshold%20value%20for%20the%20computer%20that%20you%20want%20to%20be%20alerted%2C%20if%20thats%20the%20threshold%20value%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1492111%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20making%20the%20query%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1492111%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%3B%20Plus%2C%20I%20tested%20the%20query%2C%20it%20is%20working%20according%20to%20my%20need%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1492146%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20making%20the%20query%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1492146%22%20slang%3D%22en-US%22%3E%3CP%3ESorry%20that%20was%20a%20testing%20line%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F643248%22%20target%3D%22_blank%22%3E%40Arslan11%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20remove%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20%20language-cpp%22%3E%3CCODE%3E%7C%20where%20Computer%20startswith%20%22R%22%20or%20Computer%20%20startswith%20%22SQL%22%20%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1492196%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20making%20the%20query%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1492196%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F643248%22%20target%3D%22_blank%22%3E%40Arslan11%3C%2FA%3E%26nbsp%3BHi%3C%2FP%3E%3CP%3EIt%20seems%20that%20the%20logic%20you%20used%20is%20right.%3C%2FP%3E%3CP%3EThe%20code%20failed%20because%20of%20the%20Syntax%20error.%3C%2FP%3E%3CP%3EUse%20the%20proper%20double%20quotation%20marks%20to%20solve%20your%20code%20errors.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1492206%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20making%20the%20query%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1492206%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%3BI%20already%20did%20that%20part%2C%20bcs%20I%20noticed%20that%20was%20a%20testing%20line%20and%20optional%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

ConfigurationChange
| where ConfigChangeType == "WindowsServices"
and SvcState == "Stopped"
and (
Computer has "NH-P2PAPP01.networkhg.org.uk"
or Computer has “NET-P2PLIVEAPP1.networkhg.org.uk"
or Computer has “NET-P2PTESTAPP.networkhg.org.uk”
)
and (
SvcDisplayName == "Integra eSeries FINPROD"
or SvcDisplayName == "Integra SPC FINPROD”
or SvcDisplayName == "Integra UAS FINPROD"
or SvcDisplayName == "Integra eSeries FINDEV"
or SvcDisplayName == "Integra SPC FINDEV"
or SvcDisplayName == "Integra UAS FINDEV"
or SvcDisplayName == "Integra eSeries Duet"
or SvcDisplayName == “Integra eSeries SPTDEV"
or SvcDisplayName == "Integra eSeries FINARCH"
)

I am not sure, why this alert is not being configured, I can see nothing wrong, can you please assist me with this.

The request had some invalid properties , it keeps on saying that, but I have another query set up like that without no problems.

 

10 Replies

@Arslan11 ,

 

It seems to me that the query fail to parse because you were using the wrong double quote character. You used ” instead of "

 

There are many different double quote chars that some keyboards change automatically.

 

Other than the quote chars, I have slightly rewritten your query to make it more readable and easy to maintain:

 

ConfigurationChange
| where
ConfigChangeType == "WindowsServices" and
SvcState == "Stopped" and
Computer has_any ("NH-P2PAPP01.networkhg.org.uk","NET-P2PLIVEAPP1.networkhg.org.uk","NET-P2PTESTAPP.networkhg.org.uk")
and SvcDisplayName in ("Integra eSeries FINPROD","Integra SPC FINPROD","Integra UAS FINPROD","Integra eSeries FINDEV","Integra SPC FINDEV","Integra UAS FINDEV","Integra eSeries Duet","Integra eSeries SPTDEV","Integra eSeries FINARCH")

@Meir Mendelovich  Thanks, another query question to ask

 

Perf
| where ObjectName == "LogicalDisk" and CounterName == "% Free Space" and Computer != "net-fs3.networkhg.org.uk" and Computer != "NET-FS1.networkhg.org.uk"  and Computer != "NET-SQL3.networkhg.org.uk" and Computer != "NET-EDMLIVEDB1.networkhg.org.uk" and Computer != "NET-EDM_KOFAX1.networkhg.org.uk"
| summarize Free_Space = min(CounterValue) by Computer, InstanceName
| where strlen(InstanceName) == 2 and InstanceName contains ":" and Computer != "NET-REPAIR2.networkhg.org.uk" and InstanceName !contains ":E"  and Computer != "NH-E2016-01.networkhg.org.uk" and InstanceName !contains ":E" and Computer != "NH-E2016-02.networkhg.org.uk" and InstanceName !contains ":E" and Computer != "net-boxi1.networkhg.org.uk" and InstanceName !contains ":D"
| where Free_Space < 10

 

 

How can I make this more readable , also make sure that one instance for that computer Is not being monitored instead of all 

@CliveWatson 

I need assistance with amending the query further and make it more automated. I would like to avoid another computer within this command, for instance G drive and I want this to be monitored for less then 6 %

 

Is it possible to be done within the same query

Hi @Arslan11 

 

You may get a faster response if you don't ask me directly (I'm often busy with my job, and look here infrequently at times) also others may have alternative ideas and methods to share.

  
Anyway, you can probably achieve the outcome with this, I've added a capacity case statement, that allows for a specific computer and drive letter size, plus a default option for the unspecified computers :

Perf
// set up filters
| where ObjectName == "LogicalDisk" and CounterName == "% Free Space" 
| where strlen(InstanceName) == 2 and InstanceName contains ":" 
// exclude ALL these named computers 
| where Computer !in ("net-fs3.networkhg.org.uk","NET-FS1.networkhg.org.uk","NET-SQL3.networkhg.org.uk",
                    "NET-EDMLIVEDB1.networkhg.org.uk","NET-EDM_KOFAX1.networkhg.org.uk")
// Show all
| summarize Free_Space = min(CounterValue) by Computer , InstanceName
// Exclude these drive / Computer combinations
// Use a "1" to denaote an exclude else "0"
| extend ComputerList = case(
                            Computer == "NET-REPAIR2.networkhg.org.uk" and InstanceName == "E:",1,
                            Computer == "NH-E2016-01.networkhg.org.uk" and InstanceName == "E:",1,
                            Computer == "NH-E2016-02.networkhg.org.uk" and InstanceName == "E:",1,   
                            Computer == "net-boxi1.networkhg.org.uk"   and InstanceName == "D:",1,
                         // Computer == "NET-SQL2"                     and InstanceName == "G:",1,
                            Computer == "RETAILVM01"                   and InstanceName == "D:",1,
                            //else zero
                            0)
| where Computer startswith "R" or Computer  startswith "SQL" 
| where ComputerList !=1
// Set a required capacity for a specifc computer and drive letter or use a default value like 10% 
| extend driveCapacityFilter = case(
                            Computer == "NET-SQL2"   and InstanceName == "G:", 6,   
                         // Computer == "RETAILVM01" and InstanceName == "G:", 80,                   
                            // else use default value i.e.10%
                            10)
| where Free_Space < driveCapacityFilter
| project-away ComputerList

 

 

 

  

@CliveWatson  Thanks in future, if I want to amend threshold for more servers , I will need to add that machine to the computer list and with similar statement "| where Computer startswith "R" or Computer startswith "SQL" "

 

and also in the drivecapacityfilter add the threshold value for the computer that you want to be alerted, if thats the threshold value 

@CliveWatson  Plus, I tested the query, it is working according to my need

Sorry that was a testing line @Arslan11 

 

Please remove

 

| where Computer startswith "R" or Computer  startswith "SQL" 

@Arslan11 Hi

It seems that the logic you used is right.

The code failed because of the Syntax error.

Use the proper double quotation marks to solve your code errors.

@CliveWatson I already did that part, bcs I noticed that was a testing line and optional