mew1033
09/15/2017, 6:48 PMSELECT * FROM process_open_sockets AS pos LEFT JOIN (SELECT * FROM listening_ports) AS lp ON lp.port=pos.local_port AND lp.protocol=pos.protocol I've got the subquery in there because I don't want to re-generate the listening_ports table for every row in process_open_sockets. It used to run fast in an older version of osquery (not sure how old, it's been a while), but we just caught it taking 10+ minutes to run. The systems it's slow on have thousands of established connections.
Any hints?