I am currently monitoring the logs of produced by our application server. But before I can do that, I would have to know which server's logs I would go to. To do this I do a tail of both logs and watch which of the logs "run" when I navigate to that page. If one of the logs run then I know which server I would go to for monitoring. This becomes complicated however, when both logs run at the same when I key in the the url of the application. When that happens what I do is login and then after logging in, I stop both logs and read my login name in both of them. Only then will I know which server I am using.
Is there an easier way to do this? Maybe I can use a packet sniffer like wireshark or something. Our application is both accessible on the public web as well as the intranet.