Which log file can be removed safely?

The directory /private/var/log uses about 4.5 Gig of disk space, about half of which is used by /private/var/log/asl.
My question now is: which of these can I delete?
I assume, I can't delete the files *.log.
But what about *.log.bz2 - they should be OK to delete, shouldn't they?
And what about the files in /private/var/log/asl ?
Thanks a lot in advance for all insights.
Best regards,
Gabriel.

GabrielZ wrote:
Ah, that is good to know.
Yes, indeed, I always put my laptop to sleep during the night.
Is there any way I can make these scripts also run, say, once a week during the day?
Best regards,
Gabriel.
You're welcome. If the computer is not shut down, they are set to run in the middle of the night, or when the computer next wakes up. It's really easy to run the scripts in Terminal. Look in Activity Monitor (Applications>Utilities) for that runaway process.

Similar Messages

  • Log files can't be removed automatically in HA environment

    Hi BDB experts,
    I am writing db HA application based on bdb version 4.6.21. Two daemons run on two machines, one as master which will read/write db, one as client/backup will only read db. There is one thread in master daemon that run checkpoint every 1 second: dbenv->txn_checkpoint(dbenv, 1, 1, 0), and dbenv->log_archive(dbenv, NULL, DB_ARCH_REMOVE) will be called after runnng checkpoint each time. The env was open with flag: DB_CREATE | DB_INIT_TXN |  DB_INIT_LOCK | DB_INIT_LOG | DB_REGISTER | DB_RECOVER | DB_INIT_MPOOL | DB_THREAD  | DB_INIT_REP;   Autoremove flag was set by: envp->set_flags(uid_dbs.envp, DB_LOG_AUTOREMOVE, 1) before open env.
    I found this thread https://forums.oracle.com/message/10945602#10945602 which discussed about non-ha environment, and I tested my code in a non-ha env without DB_INIT_REP, it worked. However in HA env those log files were never removed. Could you help on this issue? Does the client need to run checkpoint? May there be a bdb bug?
    Thanks,
    Min

    There is one thread in master daemon that run checkpoint every 1 second: dbenv->txn_checkpoint(dbenv, 1, 1, 0), and dbenv->log_archive(dbenv, NULL, DB_ARCH_REMOVE) will be called after runnng checkpoint each time. The env was open with flag: DB_CREATE | DB_INIT_TXN |  DB_INIT_LOCK | DB_INIT_LOG | DB_REGISTER | DB_RECOVER | DB_INIT_MPOOL | DB_THREAD  | DB_INIT_REP;   Autoremove flag was set by: envp->set_flags(uid_dbs.envp, DB_LOG_AUTOREMOVE, 1) before open env.
    I am not saying that this is causing a problem, but doing the DB_ENV->log_archive(DB_ARCH_REMOVE) in your thread and setting DB_ENV->set_flags(DB_LOG_AUTOREMOVE) is redundant. In your thread, you control the timing. The DB_ENV->set_flags(DB_LOG_AUTOREMOVE) option checks for and removes unneeded log files when we create a new log file.
    Did you see in the documentation for DB_ENV->set_flags(DB_LOG_AUTOREMOVE) that we don't recommend doing automatic log file removal with replication? Although this warning is not repeated in DB_ENV->log_archive(DB_ARCH_REMOVE), it also applies to this option. You should reconsider using this option, particularly if it is possible that your client could go down for a long time.
    But this is only a warning and automatic log removal should work. My first thought here is to ask whether your client has recently gone through a sync? Internally, we block archiving on the master during some parts of a client sync to improve the chances that we will keep around all logs needed by the syncing client. We block archiving for up to 30 seconds after the client sync.
    I found this thread https://forums.oracle.com/message/10945602#10945602 which discussed about non-ha environment, and I tested my code in a non-ha env without DB_INIT_REP, it worked. However in HA env those log files were never removed.
    This thread is discussing a different issue. The reason for our warning in BDB 4.6 against using automatic log removal with replication is that it doesn't take into account all the sites in your replication group, so we could remove a log from the master that a client still needs.
    We added replication group-aware automatic log removal in BDB 5.3 Replication Manager, and this discussion is about a change of behavior from this addition. With this addition, we no longer need to recommend against using automatic log removal with replication in BDB 5.3 and later releases.
    Could you help on this issue? Does the client need to run checkpoint? May there be a bdb bug?
    I'm not sure the client needs to run its own checkpoints because it performs checkpoints when it receives checkpoint log records from the master.
    But none of the log removal options on the master does anything to remove logs on the client. You will need to perform steps to archive logs separately on the client and the master.
    Paula Bingham
    Oracle

  • System.out.println in which log file

              We are using weblogic 51 server.
              We have System.out.println's in the servlets but don't see
              it in any log file. Which log file would/should
              it go to.
              

    If you are running a shell script (not as as service) you will see it in
              that shell window, if you run it without a console window (service), you
              usually see nothing.
              If you are using a third party tool to run the server as a service (e.g.
              ServiceMill for Win2k/NT) you usually can set files where you would like
              your output to be redirected.
              If you run the server as a service and don't have this option you can do
              it yourself by setting System.setErr / System.setOut, e.g. in a
              startup-class
              Daniel
              -----Ursprüngliche Nachricht-----
              Von: smita [mailto:[email protected]]
              Bereitgestellt: Mittwoch, 6. Juni 2001 18:54
              Bereitgestellt in: servlet
              Unterhaltung: System.out.println in which log file
              Betreff: System.out.println in which log file
              We are using weblogic 51 server.
              We have System.out.println's in the servlets but don't see
              it in any log file. Which log file would/should
              it go to.
              

  • I have some items in my download queue which apparently I can't remove.

    I have some items in my download queue which apparently I can’t remove. The items are large (several gigs in total) and I’d prefer to not have to download them, but am annoyed by the fact that it keeps wanting to resume downloading whenever I start iTunes. I’m surprised there’s no way for me to delete it from the queue. I’d appreciate if you would remove these from my download queue.

    Once you have them on you Mac disk drag them onto the iPhoto icon in the Dock. Or onto the open iPhoto window. Or in iPhoto file menu ==> import
    LN

  • Log files can be applied after an offline backup is restored?

    When reading the Admin Guide I see above possibility.
    I guess in that case the offline backup must be done in the Database Maintenance Mode: QUIESCE.
    I think if the offline backup is done after the DB is shutdown, no log files can be applied.
    Would you please confirm and share your experience on this?
    Thanks a lot!

    Hi Jennifer,
    only to complete the answer of Jens, or "say" it less complex:
    1.) Yes you could roll forward an offline backup. DB2 always end in rollforward pending state after a restore independent of the backup type (online | offline). In case of an offline backup you could complete the restore without logs, otherwise not.
    2.) The offline backup is done in a special mode, it is neither online nor quiesced. Nobody can log on to the database as long the offline backup is running. To start the offline backup, you have to deactivate the database as described by Jens.
    Best regards
    Ralph

  • Can I remove safely Photoshop CS5 after a successful upgrade to Photoshop CS6?

    Can I remove safely Photoshop CS5 after a successful upgrade to Photoshop CS6? What is best and safest way to do this?

    If you are using a Windows OS
    Open CS5 and go Help > Deactivate.
    Then Control Panel > Programs and features > select CS5 and uninstall.
    Or just leave it there.  Make sure you have sorted any third party plugins from CS5, although the uninstall should leave them intact.

  • What log files can delete in RAC?

    Hi,
    I have a little question, what log files can delete?
    $ORA_CRS_HOME/log/hostname/client ?
    And what others?
    Miguel

    Some logs are automatically purged and some not: see http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/appsupport.htm#BEHJHGJD.
    Trace files (.trc) that can be created in same directories are not purged automatically.

  • Which archivelog files can be safely removed from OS

    Hi,
    I didn't used "delete input" option when backup the archivelog files. So all archivelog files still remain on the file system. How can I identily which archivelog files I can delete using the command
    "RMAN>change archivelog '/u04/arch/arch_xxx.arc' delete; "
    where xxx is the seq I need to make sure it's safe to be removed.
    I need to make sure "restore archivelog all validate" command will still report successful afterward. The total size of archivelog files is over 20GB and I'm running out of space now. Thanks.

    The only way to delete your archlog is do not do a cross check archivelog all. Bec that will invalidate your archlogs. We have a rentetion of 28 days and we dlete archlogs after everybackup using delete input. While doing cross check we use "cross check completed before 'xxx'" and then it still keeps active in repo.
    Regards,
    http://askyogesh.com

  • Commit Completes although current online redo log file have been removed.

    Although i have removed current online redo log file in linux os (Oracle Linux),when i type "commit" it says that "commit complete".
    Is this fair for this princip?*:" if Only when all redo records associated with a given transaction are safely on disk in the online logs is the user process notified that the transaction has been committed."*
    I think that it can lead to loss of data in some cases..I'm using Oracle 11g R2 on OEL (x64)..
    Can anyone explain me ? I'm getting stuck in this situation..
    P.S : I haven't multiplexed current ORL group files...

    Javid wrote:
    Although i have removed current online redo log file in linux os (Oracle Linux),when i type "commit" it says that "commit complete".
    Is this fair for this princip?*:" if Only when all redo records associated with a given transaction are safely on disk in the online logs is the user process notified that the transaction has been committed."*
    I think that it can lead to loss of data in some cases..I'm using Oracle 11g R2 on OEL (x64)..
    Can anyone explain me ? I'm getting stuck in this situation..
    In *nix, a file that is open by a process isn't really deleted until the process that has it completes.  So even though you 'deleted' a redo log, oracle is still holding it.  As soon as you stop your database (maybe even as soon as the db does a log switch) the redo will really be gone and no longer available.  consider the implications for archive logging.
    P.S : I haven't multiplexed current ORL group files...You need to fix that. the online logs are the achilles heel of the database. That's why it is standard practice to multiplex them.

  • Log files not being removed.

    Hello,
    I've upgraded an application from BerkeleyDB 5.1.25 to 5.3.21, and after that, log files are no more automatically removed. This is the only change in the application. It's an application written in C.
    The environment of the application is created with the flag DB_LOG_AUTO_REMOVE
    dbenv->log_set_config(dbenv, DB_LOG_AUTO_REMOVE, TRUE).
    The application has a thread to periodically checkpoint the data
    dbenv->txn_checkpoint(dbenv, 0, 0, 0)
    So far, so good, with version 5.1.25, this was enough to remove unused log files (I don't need to be able to do catastrophic recovery). But this doesn't work anymore with version 5.3.21.
    I I run db_archive (no options), it shows nothing, suggesting that all log files are still needed. But if I run db_hot_backup on the database, all but the last logfiles are removed (on the backup) as wanted.
    Rem : Usually, I don't want to run db_archive or any external tool, to remove unused log files. I hope what is inside the application is enough to remove unused log files.
    Is this something known, something changed or can you suggest me something to look for ?
    Thanks for your help
    José-Marcio
    Edited by: user564597 on Mar 24, 2013 6:35 PM
    Edited by: user564597 on Mar 24, 2013 6:38 PM
    Edited by: user564597 on Mar 25, 2013 8:57 AM

    thank you for giving us a test program. This helped tremendously to fully understand what you are doing. In 5.3 we fixed a bug dealing with the way log files are archived in an HA environment. What you are running into is the consequences of that bug fix. In the test program you are using DB_INIT_REP. This is the key to use that you want an HA environment. With HA, there is a master and some number of read only clients. By default we treat the initiating database as the master. This is what is happening in our case. In an HA (replicated) environment, we cannot archive log files until we can be assured that the clients have applied the contents of that log file. Our belief is that you are not really running in an HA environment and you do not need the DB_INIT_REP flag. In our initial testing where we said it worked for us, this was because we did not use the DB_INIT_REP flag, as there was no mention of replication being needed in the post.
    Recommendation: Please remove the use of the DB_INIT_REP flag or properly set up an HA environment (details in our docs).
    thanks
    mike

  • What files can I remove after installation?

    I've just finished downloading and installing CS5.5 Production Premium.
    The program files take up about 2 GB, but there's another 9.7 GB of files that seem to have been used for installation. They are in folders called "deploy", "packages" "payloads" and "resources."
    Can I remove those other files? 
    Thanks.
    Chart Man

    Hi,
    Prior to installation, the required files are extracted to a folder which contain the folders you have mentioned above.
    You can delete the extracted files and that should not interfere with the application.
    Do verify that this is the folder that you initiated installation from by clicking on the set-up option before deleting.
    Hope this helps.

  • Which log file contains System.err output?

    If I start weblogic using startWebLogic.cmd then output sent to System.err gets
    output to the console window that opens up. However, if I instead start weblogic
    as a service, nothing sent to System.err gets output to the weblogic.log file.
    Where does it go?

    Hi there,
    My message was borne of 2 days frustration out of nearly a year of smooth operations with Oracle App Server. Unfortunately I let my mouth (or fingers) run off with those frustrations and made a post that was innappropriate and un-necessary and like every bad workman I blamed my tools.
    My apologies for that. Having found where the OPMN logs are stored (and it's pretty obvious to anyone who isn't seeing through a red mist!) I have now fixed my issue pretty quickly.
    Thanks for your patience glin - OAS and JDev together have in this past year have served me well and as you say are in general pretty straight forward to use. (My frustration was due to J2EE ClassLoaders, they always cause me some kind of headache somewhere!)
    Best Regards,
    Happy Holidays!

  • Which Java updates can I remove?

    I got these updates, but I assume I don't need to have all of them installed for Java to work. Which of these can I uninstall?
    http://i33.tinypic.com/256z42x.jpg
    Also, is it better to uninstall from the Control Panel or use an uninstaller like Revo Uninstaller?

    Use Windows' Uninstall facilitiy to uninstall anything you don't want. If you uninstall all Java installs, then Java programs will not run. If you uninstall a version that is required by a certain Java program, then that program will not run. The current Java JRE is available from www.java.com.

  • Which caches and temporary files can I remove

    Using Drive Genius 3 I have identified lots of cache and temporary files they say I can delete. Is there any concern with removing them?

    No, go right ahead.

  • Deleted mysql binary log files - can't start mysql

    Hi all,
    I had mysql running and used it for quite a while.
    Since my disk ran out of space, I deleted all the mysql-bin.0000* files in the mysql data folder and configured that mysql should not use binary logs anymore.
    Quite a mistake I assume; since now I can't start mysql(d) anymore.
    I've tried a lot by now:
    - re-installed mysql
    - deleted everything in the mysql data folder
    But I'm a bit stuck - and can't repair it anymore.. (there is not data loss, everything is backed up - that's not the problem).
    Can someone please guide me in a good direction?
    Running Arch Linux (systemd).
    systemctl status mysqld:
    Mar 08 13:12:34 arch systemd[1]: mysqld.service: control process exited, code=exited status=203
    Mar 08 13:12:34 arch systemd[1]: Failed to start MySQL database server.
    Mar 08 13:12:34 arch systemd[1]: Unit mysqld.service entered failed state
    Mar 08 13:12:34 arch systemd[1]: mysqld.service holdoff time over, scheduling restart.
    Mar 08 13:12:34 arch systemd[1]: Stopping MySQL database server...
    Mar 08 13:12:34 arch systemd[1]: Starting MySQL database server...
    Mar 08 13:12:34 arch systemd[1]: mysqld.service start request repeated too quickly, refusing to start.
    Mar 08 13:12:34 arch systemd[1]: Failed to start MySQL database server.
    Mar 08 13:12:34 arch systemd[1]: Unit mysqld.service entered failed state
    Mar 08 14:32:24 arch systemd[1]: Stopped mysqld.service.
    The data folder /var/lib/mysql is totally empty (which is - I assume - not good...).
    Thanks in advance
    Disclaimer: I tried for many hours now, but since I'm quite new - I don't have a clue anymore what to do.

    These are systemd, not mysql errors, and are quite useless as such -- you already know that mysql does not work Look for /var/log/mysqld.log or $datadir/<hostname>.err -- next time, of course, 'cos there's just one thing to do now: restore your mysql data folder, as there should be much more than binary logs Or, should you prefer to start from scratch, try to use mysql_install_db and then start mysql again.
    For future reference, you can safely delete old binary logs from inside mysql using PURGE MASTER LOGS command, and/or consider using expire_logs_days config option.

Maybe you are looking for

  • Check payment

    Hi Experts, I maintained IT 0009 for mode of payment (cheque).How to do the postings and release the cheque. Thanks in  Adavance.

  • ALSB 2.6 Error Accessing Test Configuration - Test Console

    When trying to use the Test Console (bug) for any Proxy Service I get the following message. An unexpected error occurred accessing the test service: java.net.ConnectException: t3://(domain name): No known valid port for: 'Default[t3]:t3(t3):null:720

  • Star type icon error in flash player

    Hi All, We have created dashboards in a tool (Xcelsius) which exports them in SWF format. The dashboard is then run in the browser. The image/sign displayed in the marked area is sort of a error we get, which freezes the dashboard. No text errors are

  • Download problem w/Elements 10 trial

    I started downloading Elements 10  7 hours ago.  Came back to find the computer off because of inactivity & download only 1/3 completed.  What now?

  • Can't update document directory in Pages 5

    In Pages 4.3 I could update my directory by clicking into the directory and select "update". This is not possible in Pages 5.0. Anaother important feature that has gone.