Rotation of access logs unsuccessful !!

Hi everybody,
I tried setting up the rotation for access log (WLS 6.0), as per the user documentation.This
doesn't seem to work, neither "by Size" nor "by Date". My config.xml does show
proper tags for logging.
<WebServer DefaultWebApp="DefaultWebApp_myserver" LogFileBufferKBytes="15" LogFileName="./config/mydomain/logs/sushil.log"
LogRotationPeriodMins="1" LogRotationTimeBegin="06-07-2001-14:19:30" LogRotationType="size"
LoggingEnabled="true" Name="myserver" />
Am I missing something here. I was wondering if someone could give me an insight
on this.
Thanks in advance,
Sushil

I see there is no space between 1000" and max.
<access-log path="../log/http-web-access.log" max-file-size="1000"max-directory-size="10000"/>
However, you need to use the ODL logging line in config
     <odl-access-log path="../log/http-web-access" max-file-size="1000" max-directory-size="10000"/>

Similar Messages

  • File name format of rotated access log

    Hi,
    I'm using wls5.1sp9 on Solaris.
    Is it possible to specify a different file name format of the rotated http access
    logs?
    Instead of getting files named access.log0001 and so on, I would prefer access.log.<date>
    or some other custom format.
    Best regards,
    Torleif Galteland

    Hi,
    Thanks for your response. But I have another query. The name of the file as per your reply is like UsageReport.xls correct? Now my query is, should it contain some date,account id/orgid etc associated for that usage. The reason for my query is that if MSP
    downloads the usage for different orgs having same bill date then it would conflict with the different usage files.
    Thanks And Regards,
    Sumanta Saha

  • How has access.log file configured in WebLogic server 10.0?

    1.) I am using BEA Weblogic 10.0 and my access.log is not getting updated.
    2.) I also need any information as to how this Webblogic server forms chunks (ex....access00011.log,access00012.log) because i have a software called AWStats which merges all these chunks into 1 single access.log file under its subdirectory.
    3.) I also need information as to how and where the user can specify/ form his own fields which gets displayed in the access.log
    FYI i have 2 servers and i checked under Logging->HTTP->advanced, in both the servers options and configurations are same but in 1 it works fine and access.log is updating but not in the other one.
    Kindly let me know i you have any leads into this issue!
    Thanks,
    Varun

    Hi Ravish,
    Firstly thanks for the reply.
    1.) -----
    What you can do is to set the buffer-size-kb parameter value to "0" in config.xml so that it can start logging once the server starts coming up rather then waiting for the default size which is 8kb to pass.
    Something like below:
    <web-server-log>
    <buffer-size-kb>0</buffer-size-kb>
    <web-server-log>
    For more details check the below link:
    Search for: CR302493
    http://download.oracle.com/docs/cd/E11035_01/wls100/issues/known_resolved.html
    --- for this issue i had browsed throught the forum before posting but in my conf file i have something like this instead of <buffer-size-kb>0</buffer-size-kb>
    <web-server>
    <web-server-log>
    <number-of-files-limited>false</number-of-files-limited>
    <log-file-format>extended</log-file-format>
    </web-server-log>
    </web-server>
    So how do i go about the path of debugging now??
    2.) -------
    If you do not want rotation of access.log then you can just disable it from the below console path just by putting Rotation type as None
    Server -> <YOUR_SERVER_NAME> -> Logging (tab) -> HTTP (sub-tab) -> Rotation type: None
    ---- for this in both my servers i have the settings like this,
    Rotation type--> By Size
    Rotation File size 5000
    Begin rotation time 00:00
    rotation interval 24
    files to retain 7
    and Log file rotation directory is left blank (to get created in same directory)
    and also Rotate log file on startup is unchecked.
    so??? what do you suggest!?
    3.) ------
    I also need information as to how and where the user can specify/ form his own fields which gets displayed in the access.log
    ---- regarding this, in my main server the access.log is getting updated and after 4.8Mb its creating 5Mb chunks. So, for example if the entire log is of 15 Mb then access.log stops updating at 4.98Mb and accesslog.out0001 and accesslog.out0002 is created with 5Mb each but the latest entry will be stored in accesslog.out0002 file. I hope i didn't complicate this :)
    Regards,
    Varun

  • Extended format of access.log and log rotation

    I am using WebLogic Server 6.1sp1. I want to use extended format of web
    server access log. I also want to use log rotation based on date. But it
    seems not to work together. After my investigation I can say:
    - access.log in common format can be rotated based on date an on size,
    - access.log in extended format (either in its default form or
    completely redefined) cannot be rotated neither based on date nor size.
    In the second case at first time WebLogic tries to rotate logfile
    IOException is thrown with a message like "java.io.IOException: Failed
    to rename log file on attempt to rotate logs". Than it throws
    IOException with a message "Exception flushing HTTP log file. (Bad file
    descriptor)." when it tries to flush content of logfile to the disk.
    After that WebLogic server stops to write to access.log.
    Is it possible to rotate access.log in extended format?
    Thanks,
    Andrzej Derlacki
    Infovide, Poland
    [email protected]
    [email protected]

    i am pasting the entries below which i see in the log( access_log ) . I don't see DEBUG in them.
    <AGENT_IP_ADDRESS> - - [29/Jun/2007:09:48:23 -0400] "GET /em/upload?ACTION=HEARTBEAT&EMD
    _URL=https%3a%2f%2flph010%2egep%2ege%2ecom%3a3872%2femd%2fmain%2f&HEARTBEAT_TI
    ME=2007-06-29+09%3a40%3a09&OUTSTANDING_SEVS=FALSE&EMD_UPTIME=2007-06-18+10%3a20%
    3a23&OLDEST_COLL_TIME=2007-06-29+09%3a40%3a09&INSTALL_TYPE=agent&X-ORCL-EMOV=4%2
    e0%2e0&X-ORCL-EMCV=10%2e2%2e0%2e1%2e0&X-ORCL-EMSV=10%2e2%2e0%2e1%2e0 HTTP/1.1" 2
    00 5
    <AGENT_IP_ADDRESS>- - [29/Jun/2007:09:48:23 -0400] "GET /em/upload?ACTION=HEARTBEAT&EM
    D_URL=https%3a%2f%2fprdes%2eeur%2egep%2ege%2ecom%3a3872%2femd%2fmain%2f&HE
    ARTBEAT_TIME=2007-06-29+15%3a48%3a23&OUTSTANDING_SEVS=FALSE&EMD_UPTIME=2007-06-1
    8+18%3a27%3a33&OLDEST_COLL_TIME=2007-06-29+15%3a48%3a23&INSTALL_TYPE=agent&X-ORC
    L-EMOV=4%2e0%2e0&X-ORCL-EMCV=10%2e2%2e0%2e1%2e0&X-ORCL-EMSV=10%2e2%2e0%2e1%2e0 H
    TTP/1.1" 200 5
    <AGENT_IP_ADDRESS> - - [29/Jun/2007:09:48:24 -0400] "GET /em/upload?ACTION=HEARTBEAT&E
    MD_URL=https%3a%2f%2fug038%2egep%2ege%2ecom%3a3872%2femd%2fmain%2f&HEARTBEAT_
    TIME=2007-06-29+22%3a19%3a35&OUTSTANDING_SEVS=FALSE&EMD_UPTIME=2007-06-18+18%3a3
    7%3a03&OLDEST_COLL_TIME=2007-06-29+22%3a19%3a35&INSTALL_TYPE=agent&X-ORCL-EMOV=4
    %2e0%2e0&X-ORCL-EMCV=10%2e2%2e0%2e1%2e0&X-ORCL-EMSV=10%2e2%2e0%2e1%2e0 HTTP/1.1"
    200 5

  • Rotating the default-web-access.log log

    Can the default-web-access.log file be rotated with ODL?

    Yes, at least since on 10g Release 2 (10.1.2) , see the <odl-access-log> secction on:
    Oracle® Application Server Containers for J2EE User's Guide
    10g Release 2 (10.1.2) - 3 Advanced Configuration and Development
    http://download-west.oracle.com/docs/cd/B14099_19/web.1012/b14011/advanced.htm
    Bruno Antunes,
    Java Software Engineer

  • Access log trimming/rotation under UNIX - is there a way?

     

    It doesn't look like there is access log rotation in version 5.
    Why not?
    - igor
    Steve Ingram wrote:
    We are running 4.5.1 under Compaq Tru64 Unix. Is there a method log access
    log rotation or trimming available without stopping the server?
    If I have to shut it down, it takes about 30 seconds to shutdown and then 2
    minutes to come back up (some EJB's do a lot of cache building 90 secs) This
    is unacceptable in a production environment. Is there a way to rotate access
    logs without bouncing weblogic?
    Steve
    [email protected]

  • Time-based log rotation in Access Manager

    Hi,
    We have configured Access Manager for size-based log rotation. So the log files undergo rotation whenever the log files reach the size limit specified.
    But I would like to know if the Access Manager Logging module provides options for:
    Time-based Log Rotation : so that log files get rotated on a periodic basis.
    Log File Name Customization: At present the old log files get suffixed with -n (e.g. amPolicy.access-1), where 'n' denotes the number in the rotation sequence . Is it possible to configure Access Manager to generate a timestamp as a suffix for old log files.
    e.g. amPolicy.access-05_29_2005.
    Regards,
    Chetan Desai

    The AM admin guide (ftp://docs-pdf.sun.com/817-7647/817-7647.pdf) page 335 has listed all available Logging attribute. It doesn't have the time based parameter and time stamp suffix. If you wish to have those features, please contact Sun Identity sales for filing a RFE. Also checking Logging API and see whether you can program yourself to achieve those features. (see page 47 of 817-7650.pdf) Jerry

  • Regular web log (access.log) rotation?

    I am using Weblogic as a web server and I have enabled http logging to
    the access.log file. What is the BEA recommended method for copying and
    purging the access.log file on a regular (daily) basis?
    - Kevin

    Refer to README.TXT of Service Pack 5 for details.
    Cheers - Wei
    Kevin McEntee <[email protected]> wrote in message
    news:[email protected]..
    I am using Weblogic as a web server and I have enabled http logging to
    the access.log file. What is the BEA recommended method for copying and
    purging the access.log file on a regular (daily) basis?
    - Kevin

  • Access.log separator character is tab (tabulation in french) would like to have space and date format

    Hi, I'm french (excuse me for my bad english)
    I work with weblogic v.12C
    I reach to produce the access.log rotating daily whith several information (ip statut ...)
    1) I have a problem : the different information present in the file access.log are separate by a tab (tabulation) I would like to have space separator ' ' !
    It is possible ? who can I do ?
    2) the date present in the access.log file is actually like that : dd/MM/YYYY (elf-fields-> date) hh:mm:ss (elf-fiels -> time)
    dd/MM/YYYY and hh:mm:ss are separate by a tab (tabulation)
    I would like to have this format      :    dd/MM/YYYY hh:mm:ss (a space separator), , what i have to put in elf-fields to do so ?
    Or I would like to have this format :     [dd/mon/yyyy:hh:mm:ss +0000], who can i do that, what i have to put in elf-fields to do so ?
    remarks :
    ->on the web i read this :
    The Common Log Format is the default log format used by WebLogic..
    ... remotehost RFC931 authuser [day/month/year:hour:minute:second  UTC_offset] "request" status bytes
    when i put that in elf-fileds :  [dd/MM/YYYY:hh:mm:ss] it that doesn't "work" I have - in my acces.log file in place of the date .
    -> first line of my acces.log file :
    Format : Extended
    Extended Logging Format Fields : date time cs-method cs-uri sc-status time-taken cs(user-agent)
    thanks in advance for your help.

    Hi, I'm french (excuse me for my bad english)
    I work with weblogic v.12C
    I reach to produce the access.log rotating daily whith several information (ip statut ...)
    1) I have a problem : the different information present in the file access.log are separate by a tab (tabulation) I would like to have space separator ' ' !
    It is possible ? who can I do ?
    2) the date present in the access.log file is actually like that : dd/MM/YYYY (elf-fields-> date) hh:mm:ss (elf-fiels -> time)
    dd/MM/YYYY and hh:mm:ss are separate by a tab (tabulation)
    I would like to have this format      :    dd/MM/YYYY hh:mm:ss (a space separator), , what i have to put in elf-fields to do so ?
    Or I would like to have this format :     [dd/mon/yyyy:hh:mm:ss +0000], who can i do that, what i have to put in elf-fields to do so ?
    remarks :
    ->on the web i read this :
    The Common Log Format is the default log format used by WebLogic..
    ... remotehost RFC931 authuser [day/month/year:hour:minute:second  UTC_offset] "request" status bytes
    when i put that in elf-fileds :  [dd/MM/YYYY:hh:mm:ss] it that doesn't "work" I have - in my acces.log file in place of the date .
    -> first line of my acces.log file :
    Format : Extended
    Extended Logging Format Fields : date time cs-method cs-uri sc-status time-taken cs(user-agent)
    thanks in advance for your help.

  • Why can't read access log file in real-time? (Oracle Weblogic Server 10.3)

    We can't read access log file in real-time. If access log is rotation to new file so can read access log file but can't read real-time.
    *** Oracle Weblogic Server versions 10 R3

    what's your meaning? try this command "tail -f access.log".
    Threre is a buffer about 8K for WebLogic to write the access info into the log files, so you can't see the access info untill the buffer is full.

  • How to rotate Apache2.2/logs/access_log without restarting AMS 5.0.1 on AWS.

    The Adobe Media Server 5.0.1 docs say that Logging.xml controls rotating of the Apache access_log file but its not rotating and I don't see how to configure it in Logging.xml.
    Logging.xml takes care of the AMS log files like Access.log but it doens't seem to handle the Apache logs. I've seen where you use logrotated to rotate the Apache logs, then issue a "reload" to the service, but AMS controls Apache and the AMS service only supports start, stop, and reload which takes a minimum of 5 to 10 seconds to reload the server. How can I rotate the Apache logs using Logger.xml or how can I issue a reload directly to Apache when the AMS scripts control it?
    http://help.adobe.com/en_US/adobemediaserver/configadmin/WS5b3ccc516d4fbf351e63e3d119f2926 0bd-7ffa.2.3.html

    To rotate the apache logs you need to pipe them through a third party tool (i saying that there may be something in apache I may have read once, however here is a tried and tested solution assuming you are on linux), Logging.xml is only for FMS (well it was for 4.5.5 and before).
    Download cronolog (http://cronolog.org/)
    Change your log directive
    From: CustomLog "logs/access.log" combined
    To: CustomLog "| /mnt/apps/cronolog/sbin/cronolog -S /mnt/fms/Apache2.2/logs/access_log /mnt/fms/Apache2.2/logs/%Y%m%d_access.log" combined
    Restart apache
    You logs will now roll daily on the first time they are written toie the logs dont roll at midnight, but the first time they are written to after midnight (so if no one access your server on a day, there will be no log for that day)
    The above example makes the assumptiosn:
    FMS apache is installed in /mnt/fms/Apache2.2 and you want to use its log dir
    cronolog installed in /mnt/apps/cronolog/

  • Can I /dev/null my access log while running?

    I have a Directory Server 5.2 system running
    on Linux Red Hat.
    My access log is huge - 1.7 G in 2 days, using
    default logging.
    Can I manage this by copying the access log
    to another directory, then
    cat /dev/null > /sunusr/slapd-xxxx/access
    w/o negative effects ?
    If I can , this will save me much grief,
    JYard
    UCLA

    You can cat /dev/null, but you should not need to. You should be able to configure, the size, the rotation time, and the max file system utilization. You can actually have logs that do not exceed 10MB or whatever you want. Go to the configuration/logs tab in the console and set it any way you want.

  • 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

  • LIBTUX_CAT:1278 errors and access log entires

    Hi,
    On our development database, we're observing the LIBTUX_CAT 1278 warnings quite often. Each of these entries are accompanied by an lines in the access log of the same day.
    Question is:
    What do the access log entries mean? How are the two entries in the two files (the ULOG and access.ddmmyy files) related?
    125419.usplsoplhdimf03!?proc.13754.1.-2: 09-03-2010: Tuxedo Version 10.3.0.0, 64-bit
    125419.usplsoplhdimf03!?proc.13754.1.-2: LIBTUX_CAT:1278: ERROR: Cannot join application - permission denied
    $ grep 13754 *
    access.090310:125408.usplsoplhdimf03!?proc.13754.1.0: total client (17), logon with AUTH: NATIVE cltname (tpsysadm) usrname (OB4D2_SVR) success
    access.090310:125419.usplsoplhdimf03!?proc.13754.1.0: total client (17), logoff with AUTH: NATIVE cltname (tpsysadm) usrname (OB4D2_SVR) success
    Thanks.

    I can't say for sure what is happening here, but my guess is that process 13754 may be calling tpterm() on some and then continuing to call other ATMI APIs.
    Most Tuxedo client APIs perform an implicit tpinit((TPINIT *)NULL) if called by an application which has not previously called tpinit(). Since this implicit tpinit does not include any authorization information, it can only succeed in an application with no authorization.
    The evidence is that your application performed a successful tpinit() (logon) at 12:54:08. The access log indicates that authorization was used. At 12:54:19 the application performed tpterm() (logoff). During the same second another tpinit() was unsuccessful. Most likely this was an implicit tpinit((TPINIT *)NULL) done by some other call such as tpcall(), tpconnect(), tpacall(), or another ATMI function.
    In order to further debug the problem, you may want to
    export TMTRACE=*:ulog:dye
    in the client which is failing. This will cause a record of all ATMI calls to be written to the userlog.
    Regards,
    Ed

  • WebLogic Access Log

    The access.log keeps growing, over significant size, like 80MB in a couple of months.
    Is any way to rotate the log by size? Seems to me the rotating configuation
    on the console only applies to the weblogic.log.
    Any suggestions?
    Thanks in advance,
    Sam

    Hi, Sam.
    WebLogic Server 6.0 -- this is doc'd as a known issue <http://e-docs.bea.com/wls/docs60/notes/issues.html#1064994>
    (look for issue number 41321).
    WebLogic Server 6.1.0 -- access.log rotation works.
    Check out 6.1.0!
    "Sam He" <[email protected]> wrote:
    >
    The access.log keeps growing, over significant size, like 80MB in a couple
    of months.
    Is any way to rotate the log by size? Seems to me the rotating configuation
    on the console only applies to the weblogic.log.
    Any suggestions?
    Thanks in advance,
    Sam

Maybe you are looking for