| inputlookup wu_devices_dynamic.csv
| search device_path = *centre* OR device_path = *chassezac* AND device_type_name = *cisco*
| rex field=_raw "%[A-Z0-9]+-(?<severity_level>[0-7])-[A-Z0-9_]+:"
| table device_path, device_type_name, device_ip_address, "%SEC-6-IPACCESSLOGNP"Switch infos critiques Le Puy En VelaychassezacLoireMontpezatClermont OR device_path="**"switchrouterdevice_type_name="**" OR HirshmannCiscoALLdevice_type_name="**" OR -24h@hnow*nom="**"*
index="rth" OR index="rth_ge" OR index="rth_med" OR index="rms" OR index="rms_ge" OR index="rms_med"
| lookup wu_devices_dynamic.csv device_ip_address as host
| search $multiselect_token$
| search $device_type$
| search $multiselect_marque$
| rex field=_raw "%[A-Z0-9]+-(?<severity_level>[0-7])-[A-Z0-9_]+:"
| search severity_level = "*1*" OR severity_level = "*2*" OR severity_level = "*3*"
| stats sum(linecount) as nblog, values(device_type_name) as type, values(device_name) as nom,
values(severity_level) as lvlCritique,
values(device_path) as lieu by host
| table lieu, nom, type, host, nblog, lvlCritique$filter_period.earliest$$filter_period.latest$
search?q=index ="rms" OR index="rth" | lookup wu_devices_dynamic.csv device_ip_address as host | search severity_id = $row.lvlCritique$ AND $row.host$
nombre de log par lieunombre de logindex ="rms" OR index="rth" source = udp:514
sourcetype = cisco:ios
| addinfo
| lookup wu_devices_dynamic.csv device_ip_address as host
| search $multiselect_token$
| search $device_type$
| search $multiselect_marque$
| rex field=_raw "%[A-Z0-9]+-(?<severity_level>[0-7])-[A-Z0-9_]+:"
| search severity_level = "*1*" OR severity_level = "*2*" OR severity_level = "*3*" OR severity_level = "*4*" OR severity_level = "*5*" OR severity_level = "*6*"
| stats sum(linecount) as nblog, values(device_type_name) as type, values(device_name) as nom by host
| table nom, type, host, nblog,$filter_period.earliest$$filter_period.latest$30sdelay