Re: Tomcat 8 RemoteIpValve Issues

2016-07-28 Thread Abhijit Das
This is how it works for me in Tomcat 8.x (I have hashed out some internal values) (some of my pattern may be redundant) 1.2.3.4 will be your LB IP, the IP that is used to talk to the server. typically the MIP or the SNIP. And, this is my access log :

Re: Load Balancing Oracle Apex Application on Apache tomcat.

2016-07-06 Thread Abhijit Das
chandra.c...@gmail.com> wrote: Yes.we have an option to offload load balancing to a different server.Could you please explain more on haproxy if you can and please share me doc related to this and load balancing? On Wed, Jul 6, 2016 at 12:10 PM, Abhijit Das <abhij...@icloud.com> wrote: > D

Re: Load Balancing Oracle Apex Application on Apache tomcat.

2016-07-06 Thread Abhijit Das
Do you have the option to offload load balancing to a different server? If so, look at haproxy and/or nginx. haproxy would be more customizable. If there are bandwidth constraints, implement a DSR VIP (IP triangulation). On Jul 6, 2016, at 9:08 AM, chandra sekhar

JSON Logging of Tomcat Access Log.

2016-05-25 Thread Abhijit Das
I am wanting to change the access logging format to JSON (for easier parsing with logstash) I currently have the following config in my server.xml … How would i change this to JSON formatted?

Re: Unable to retrieve X-Forwarded-For in Tomcat 8.0 access log

2016-05-11 Thread Abhijit Das
RESOLVED … It should be injected in the REQUEST Header, I will now see if case matters. On May 11, 2016, at 12:07 PM, Abhijit Das <abhij...@icloud.com> wrote: Thanks for pointing out, but that didn’t work either .. (I also changed the policy on the LB to inject in lower case x-for

Re: Unable to retrieve X-Forwarded-For in Tomcat 8.0 access log

2016-05-11 Thread Abhijit Das
Thanks for pointing out, but that didn’t work either .. (I also changed the policy on the LB to inject in lower case x-forwarded-for thinking if it was case sensitive?) .. Do i need a filter as well in web.xml ? The below Header is a RESPONSE header, where i am injecting x-forwarded-for

Unable to retrieve X-Forwarded-For in Tomcat 8.0 access log

2016-05-11 Thread Abhijit Das
down vote <>favorite I am injecting a header with a rewrite policy on my LB to pass X-Forwarded-For header. Have verified that this appears on all the pages in the RESPONSE Header.