How to obtain socket information for particular applications/processes using metricbeat?

Hi, I am using metric-beat to collect information about processes running on remote hosts which use sockets, and I am able to collect the metrics/information about the processes and socket data is one of them but I am not able to get the socket data for a particular process, the obtained data is the summary of all the socket connections in the remote host but it does not provide any specific data for particular process i.e num of socket connections for a given process, If there is any way we can get this data please provide your suggestions