Team,
Â
i am collecting frtianazlyer data from fortinet firewall via custom command , however i tried below query to get the data .
Â
pattern_faz =
 ```
config log fortianalyzer setting
 set status enable
  set server {faz:string}
 Â
Â
```;
foreach device in network.devices
/* where device.platform.vendor == Vendor.FORTINET */
 let outputs = device.outputs
foreach command in outputs.commands
  where command.commandType == CommandType.CUSTOM
  where command.commandText == "show  log fortianalyzer setting"
 let configurations = parseConfigBlocks(OS.FORTINET, command.response)
Â
foreach match in blockMatches(configurations, pattern_faz)
/* where !matches(device.name, "*_*") */
Â
select {
 deviceName: device.name,
 SiteName: device.locationName,
 "Primary DNS": match.data.faz,
}
Â
Â
Â
but unfortunatelly i m getting zero result. can anyone help on this