Win a copy of Getting started with Java programming language this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

locate production server name  RSS feed

 
pari Nagda
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have 8 app servers sitting on prod environment . Many times we need to monitor app logs but its always difficult to find or locate the exact server name where user request has been forwarded . is there any way or concept available by which developer can observe which server the request is  moving to so that he can login and monitor the logs on that specific server only instead of checking the logs on every server. 

Technical Infrastructure -  Java 6, JBOSS .  
 
Tim Cooke
Marshal
Posts: 3556
170
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I feel your pain. I used to have this problem on a product I worked on and that was with just 2 prod servers, although I did have to jump through 2 intermediate servers to reach the prod server so was a real pain.

Since then we've started to use Splunk which consumes all the application logs into a single searchable location. Now instead of having to log into prod01, prod02, prod03, etc to find log entries I can simply query Splunk with "host=prod0*". It's much more convenient.

As a secondary bonus, we reconfigured the application to publish its log messages directly to Splunk over TCP which means that the application servers do not have log files containing sensitive information on them. This is a win for data security.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!