Skip to main content
Visitor II
August 6, 2026
Solved

FAZ 7.6.7 - Locating Wireless Clients by Last Connected Access Point

  • August 6, 2026
  • 3 replies
  • 98 views

Hello, apologies if this has been posted before, but I could not find anything in the forums.

We are a K-12 that recently switched to a FortiStack (Gate (100F), switches (148FPOE), WAPs (231G and K series). We are coming from Cisco Meraki and missing a big feature (or cannot find said feature) that I’m hoping to duplicate with FAZ. Being K-12, we have students lose devices on campus. We were able to log into the Meraki portal., look up a device hostname/mac and see what access point that endpoint last connected to. This helped students track their lost device.

I cannot find anything simliar in the FortiWorld. I've piecemealed a dataset in FAZ from the Gate Event logs that gives me the client mac, last connected AP, and the last_seen time. I’ve parsed that along with a query based off Gate > Application Control > aware-New-Endpoint-Devices dataset. It looks like it would be what I need but I think the last_seen time is when it was FIRST connected to a particular access point. I really need a last connected time or something similar. Then there’s the issue of pulling info from two different dataset log types: Events and Application Control. I’m, not sure you can even combine logs from different datasets.
 

We do not use FortiEMS or other Fortinet endpoint management apps. Can anyone recommend query or dataset to parse this info? Or even other functionalities I may not be aware of? TIA

Best answer by farhanahmed

“Unfortunately” the dashboards in FortiView are hardcoded and there is no customization option where we could use our own datasets. A feature request in inevitable :) 

You will have to use the dataset in a chart and then use the chart in report. Then schedule the report as required and receive it via email OR check it withing FAZ Reports → Generate Reports.

3 replies

farhanahmed
Staff
Staff
August 6, 2026

  

Hi,

The datasets can combine different log types. You refer to them explicitly, for example:

$log-event
$log-traffic
$log-app-ctrl


And for your case try this dataset on Event Logs and see if this help:
 

select
client_mac,
ap,
ap_serial,
ssid,
channel,
radioband,
last_event,
from_dtime(last_seen_raw) as last_seen
from
(
select
lower(stamac) as client_mac,
ap,
sn as ap_serial,
ssid,
channel,
radioband,
action as last_event,
dtime as last_seen_raw,
row_number() over
(
partition by lower(stamac)
order by dtime desc
) as rn
from $log
where
$filter
and subtype = 'wireless'
and stamac is not null
and ap is not null
and action in (
'client-authentication',
'client-ip-detected',
'client-idle',
'client-leave-wtp'
)
) t
where rn = 1
order by last_seen_raw desc

 

www.farhan.ch
lcatnAuthor
Visitor II
August 7, 2026

Thank you for that. Combining the logs makes things a whole lot easier. I’ve been able to pull the information I need and parse it into a dataset table correctly. Is there a way to turn this into a dashboard for my techs to easily find this info? For instance, they log into FAZ and are able to drill into a said dashboard by hostname to show the last time that device connected to a certain wireless access point?

I can’t seem to find the right combination under FortiView > Custom Views. TIA

farhanahmed
Staff
Staff
August 7, 2026

“Unfortunately” the dashboards in FortiView are hardcoded and there is no customization option where we could use our own datasets. A feature request in inevitable :) 

You will have to use the dataset in a chart and then use the chart in report. Then schedule the report as required and receive it via email OR check it withing FAZ Reports → Generate Reports.

www.farhan.ch
Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!