SELECT * FROM events WHERE devicetype=12 AND ((LOWER("Parent Process Path") LIKE '%\caddy.exe' OR LOWER("Parent Process Path") LIKE '%\httpd.exe' OR LOWER("Parent Process Path") LIKE '%\nginx.exe' OR LOWER("Parent Process Path") LIKE '%\php-cgi.exe' OR LOWER("Parent Process Path") LIKE '%\php.exe' OR LOWER("Parent Process Path") LIKE '%\tomcat.exe' OR LOWER("Parent Process Path") LIKE '%\umworkerprocess.exe' OR LOWER("Parent Process Path") LIKE '%\w3wp.exe' OR LOWER("Parent Process Path") LIKE '%\ws_tomcatservice.exe') OR ((LOWER("Parent Process Path") LIKE '%\java.exe' OR LOWER("Parent Process Path") LIKE '%\javaw.exe') AND (LOWER("Parent Process Path") LIKE '%-tomcat-%' OR LOWER("Parent Process Path") LIKE '%\tomcat%')) OR ((LOWER("Parent Process Path") LIKE '%\java.exe' OR LOWER("Parent Process Path") LIKE '%\javaw.exe') AND (LOWER("Parent Command") LIKE '%catalina_home%' OR LOWER("Parent Command") LIKE '%catalina.home%' OR LOWER("Parent Command") LIKE '%catalina.jar%'))) AND ((LOWER("Process Path") LIKE '%\arp.exe' OR LOWER("Process Path") LIKE '%\at.exe' OR LOWER("Process Path") LIKE '%\bash.exe' OR LOWER("Process Path") LIKE '%\bitsadmin.exe' OR LOWER("Process Path") LIKE '%\certutil.exe' OR LOWER("Process Path") LIKE '%\cmd.exe' OR LOWER("Process Path") LIKE '%\cscript.exe' OR LOWER("Process Path") LIKE '%\dsget.exe' OR LOWER("Process Path") LIKE '%\hostname.exe' OR LOWER("Process Path") LIKE '%\nbtstat.exe' OR LOWER("Process Path") LIKE '%\net.exe' OR LOWER("Process Path") LIKE '%\net1.exe' OR LOWER("Process Path") LIKE '%\netdom.exe' OR LOWER("Process Path") LIKE '%\netsh.exe' OR LOWER("Process Path") LIKE '%\nltest.exe' OR LOWER("Process Path") LIKE '%\ntdsutil.exe' OR LOWER("Process Path") LIKE '%\powershell_ise.exe' OR LOWER("Process Path") LIKE '%\powershell.exe' OR LOWER("Process Path") LIKE '%\pwsh.exe' OR LOWER("Process Path") LIKE '%\qprocess.exe' OR LOWER("Process Path") LIKE '%\query.exe' OR LOWER("Process Path") LIKE '%\qwinsta.exe' OR LOWER("Process Path") LIKE '%\reg.exe' OR LOWER("Process Path") LIKE '%\rundll32.exe' OR LOWER("Process Path") LIKE '%\sc.exe' OR LOWER("Process Path") LIKE '%\sh.exe' OR LOWER("Process Path") LIKE '%\wmic.exe' OR LOWER("Process Path") LIKE '%\wscript.exe' OR LOWER("Process Path") LIKE '%\wusa.exe') OR (LOWER("Process Name") LIKE '%\arp.exe' OR LOWER("Process Name") LIKE '%\at.exe' OR LOWER("Process Name") LIKE '%\bash.exe' OR LOWER("Process Name") LIKE '%\bitsadmin.exe' OR LOWER("Process Name") LIKE '%\certutil.exe' OR LOWER("Process Name") LIKE '%\cmd.exe' OR LOWER("Process Name") LIKE '%\cscript.exe' OR LOWER("Process Name") LIKE '%\dsget.exe' OR LOWER("Process Name") LIKE '%\hostname.exe' OR LOWER("Process Name") LIKE '%\nbtstat.exe' OR LOWER("Process Name") LIKE '%\net.exe' OR LOWER("Process Name") LIKE '%\net1.exe' OR LOWER("Process Name") LIKE '%\netdom.exe' OR LOWER("Process Name") LIKE '%\netsh.exe' OR LOWER("Process Name") LIKE '%\nltest.exe' OR LOWER("Process Name") LIKE '%\ntdsutil.exe' OR LOWER("Process Name") LIKE '%\powershell_ise.exe' OR LOWER("Process Name") LIKE '%\powershell.exe' OR LOWER("Process Name") LIKE '%\pwsh.exe' OR LOWER("Process Name") LIKE '%\qprocess.exe' OR LOWER("Process Name") LIKE '%\query.exe' OR LOWER("Process Name") LIKE '%\qwinsta.exe' OR LOWER("Process Name") LIKE '%\reg.exe' OR LOWER("Process Name") LIKE '%\rundll32.exe' OR LOWER("Process Name") LIKE '%\sc.exe' OR LOWER("Process Name") LIKE '%\sh.exe' OR LOWER("Process Name") LIKE '%\wmic.exe' OR LOWER("Process Name") LIKE '%\wscript.exe' OR LOWER("Process Name") LIKE '%\wusa.exe')) AND (NOT(((LOWER("Parent Process Path") LIKE '%\java.exe' AND LOWER(Command) LIKE '%windows\system32\cmd.exe /c c:\manageengine\admanager "plus\es\bin\elasticsearch.bat -enode.name=rmp-node1 -pelasticsearch-pid.txt') OR (LOWER("Parent Process Path") LIKE '%\java.exe' AND (LOWER(Command) LIKE '%sc query%' AND LOWER(Command) LIKE '%admanager plus%')))))