Login IP remote in the logs Log4J

Hello friends, I hope can help me with the following thing: I have an
application that uses the “Log4J”, which I want to know is that
line I must add so that also it registers the IP address of the clients
who accede to this aplicaion. At the moment this recording date and URL
but I need remote IP address. thanks

Miguelon cosapi data wrote:

Hello friends, I hope can help me with the following thing: I have an
application that uses the “Log4J”, which I want to know is that
line I must add so that also it registers the IP address of the clients
who accede to this aplicaion. At the moment this recording date and URL
but I need remote IP address.

The answer depends on information not provided. What kind of application
is
it? What does it do?

Hello Paul
The application is “Critical Path” and is a Mail server in the Linux
with Webmail, calendar, etc. this is based on a called file
“log-conf.xml” that this in the format “Log4j” the information
that registers to me is the following:

2006-11-16 11:36:53,851 - sid[1163694663376]
thread[http-443-Processor86] dir[0/0, 0, 0, 0] time[62]
url[/cp/ps/Mail/ViewMsgController?d=congreso.gob.pe&u=fondoeditorial&an=DefaultMailAccount&t=d104d&l=es&fp=INBOX&uid=98]
2006-11-16 11:37:11,283 - sid[1163694663376]
thread[http-443-Processor13] dir[0/0, 0, 0, 0] time[157]
url[/cp/ps/Mail/ViewMsgController?d=congreso.gob.pe&bid=null_0&u=fondoeditorial&t=d104d&l=es&siz=38278]
2006-11-16 11:37:27,892 - sid[1163695047890]
thread[http-443-Processor85] dir[0/0, 0, 0, 0] time[4]
url[/cp/ps/Main/login/Login?d=congreso.gob.pe&l=es]
2006-11-16 11:37:34,478 - sid[1163695047890]
thread[http-443-Processor13] dir[1/5, 0, 1, 0] time[4]
url[/cp/ps/Main/layout/MetaFrameset?d=congreso.gob.pe&u=emendez&t=d10d5&l=es]

what I need is that additional to that information IP address of the
client is added who connects itself to the server.

the configuration of “log-conf.xml” is the following:

<?xml version="1.0" encoding="UTF-8" ?>

<log4j:configuration xmlns:log4j=‘http://jakarta.apache.org/log4j/’>









<param name="MaxFileSize" value="100MB"/>
<param name="MaxBackupIndex" value="20"/>
<layout class="org.apache.log4j.PatternLayout">
  <param name="ConversionPattern" value="%d - %m%n"/>
</layout>






















        <appender name="cal-log"

class=“net.cp.ps.sdk.util.log.RollingFileAppender”>
































        <category name="net.cp.ps.calendar" additivity="false">
            <priority class="net.cp.ps.sdk.util.log.LogLevel"

value=“info”/>

        <category name="net.jlibical" additivity="false">
            <priority class="net.cp.ps.sdk.util.log.LogLevel"

value=“info”/>





        <category name="net.cp.client.pab" additivity="false">
            <priority class="net.cp.ps.sdk.util.log.LogLevel"

value=“info”/>

        <category name="net.cp.client.pspab" additivity="false">
            <priority class="net.cp.ps.sdk.util.log.LogLevel"

value=“info”/>

        <category name="net.cp.ps.directory" additivity="false">
            <priority class="net.cp.ps.sdk.util.log.LogLevel"

value=“info”/>






</log4j:configuration>

The file for login acces is: WEB-INF/log-files/access.log

thanks.

Paul L. ha escrito:

Miguelon cosapi data wrote:

Hello Paul
The application is “Critical Path” and is a Mail server in the Linux
with Webmail, calendar, etc. this is based on a called file
“log-conf.xml” that this in the format “Log4j” the information
that registers to me is the following:

And you are aware that this is a Ruby newsgroup, yes? And that different
newsgroups have different topics?