Hi,
we have a server that's listening on a port and servers can connect to that port (i.e. standard stuff...).
I'd like to graph over time the number of active connections (i.e. netstat -anp | grep | grep -c ESTABLISHED). I thought the socket metricset would work but it only has events for new connections and none for when a connection is closed so there's no way to get the number of active connections. Or am I missing something? Anything that can be done with metricbeat or do I have to resort to filebeat ingesting a log file where I run the netstat command above at a regular interval or turn on logging via iptables?
Regards,
Mike