Hey James
I finally got around to testing your DB query. The good news: it working! I am receiving logs ocntaining the NAS Port ID. The bad news: there are countless logs per second for the same client, similar to the log shown at the bottom. This will produce way too much overhead and I have deactivated the export filter as a result.
Is there any way to optimize this?
Kind Regards
Dec 20 15:06:44 10.7.10.223 2016-12-20 15:06:44,170 10.1.8.230 CPPM_RADIUS_NAS-Port-ID 61201 1 0 session_id=R000e2ee5-01-585921db,req_source=RADIUS,user_name=d47856004231,service_name=svc_swl_wired_client_lan,alerts_present=0,nas_ip=10.1.9.152,nas_port=50140,conn_status=Unknown,login_status=ACCEPT,error_code=0,mac_address=d47856004231,timestamp=2016-12-20 13:19:39+01,write_timestamp=2016-12-20 13:19:40.228309+01,attr_value=GigabitEthernet1/0/40,attr_name=Radius:IETF:NAS-Port-Id