Change access log format

Hi everybody
I want to change the access log format of Sun Java Application Server 8.1 2005 Q2...
I want to include session id information in it ...so i changed the log format using the admin console gui Configuration->httpservice->Access logs...
The domain.xml file reflected the change as....
<access-log format="%client.name% %auth-user-name% %datetime% %request% %status% %response.length%" rotation-enabled="true" rotation-interval-in-minutes="1440" rotation-policy="time" rotation-suffix="%YYYY;%MM;%DD;-%hh;h%mm;m%ss;s" />
to
<access-log format="%client.name% %auth-user-name% %datetime% %request% %status% %response.length% %cookie.value%" rotation-enabled="true" rotation-interval-in-minutes="1440" rotation-policy="time" rotation-suffix="%YYYY;%MM;%DD;-%hh;h%mm;m%ss;s" />
But even after i restarted my server,the logs are getting stored in the default format itself....
Am i missing some step....can somebody tell me the detailed procedure....

It is a bug(see 6352797) fixed in Patch 07. You should get your appserver patched with one of the following, depending on platform/installation:
Packaged based:119166-14, 119167-14, 119168-14
File based:
EE: 119169-06, 119170-06, 119171-06
PE: 119173-06, 119174-06, 119175-06, 119176-06

Similar Messages

  • How to set access.log format to "combined"

    Hello,
    I'm trying to get AWStats working on Solaris and have that working fine, but to get more information, I need to set the log format to "combined".
    Question is: is there a way to modify what is output in the access.log?

    SHOULD I RECOMPILE and specify the access method?
    Should i change line 1131 in db4.cpp to DBTYPE type = DB_QUEUE; ???

  • Problem changing Access Log Configuration

    Hi,
    I want to change the default configuration for creating access log files in the "http-web-site.xml".
    After I inserted any additional attributes to the <access-log>-Tag (for example 'split' or 'format') and restarted the server, the server doesn't generate log files any more.
    Does anyone know about this bug ?
    I'm running oc4j 9.0.2 (stand-alone without Apache).
    Any help would be appreciated.
    Oliver

    Great! Thanks! It worked. I modified server.xml with the following:
    <access-log>
       <file>../logs/access</file>
       <format>%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] "%Req->reqpb.clf-request%" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length% "%Req->headers.referer%" "%Req->headers.user-agent%"</format>
    </access-log>Then I stopped and restarted the Web server (/bin/stopserv, /bin/startserv). The access log now shows the additional data.
    Thanks for the reply!

  • Access log formatting

    Hi all,
    I currently have a log format as follows:
    format.access="%Ses->client.ip% | %SYSDATE% | \"%Req->reqpb.clf-request%\" | %Req->srv
    hdrs.clf-status% | %Req->srvhdrs.content-length% | %Req->headers.referer% | \"%Req->headers.user-agent%\" | %Req->reqpb.method
    % | %Req->reqpb.uri% | %Req->reqpb.protocol%^"
    I would like to change the [%SYSDATE%] parameter to our own format as we do not need to GMT offset.
    i.e. dd/mm/yyyy hh:mi:ss which equates to \"%D %T\" but when I put this in the magnus, then tail the logs I get "-T"
    Please help it's driving me mad!!
    LL

    Unfortunately, %D and %T aren't flex-log format components. The server is replacing the unknown "%D %" component with a dash. The only date flex-log format components are %SYSDATE% and %LOCALETIME%.

  • Access Log format for Sun One Web Server 6.0 SP6

    Is it possible to add the Process Id to the access log? If so, what is the proper format for the access log entry in magnus.conf. We would like to be able to see which process each request used, just like in the error log.
    Thanks

    User agent and referer information can be logged. Refer to following docs(see under Table 7-1):
    http://docs.sun.com/source/816-5686-10/07_magnu.htm#33046
    Thanks,
    Manish

  • How can i change asa5520 logging format?

    Hi!
    I have a question about Firewall logging format.
    I use ASA5520, Cisco Adaptive Security Appliance Software Version 8.2(5)  Device Manager Version 6.4(7)
          Now display logging format is "
    %ASA-session-6-302013:
    %ASA-session-6-106015:
    I want change to this logging format "
    %ASA-6-302013:
    %ASA-6-106015:
    only confirured about log command.
              logging enable
              logging emblem
              logging trap debugging
              logging asdm notifications          logging host outside 10.x.x.x 17/30516
    How can i change format?
    thanks !!

    Georgi, the company profile has a Default Locale. Also each user can have their Locale. The US format of MM/DD/YYYY can not be changed to October 6, 2010 as an example.
    I would recommend that you submit a enhancement request to CRM On Demand customer care.

  • Access Log format ?

    Looking at the following log sample (Apache format Access Logs) and the bolded section contained between the <>:
    1.1.1.1 - - "16/Feb/2010:11:58:55 +1100" GET http://www.testsite.com 304 0  TCP_CLIENT_REFRESH_MISS:DIRECT 7ms  DEFAULT_CASE-DefaultGroup-DefaultGroup-NONE-DefaultRouting  <Shop,5.0,0,,,,,,,,,,,,> - 2.2.2.2 80 "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT  6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR  3.0.30729; Media Center PC 6.0; InfoPath.2; eMusic DLM/4)" "Shopping"
    This particular log sample has 15 fields between the <>. Every other log sample I've seen has 17 fields between the <>. So my question is, why would this happen? Is there some configuration on the Ironport itself that would modify this part of the logs? I know what some of those particular fields contain but is there a breakdown for what all those fields contain?

    This portion of the accesslog contains both the web category as well as the response from the various DVS engines.  The actual fields will vary depending on the features/code that is installed.  For example, in the upcoming 7.0 code there are several new fields to as a result of AVC (Application Visibility Control).  Similarly, when Cisco Web Usage Controls are enabled there are additional fields which note dynamically learned content.
    The best reference for each specific field, including between the <>'s, is the user guide which can be downloaded from the Cisco/IronPort Customer Support Portal.

  • Reg: weblogic 5.1 access log format

    I'm using weblogic 5.1 with sp 13
    If i dispatch the request from the servlet to jsp it's not logged in the access.log
    and also i need to have the response time also for the particular jsp.
    Is there any way to do the above things.
    Regards
    Hari

    Hi.
    Looks like you're right. Please open a case with support to get these and refer to
    the following bug numbers: CR052727 and CR045962. These are pending issues to update
    the PDF files and restore the links to the PDF files.
    Thanks,
    Michael
    sudarson wrote:
    Hi All,
    Previously weblogic 5.1 docs were available in weblogic site. But now when I tried
    to find those pdfs in the site , I couldn't find out. Instead, now it's available
    in only zipped html form.Can any body pls tell me where can I get those pdfs ?
    Thanks and Regards,
    Sudarson--
    Developer Relations Engineer
    BEA Support

  • Change log format of petstore

    Hi everybody
    The log entry format of petstore 1.4 is of the form:
    150.0.0.1 - - [02/Feb/2006:00:32:38 +0530] "GET /petstore/item.screen?item_id=EST-16 HTTP/1.1" 200 9739
    I want to change this log format so that it includes session id information too...how do i do that.....

    Looks like the bug CSCin07036.

  • Apache Log Format Question

    Hi,
    I need to set my Apache logs to combined for AWStats to work. In 10.6 server admin there seems to be no place to change the log format. Can any one tell me how I do this? I have multiple sites hosted so will I need to do it for each site?
    Thanks
    Paul

    You'll need to change it directly in the config file for each site. They're in /etc/apache2/sites, with names starting with a site ID number and ending in .conf. You need to change the CustomLog directive to something like
    CustomLog "/var/apache2/access_log" combined
    ...and then restart Apache ("sudo apachectl graceful" will do the trick).

  • Access Logging in OC4J

    I can get the various websites like the default-web-site to output access log information but they never have userid info in them, only "- -" even users are logged in. No userids appear in OHS access logs either. Apps frontended by SiteMinder have both REMOTE_USER and SMSESSION populated but no userid makes it into the access logs. Any ideas?

    I'd never done it, but it does look like you can specify a format for the access-log entries:
    http://download.oracle.com/docs/cd/B25221_04/web.1013/b14432/website.htm#BABFGJHD
    The format string looks like it supports a field called $user, which may give you what you want.
    As a test, using OC4J 10.1.3.3, I just set mine up as follows in default-web-site.xml:
    <web-app application="ascontrol" name="ascontrol" load-on-startup="true" root="/em" ohs-routing="false" access-log="true"/>
    <access-log path="../log/default-web-access.log" format="$ip - $user '$request' $status $size"/>
    I then started OC4J, accessed the ascontrol application and logged in as the oc4jadmin user.
    In the access log, the following entries were produced that clearly lists the user I logged in as:
    127.0.0.1 - - - [127.0.0.1 - - 'GET /em/console/ias/oc4j/home HTTP/1.1' 200 9654
    127.0.0.1 - 'oc4jadmin' 'POST /em/j_security_check HTTP/1.1' 302 207
    127.0.0.1 - 'oc4jadmin' 'GET /em/console/postLogon HTTP/1.1' 200 4731
    127.0.0.1 - 'oc4jadmin' 'POST /em/console/postLogon HTTP/1.1' 302 180
    127.0.0.1 - 'oc4jadmin' 'GET /em/console/ HTTP/1.1' 302 156
    127.0.0.1 - 'oc4jadmin' 'GET /em/ HTTP/1.1' 200 185
    127.0.0.1 - 'oc4jadmin' 'GET /em/console/ias/oc4j/home HTTP/1.1' 200 21610
    127.0.0.1 - 'oc4jadmin' 'GET /em/cabo/images/cache/cghee.gif HTTP/1.1' 200 76
    127.0.0.1 - 'oc4jadmin' 'GET /em/cabo/images/cache/cghes.gif HTTP/1.1' 200 109
    127.0.0.1 - 'oc4jadmin' 'GET /em/cabo/images/cache/cstlu.gif HTTP/1.1' 200 43
    127.0.0.1 - 'oc4jadmin' 'GET /em/cabo/images/cache/en/bRestOXOP.gif HTTP/1.1' 200 460
    127.0.0.1 - 'oc4jadmin' 'GET /em/cabo/images/cache/en/bStopDwKu.gif HTTP/1.1' 200 426
    127.0.0.1 - 'oc4jadmin' 'GET /em/cabo/images/cache/cstru.gif HTTP/1.1' 200 44
    127.0.0.1 - 'oc4jadmin' 'GET /em/cabo/images/cache/cstll.gif HTTP/1.1' 200 44
    127.0.0.1 - 'oc4jadmin' 'GET /em/cabo/images/cache/cghec.gif HTTP/1.1' 200 93
    127.0.0.1 - 'oc4jadmin' 'GET /em/cabo/images/cache/cstrl.gif HTTP/1.1' 200 43
    127.0.0.1 - 'oc4jadmin' 'GET /em/images/trafficGreen.gif HTTP/1.1' 200 1213
    127.0.0.1 - 'oc4jadmin' 'GET /em/dynamicImage/emSDK/chart/EmChartBean?beanId=D659A5D6B83129E7F46647BB382F045B.gif HTTP/1.1' 200 3359

  • Weblog Log Format

    hi,
    can anybody tell me how i can change the log format in weblog5.1
    to NCSA format (extended)
    Regards,
    Bibin

    Looks like the bug CSCin07036.

  • Using extended common log format

    Hello
    I wanted to set up access log file format to capture referer and user-agent info.
    After reading the docs I added the 2 variables via admin console.
    So HTTP Service ->Access Log -> Format contains following:
    %client.name% %auth-user-name% %datetime% %request% %status% %response.length% %header.referer% %header.user-agent%After saving and restarting the domain, I am still not getting the referrer and user agent.
    There is not even a "-" indicating that the info was unavailable....
    Any thoughts?
    Z....

    Can someone please help me with this issue.
    Our company needs extensive web metric reports and the only way to do so is by adding more info in the logs.
    Again, following is my Configuration->HTTP Service->Access Log setup from the admin console.
    Rotation: Enabled
    Rotation Policy: time
    Rotation Interval: 1440
    Rotation Suffix: %YYYY;%MM;%DD;-%hh;h%mm;m%ss;s
    Format: %client.name% %auth-user-name% %datetime% %request% %status% %response.length% %header.referer% %header.user-agent% %cookie.value%Again, the log does not record last 3 values....There are not even "-" indicating missing values.
    Much appreciated.
    Z

  • Change Date Format in iplanet Access logs

    Hi,
    We are currently using iplanet web server. The default date format in the access logs is dd/mmm/yyyy:HH:MM:SS GMT. How can we change this format to yyyy/mm/dd:HH:MM:SS GMT.
    Thanks in advance

    Sorry, I don't know enough about web server to answer you.

  • Change Date Time format in Iplanet Access logs

    Hi,
    We are currently using iplanet web server. The default date format in the access logs is dd/mmm/yyyy:HH:MM:SS GMT. How can we change this format to yyyy/mm/dd:HH:MM:SS GMT.

    You should not change this format. The default date format complies with the "common log format" which is readable by many log analysis tools.
    That said, if you still want to change the date format, you can replace %SYSDATE% with %LOCALEDATE% in your flex-init line. LOCALEDATE will cause the WS to use the date format set by your OS.

Maybe you are looking for