How to monitor a program that occasionally accesses the Internet

I want to monitor the network activity of a program that occasionally accesses the Internet.
I want to determine if certain program add-ons communicate with the Internet.
Every method I’ve found only tells me what programs are currently actively using the network, which won’t work in this case. I don’t have the time to stare at the screen for hours on end waiting for the program to pop-up. Plus, the access may be so fast that I will miss it.
I would like to look at a historical log of network activity for a specific program.
Does Glasswire have this capability? If so, how can I configure it?
Thanks in advance.