Hi @man03359 , let me understand: the Fname field is a single value or a multivalue field, before the stats command? If it's a multivalue, you have to separate them using "mvexpand" command (https:...
See more...
Hi @man03359 , let me understand: the Fname field is a single value or a multivalue field, before the stats command? If it's a multivalue, you have to separate them using "mvexpand" command (https://docs.splunk.com/Documentation/SCS/current/SearchReference/MvexpandCommandOverview#:~:text=The%20mvexpand%20command%20creates%20individual,productId%20which%20has%20multiple%20values.). If it's a single value field there isn't no reasong to have the described behaviour. Anyway, (I cannot test but it should work), if it's a single value field, you could try to use separated evals: | eval
status=if(((src="DB_Rebuild_Indexes_UpdateStats_MDM" OR src="DB_Stop_IndexRebuild_Jobs") AND (JobExecTime>39600 OR message="failed")),"Down",""),
(src="RetailAutonomyDataSync" AND (JobExecTime>21600 OR message="failed")),"Down",""),
(src="RetailAutonomyPromotionsDataSync" AND (JobExecTime>4000 OR message="failed")),"Down",""),
(src="retailautonomyfileage" AND (((Fname="mdmdat" OR Fname="omsdat") AND Age>240) OR (Fname="promodat" AND Age>120)))
OR (src="retaillineitemdup" AND Count>0)
OR (src="esbmessagecount" AND MsgCount>5),"Down","")
| stats count count(eval(status="Down")) AS Down latest(_time) as _time BY Device Store src host Chain StoreNum Domain Ciao. Giuseppe