Sjsws7 log rotation policy using CLI

Is it possible to set the log rotation policy using CLI.
We want to script the process of log rotation using CLI instead of configuring it from the console.

Thanks for you interest in Web Server 7.
Yes, Web Server 7 has a rich CLI and
Log rotation like most administration tasks is configurable using the CLI.
To schedule log rotation you need a create an "event" . The event as can be seen from the usage could be restart/reconfig/rotate-log/rotate-access-log etc.
wadm> create-event
Usage: create-event [--echo] [--no-prompt] [--verbose] [--no-enabled] config=name command=restart|reconfig|rotate-log|rotate-access-log|update-crl|commandline ( (--time=hh:mm [--month=1-12] [--day-of-week=sun/mon/tue/wed/thu/fri/sat] [--day-of-month=1-31]) | --interval=60-86400(seconds) )
CLI014 config is a required option.
I will walk thru the steps in the CLI starting from scratch..
1. Create a config.
2. Create an event
3. Create an instance of the config
4. Start the instance
5. Deploy the config ( This is a workaround. You should not have to to do this in the upcoming Technology Preview Release 3).
That's it.. The log should be rotated as per the parameters specified when you create the event.
I am pasting below the actual result of following the above steps.
In the example below the event scheduled is a rotate-log event. rotate-log rotates the error log. If you need to rotate the access logs use rotate-access-log instead.
bash-3.00# ./wadm user admin port 18911
Please enter admin-user-password>
Sun Java System Web Server 7.0-Technology-Preview-2 B06/19/2006 17:16
wadm> date
Sat Sep 16 09:52:27 IST 2006
wadm> create-config -- server-name servername http-port 18923 test
CLI201 Command 'create-config' ran successfully
wadm> create-event config=test command=rotate-log --time=09:55
CLI201 Command 'create-event' ran successfully
wadm> list-events config=test verbose --all
command time interval
rotate-log {09:55}
wadm> create-instance --config=test wspqes032
CLI201 Command 'create-instance' ran successfully
wadm> start-instance --config=test
CLI204 Successfully started the server instance.
wadm> deploy-config test
CLI201 Command 'deploy-config' ran successfully
wadm> date
Sat Sep 16 09:53:22 IST 2006
wadm> pwd
/space/hari/ws7/tpv2/bin
wadm> cd ../https-test/logs
wadm> date
Sat Sep 16 09:53:37 IST 2006
wadm> ls -al
total 8
drwxr-xr-x 2 root root 512 Sep 16 09:53 .
drwxr-xr-x 10 root root 512 Sep 16 09:53 ..
-rw-r--r-- 1 root root 143 Sep 16 09:53 access
-rw-r--r-- 1 root root 683 Sep 16 09:53 errors
wadm> date
Sat Sep 16 09:55:18 IST 2006
wadm> ls -al
total 8
drwxr-xr-x 2 root root 512 Sep 16 09:55 .
drwxr-xr-x 10 root root 512 Sep 16 09:53 ..
-rw-r--r-- 1 root root 143 Sep 16 09:53 access
-rw-r--r-- 1 root root 0 Sep 16 09:55 errors
-rw-r--r-- 1 root root 869 Sep 16 09:55 errors.200609160955
wadm>
In this example we have configures the log to be rotated at 09:55 am and as can be seen this has been done.
We appreciate your valuable feedback. Please do mail us at [email protected]
Hope that helps,
Hari.
Message was edited by:
hari19

Similar Messages

  • RMAN-08591: WARNING: invalid archived log deletion policy

    Hi,
    My database is 11.2.0.1 running on OEL 5.
    We have stndby database running on other server, i have configured rman like this
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    But while running db backup, getting the error
    RMAN-08591: WARNING: invalid archived log deletion policy.
    RMAN retention policy is set to redundancy 1.
    The archive files are deleting even though they are not applied on standby.
    Thanks,

    kkrm333 wrote:
    Hi,
    My database is 11.2.0.1 running on OEL 5.
    We have stndby database running on other server, i have configured rman like this
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    But while running db backup, getting the error
    RMAN-08591: WARNING: invalid archived log deletion policy.
    RMAN retention policy is set to redundancy 1.
    The archive files are deleting even though they are not applied on standby.
    Thanks,
    bcm@bcm-laptop:~$ oerr rman 8591
    8591, 3, "WARNING: invalid archived log deletion policy"
    // *Cause: An invalid ARCHIVELOG DELETION POLICY was supplied. The archived
    //         log deletion policy was APPLIED but there was no mandatory
    //         archived log destinations.
    // *Action: One of the following:
    //          1) Change archived log deletion policy using CONFIGURE command
    //          2) Make one or more of standby destination as MANDATORY.

  • Performance Degrades w/ Log Rotation On

    I am running WLS 7.0 on Solaris 8. We are running an application in a single
    weblogic server instance. We are using this environment to do functionality testing
    of our application. When we turn on log rotation (generate 5 logs w/ max of 500K)
    performance severely degrades. As soon as we turn off log rotation and use a
    single log file the performance returns to acceptable levels.
    Does anyone have a clue as to why this happens and if there is something that
    can be done to correct this problem?
    Thanks in advance!

    I am running WLS 7.0 on Solaris 8. We are running an application in a single
    weblogic server instance. We are using this environment to do functionality testing
    of our application. When we turn on log rotation (generate 5 logs w/ max of 500K)
    performance severely degrades. As soon as we turn off log rotation and use a
    single log file the performance returns to acceptable levels.
    Does anyone have a clue as to why this happens and if there is something that
    can be done to correct this problem?
    Thanks in advance!

  • Can the Policy Management System be enabled by using CLI/Script?

    Hi,
    I know you can enable the Policy Management System in OER Console by selecting True for Enable Asset Policies in the Functional Settings. But I need to automate an OER configuration, so I am wondering if this can be done using CLI.
    Thanks in advance,
    Iris

    Hi,
    I know you can enable the Policy Management System in OER Console by selecting True for Enable Asset Policies in the Functional Settings. But I need to automate an OER configuration, so I am wondering if this can be done using CLI.
    Thanks in advance,
    Iris

  • Cannot schedule log rotation from LMS32 GUI

    All,
    I've been experimenting with the log rotation feature from LMS 3.2 UI (CS > Server > Admin > LogRotation) and have noticed when I try to schedule the logrotation with any backup directory (/var/adm/CSCOpx/log for example) it indicates that I cannot schedule it for that directory structure.  I even tried /tmp which is wide open for writing from any account but it still errors out.
    I am familiar with the logrot.pl -c from the CLI but I need to try this first from the UI.   Has anyone run into this before or know if this is a product issue or a mis-configuration on my part?
    Regards,
    Michael

    Exactly what error are you getting when you try and schedule the rotation?  You should be able to use both /var/adm/CSCOpx/log and /tmp.

  • Sun 6.1-- sjsws7 log migration

    I have 15 virtual servers setup in the 6.1 version. I setup each individual virtual server to store its own logfile in a separate directory by virtual server name. I also setup a log rotation every morning at 12am for the entire server. When using the migration feature to migrate from 6.1 to sjsws7, I notice that everything worked fine except for the fact that the logs aren't archiving (rotating) with a date stamp like they're supposed to on the version 7. So i went into the configuration of the instance--> General--> Log Preferences and created a new Event under log archiving to rotate logs every morning at 12am. Well, still no luck and the logs aren't rotating. Then my next step, I went into the virtual server configuration and under Log Preferences, both boxes for server log and access logs are unchecked. I'm sitting there wondering how in the world does sjsws7 know where to store the log files for each individual virtual server even if the boxes under Log Preferences are left unchecked. So i dug around in the server.xml file and found that during the migration, it creates this in the top <server> part,
    <access-log>
    <name>log7</name>
    <file>D:/***/Logfiles/asr/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%" %Req->reqpb.method% %Req->reqpb.uri% %Req->reqpb.query% "%Req->reqpb.protocol%" %vsid%</format>
    </access-log>
    I got log0 to log20. And I also found out that this part reads from the -obj.conf file to know where to look. The problem is, when i go into the user interface to configure each virtual server--> Log Preferences, and check the box for Access Log Enabled, and point it to the same directory, D:/***/Logfiles/asr/access I get duplicate log entries. But the good thing is that now my logs are archiving. What do I do to prevent the log entries from duplicating? How do I stop the log0-20 thing? Any suggestions??

    A few questions :
    1) What kind of a log archiving did you configure on your 6.1 server ? Was is "Cron based" or "internal deamon" ?
    If it is "Cron based" it would show up under Configurations -> General -> Scheduled events.
    2) Would it be possible to provide the server.xml and the relevent obj.conf file ? I am unable to reproduce the scenario where both access and error logs check boxes are unchecked in the Virtual Server -> Log Preferences.

  • Add file rotation policy into WLLogFile

    Hi Experts,
    Currently we have the OHS server in front of the weblogic server and we do have the following configuration in the mod_wl_ohs_ssl.conf
    <Location /MyApp>
          SetHandler weblogic-handler
          Debug HTW,HFC
          WLLogFile /var/OHS/logs/myohs.log
    </Location>
    In this above case how can i specify the file rotation policy to WLLogFile. Now log files are growing a lot.
    Thanks

    Hi,
    OHS supports log rotation, but it is not specified as a policy in any .conf file. This portion of the documentation should give a good overview of the odl_rotatelogs command in section 7.1.3.
    I would advise rotating logs daily at 00:00 and using the date time string formatting characters to organise your logs easily. For example, renaming your log to
    /var/OHS/logs/myohs-%Y-%m-%d.log and supplying that as the argument to the odl_rotatelogs command will mean that your logs are rotated with the day that they apply to, so you always have a reference.
    Of course, the precise implementation is up to you, but I find that that sort of solution has worked well for me in the past with other sorts of log rotation.
    Mike Croft
    C2B2 Expert Support

  • Question about Archive Log Deletion policy

    I've a problem to understand the Archive Log Deletion policy, and I I'd like to this problem explain with the following example.
    Messages of the database are in German, but I guess you'll understand them.
    SQL> startup
    ORACLE-Instance hochgefahren.
    Total System Global Area 5344731136 bytes
    Fixed Size                  2129240 bytes
    Variable Size            2684355240 bytes
    Database Buffers         2617245696 bytes
    Redo Buffers               41000960 bytes
    Datenbank mounted.
    Datenbank geöffnet.
    SQL> archive log list
    Datenbank-Log-Modus              Archive-Modus
    Automatische Archivierung             Aktiviert
    Archivierungsziel            E:\oracle\thetis_iv\arch
    Älteste Online-Log-Sequenz     17917
    Nächste zu archivierende Log-Sequenz   17919
    Aktuelle Log-Sequenz           17919
    SQL> alter system switch logfile;
    System wurde geändert.I created a brand new archive log.
    SQL> exit
    Verbindung zu Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options beendet
    D:\OracleDB\product\11.1.0\db_1\BIN>dir E:\oracle\thetis_iv\arch
    Datenträger in Laufwerk E: ist Volume
    Volumeseriennummer: 3EBD-77E5
    Verzeichnis von E:\oracle\thetis_iv\arch
    06.04.2011  15:04    <DIR>          .
    06.04.2011  15:04    <DIR>          ..
    06.04.2011  15:04        17.137.152 ARC17919_0721667907.001
                   1 Datei(en),     17.137.152 Bytes
                   2 Verzeichnis(se), 41.073.258.496 Bytes freiand this is the only archive log in the directory. Now I start rman:
    D:\OracleDB\product\11.1.0\db_1\BIN>rman target / catalog rmanrepo@rmanrepo
    Recovery Manager: Release 11.1.0.7.0 - Production on Mi Apr 6 15:05:35 2011
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Mit Ziel-Datenbank verbunden: ENTWIV (DBID=21045568)
    Kennwort für Recovery-Katalog-Datenbank:
    Verbindung mit Datenbank des Recovery-Katalogs
    RMAN> show all;
    RMAN-Konfigurationsparameter für Datenbank mit db_unique_name ENTWIV sind:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
    CONFIGURE CONTROLFILE AUTOBACKUP OFF;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'E:\oracle\thetis_iv\backup\CF_%F_ENTWIV.ORA';
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
    CONFIGURE DEVICE TYPE SBT_TAPE PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS  'ENV=(TPDO_OPTFILE=D:\Services\Tivoli\TSM\AgentOBA64\tpdo.opt)';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'BZIP2'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 2 TIMES TO 'SBT_TAPE';
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\ORACLEDB\PRODUCT\11.1.0\DB_1\DATABASE\SNCFENTWIV.ORA'; # defaultThe archive log deletion policy says the the logfiles have to be backed up for two times before they get deleted.
    Now I backup all archive logs, that havn't been backed up for at least two times.
    RMAN> run { backup archivelog all not backed up 2 times
    2>       format '%d_AR_%Y%M%D_%s_%t'
    3>       tag 'ARCHIVE LOGS'
    4>       DELETE ALL INPUT;
    5>     }
    Starten backup um 06.04.2011 15:08:01
    Aktuelles Log archiviert
    Zugewiesener Kanal: ORA_SBT_TAPE_1
    Kanal ORA_SBT_TAPE_1: SID=253 Device-Typ=SBT_TAPE
    Kanal ORA_SBT_TAPE_1: Data Protection for Oracle: version 5.5.1.0
    Kanal ORA_SBT_TAPE_1: Backup Set für Archive Log wird begonnen
    Kanal ORA_SBT_TAPE_1: Archive Logs in Backup Set werden angegeben
    Eingabe-Archive-Log-Thread=1 Sequence=17919 RECID=147 STAMP=747759899
    Eingabe-Archive-Log-Thread=1 Sequence=17920 RECID=148 STAMP=747760081
    Kanal ORA_SBT_TAPE_1: Piece 1 wird auf 06.04.2011 15:08:02 begonnen
    Kanal ORA_SBT_TAPE_1: Piece 1 auf 06.04.2011 15:08:09 beendet
    Piece Handle=ENTWIV_AR_20110406_23_747760082 Tag=ARCHIVE LOGS Kommentar=API Version 2.0,MMS Version 5.5.1.0
    Kanal ORA_SBT_TAPE_1: Backup Set vollstõndig, abgelaufene Zeit: 00:00:08
    Kanal ORA_SBT_TAPE_1: Archive Logs werden gel÷scht
    Archive Log-Dateiname=E:\ORACLE\THETIS_IV\ARCH\ARC17919_0721667907.001 RECID=147 STAMP=747759899
    Archive Log-Dateiname=E:\ORACLE\THETIS_IV\ARCH\ARC17920_0721667907.001 RECID=148 STAMP=747760081
    Beendet backup um 06.04.2011 15:08:10
    RMAN> exit
    Recovery Manager abgeschlossen.
    D:\OracleDB\product\11.1.0\db_1\BIN> dir E:\oracle\thetis_iv\arch
    Datenträger in Laufwerk E: ist Volume
    Volumeseriennummer: 3EBD-77E5
    Verzeichnis von E:\oracle\thetis_iv\arch
    06.04.2011  15:08    <DIR>          .
    06.04.2011  15:08    <DIR>          ..
                   0 Datei(en),              0 Bytes
                   2 Verzeichnis(se), 41.090.396.160 Bytes freirman deleted all archive logs, even I they are on tape only once by now.
    Thats not what I expected. Where is my mistake?

    Hi,
    I do new tests it's very strange.
    BACKUP ARCHIVELOG command is not obeying the policy of archivelog.
    You can open a SR on MOS. (to check bugs)
    I reproduce the same test and the result was the same, it seems that this is a bug.
    CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 2 TIMES TO DISK;
    RMAN> backup archivelog all not backed up 2 times delete all input;
    Starting backup at 06-APR-11
    current log archived
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting archived log backup set
    channel ORA_DISK_1: specifying archived log(s) in backup set
    input archived log thread=1 sequence=15 RECID=16 STAMP=747753711
    input archived log thread=2 sequence=20 RECID=17 STAMP=747753714
    input archived log thread=1 sequence=16 RECID=19 STAMP=747753729
    input archived log thread=2 sequence=21 RECID=18 STAMP=747753729
    channel ORA_DISK_1: starting piece 1 at 06-APR-11
    channel ORA_DISK_1: finished piece 1 at 06-APR-11
    piece handle=+DATA/orcl/backupset/2011_04_06/annnf0_tag20110406t132210_0.304.747753731 tag=TAG20110406T132210 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    channel ORA_DISK_1: deleting archived log(s)
    archived log file name=+DATA/orcl/archivelog/2011_04_06/thread_1_seq_15.293.747753711 RECID=16 STAMP=747753711
    archived log file name=+DATA/orcl/archivelog/2011_04_06/thread_2_seq_20.295.747753715 RECID=17 STAMP=747753714
    archived log file name=+DATA/orcl/archivelog/2011_04_06/thread_1_seq_16.294.747753729 RECID=19 STAMP=747753729
    archived log file name=+DATA/orcl/archivelog/2011_04_06/thread_2_seq_21.298.747753729 RECID=18 STAMP=747753729
    Finished backup at 06-APR-11
    RMAN> list archivelog all;
    specification does not match any archived log in the repositoryOracle Docs Says:
    The BACKUP ARCHIVELOG ... DELETE INPUT command deletes archived log files after they are backed up.
    This command eliminates the separate step of manually deleting archived redo logs.
    With DELETE INPUT, RMAN deletes only the specific copy of the archived log chosen for the backup set.
    With DELETE ALL INPUT, RMAN deletes each backed-up archived redo log file from all log archiving destinations.
    As explained in "Configuring an Archived Redo Log Deletion Policy",
    the BACKUP ... DELETE INPUT and DELETE ARCHIVELOG commands obey the archived redo log deletion policy
    for logs in all archiving locations. For example, if you specify that logs should only be deleted when backed
    up at least twice to tape, then BACKUP ... DELETE honors this policy.http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmbckba.htm#BRADV89524
    But in ours case it's not honors this policy.
    Only with the FORCE command should this happen. But it is not our case.
    Oracle Docs:
    If FORCE is not specified on the deletion commands,
    then these deletion commands obey the archived log deletion policy.
    If FORCE is specified, then the deletion commands ignore the archived log deletion policy.http://download.oracle.com/docs/cd/E11882_01/backup.112/e10643/rcmsynta010.htm#RCMRF113
    Alternatively you can do the following:
    Set the commands separately.
    Check this:
    RMAN>  run {
    2> backup archivelog all not backed up 2 times ;
    3> delete archivelog all backed up 2 times to disk;
    4> }
    Starting backup at 06-APR-11
    current log archived
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting archived log backup set
    channel ORA_DISK_1: specifying archived log(s) in backup set
    input archived log thread=2 sequence=22 RECID=21 STAMP=747755128
    input archived log thread=1 sequence=17 RECID=20 STAMP=747755127
    channel ORA_DISK_1: starting piece 1 at 06-APR-11
    channel ORA_DISK_1: finished piece 1 at 06-APR-11
    piece handle=+DATA/orcl/backupset/2011_04_06/annnf0_tag20110406t134528_0.295.747755129 tag=TAG20110406T134528 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 06-APR-11
    released channel: ORA_DISK_1
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=78 instance=orcl1 device type=DISK
    RMAN-08138: WARNING: archived log not deleted - must create more backups
    archived log file name=+DATA/orcl/archivelog/2011_04_06/thread_1_seq_17.298.747755127 thread=1 sequence=17
    RMAN-08138: WARNING: archived log not deleted - must create more backups
    archived log file name=+DATA/orcl/archivelog/2011_04_06/thread_2_seq_22.294.747755129 thread=2 sequence=22
    RMAN>Edited by: Levi Pereira on Apr 6, 2011 1:35 PM

  • LMS3.2 Log rotation problem

    Hi,
    we use LMS3.2 (windows single-server)  for ~4500 devices and have a problem with log rotation.
    That's our configured log roation:
    Name with location
    Size (kb)
    Format
    No.of Backups
    1.
    D:\CSCOpx\log\dcrclient.log
    102400
    gz
    3
    2.
    D:\CSCOpx\log\ICServer.log
    102400
    gz
    3
    3.
    D:\CSCOpx\log\syslog.log
    1024000
    gz
    5
    The backup directory is the same as the usual log directory. The size of the 3 files is already bigger than the configured size in log roation, see:
    dcrclient.log     2,1 GB
    ICServer.log     1,1 GB
    syslog.log        9,7 GB
    After the log roation configuration we restarted the daemon manager, but it's not working. There are no backup files created and the 3 files are still growing.
    Regards
    Hendrik

    After you configure the log rotation you need and restart the daemons, you need to schedule the job. The schedule buttong is available under
    Common Services -> Server -> Admin -> Log Rotation.

  • 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

  • Agent log rotation

    Agent - Sunone Agent 2.1
    Webserver - IIS
    Policy Server - IS 6.0 SP1.
    How do you get the agent log to rotate on size/time? Is there a parameter?
    Currently we have to manually delete it.

    Log rotation feature available in 2.2 web agents. You need to find other ways to do it.
    -Subba

  • Log rotation problem

    We are running WLS 8.1.4 and have had a recurring problem with log rotation for quite a long time. It has happened on every machine we've used, running both Windows 2000 and XP. What we want to do is have our logs roll nightly, but it seems that no matter what time we set in the WLS console, the log ends up rolled at an arbitrary time.
    Our current configuration is the following:
    Server File Name: ourServerName_%MM%-%dd%-%yyyy%.log
    Rotation Type: By Time
    Rotation Time: 04:00
    File Time Span: 24 Hrs
    We have tried many permutations on the Rotation Time field, including removing or adding leading zeros as well as seeing if the time difference is constant due to a time zone issue, but no discernible pattern has emerged.
    For instance, the logs for the last few days have been rolled at exactly 2300, despite being set to roll at 0400. Other times it has been set to roll at 0204, and it will roll at 1104. One other thing to note: the minutes are always correct, but the hours are nearly always off.
    Any ideas?

    No, and I can verify that this problem has showed up at multiple sites configured by multiple people besides myself. As we are precisely following the specs laid out in the WLS 8.1 docs, I can only assume this is a bug.

  • [logging] Problems to configure logging rotation.

    Hi,
    I have an application .ear deployed in weblogic v10.3.1.0
    This application use java.util.logging to write a log file.
          fh = new FileHandler(logFileName,0,1,true);
          fh.setFormatter(new XMLFormatter());
          logger.addHandler(fh);
    FileHandler(String pattern, int limit, int count, boolean append)
    pattern - the pattern for naming the output file
    limit - the maximum number of bytes to write to any one file. If this is zero, then there is no limit. (Defaults to no limit).
    count - the number of files to use
    append - specifies append mode
    http://www.javadocexamples.com/java/util/logging/java.util.logging.FileHandler.html
    logFileName is dynamic with date formated like this yyyMMdd + ApplicationName + ".log"
    This file is created but I have also yyyyMMddSEC.log.1, yyyyMMddSEC.log.2, yyyyMMddSEC.log.3,...
    I DON'T WANT THESE FILES_, that's why I put limit to 0, count to 1 and append to true.
    This code works without jdev/weblogic but has not effect in weblogic.
    Q1. Why?
    So I go to Weblogic console: Domain Structure-> DefaultDomain->Logging
    Log file name: logs/DefaultDomain.log
    Rotation type: None
    NONE
    Messages accumulate in a single file.
    You must erase the contents of the file when the size is too large.
    Note that WebLogic Server sets a threshold size limit of 500 MB before it forces a hard rotation to prevent excessive log file growth.
    But it doesn't work, Weblogic continue to create log files like this *<filename>.log.<n>*
    Q2. Why?
    I have also created weblogic.xml in ViewControler/WEB-INF
    thanks to this documentation:
    http://download.oracle.com/docs/cd/E13222_01/wls/docs103/webapp/weblogic_xml.html#wp1063199
    but it doesn't work...again.
    Q3. Why?
    Q4. If I want applications manage themselves their log, how to deactivate the logging handler in weblogic (LogFileMBean?)
    Thanks for your help.

    You may want to ask in the WebLogic Server - Diagnostics / WLDF / SNMP forum. They own logging.

  • IPlanet 4.1 Web Server - ns-cron process hangs for log rotation

    Does anybody know if there is a known issue with iPlanet 4.1 Web Server where the ns-cron log rotation process hangs up?
    Basically it won't rotate any logs, and using either the "Stop" or "Restart" buttons in the console won't shut it down, so you have to kill it manually, then start it again.
    It seems like it will run for a couple days fine, then it will hang up.
    Thanks.

    Nope, I've not seen this before. But 4.1 version is really old and no longer supported, you should consider upgrading to a supported version.

  • Weblogic 5.1 SP 6 log rotation

    Hi all,
    I use Weblogic SP6 and, as there is a rotation with the access.log
    file, I would like to configure a log rotation for the weblogic.log
    file because it increases quickly. But, there seems to be no property
    to configure that.
    I tried to do it with system commands but this always makes with
    Weblogic server fail. Does anyone has already done that and how?
    Thanks in advance
    Fanny

    Hi there,
    I've managed to configure XSQL with Weblogic 5.1 SP6 and to run the demos from the Oracle site.
    My system configuration is :
    -Windows NT 4.0
    -Weblogic 5.1 SP 6
    -Oracle 8.1.7
    -Xalan version=2.0.1
    -Xerces version=1_3_1 (Support SAX2)
    CLASSPATH="${oradriver.lib}:${servlets.lib}:${jaxp.lib}:${xerces.lib}:${xalan.lib}:${xsql.lib}:${weblogic.home.dir}/lib/weblogic510sp${weblogic.sp.version}boot.jar:${weblogic.home. dir}/classes/boot"
    WEBLOGIC_CLASSPATH="${jaxp.lib}:${xerces.lib}:${xalan.lib}:${xsql.lib}:${weblogic.lib}:${jdom.lib}:${oreilly.lib}:${jdriver.lib}:${build.classes.dir}"
    Now when trying to integrate my XSQL framework in the big picture of the webapp - I'm getting errors.
    the error is:
    =============================================
    <WebAppServletContext-ads> looking for taglib uri
    /tlds/taglib.tld as resource /WEB-INF/tlds/taglib.tld
    in Web Application root:
    Sat Jun 16 14:30:37 PDT 2001:<E>
    <WebAppServletContext-ads> Servlet failed with
    Exception
    java.lang.NoSuchMethodError:
    javax.servlet.jsp.tagext.TagAttributeInfo: method
    <init>(Ljava/lang/String;ZZLjava/lang/String;)V not
    found
    at
    weblogic.servlet.jsp.MyAttInfo.<init>(StandardTagLib.java:34)
    at
    weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:280)
    =========================================
    If I remove from the classpath the servlets.lib(which contains servlets.jar) I'm able to access my webapp again but I cannot process the .xsql extensions.
    -the error from Weblogic appserver is:
    cannot find XSQLServletPageProcessor
    My question is that somebody has any ideea of what other type of servlet lib will be needed or if something else in the configuration files has to be modified?
    Thanks in advance,
    dan stepanov
    null

Maybe you are looking for

  • Problem with versioning on iPod, backwards compatibility issue with iTunes

    i apologize in advance because i'm sure this has been asked time and time again, but i did attempt several searches. the search function is very muddled and does not narrow down the results very well at all here's the situation. from all accounts i'v

  • Itunes 10 loaded but won't connect to internet!

    I have just installed the Latest iTunes, and luckily it still picked up all of my music from previous itunes. But now when I import a CD it will not pick up the CD data i.e artist title etc. I am signed in here so internet is working, but when I sign

  • Cant Import DVDs. Help!!!

    I cant download movies that I have on DVD already. The burn disc doesnt appear at the bottom right like it does with music that I have on CD. Please Help!!! Dell   Windows 2000   Dell Dimension 8250   Windows 2000  

  • Can we rewrite this query??

    what i am i doing wrong here.. this query has performance issue.. RBE_SMF_ATTRIB_HISTORY table has 2 M records.. SELECT h.pricing_security_id,h.level1 mac1, h.level3 mac3,h.level5 mac5, h.mat_date maturity,h.country_of_issue country,h.px_date FROM GP

  • Display of leading zeros for a GL account in FS00

    Hi all, does anyone know is it possible to set something in SAP so that in transaction FS00 the gl account number is displayed with leading zeros? Now they are removed. Thanks! D.