Linux Mint Türkiye

Linux Mint Destek => Kurulum Öncesi ve Sonrası => Konuyu başlatan: istanbul - 19 Şubat 2014, 19:19:24

Başlık: sistem log larını kapatmak
Gönderen: istanbul - 19 Şubat 2014, 19:19:24
Selamlar,

Linux üzerinde /var içinde tutulan logları iptal etmek istiyorum, sistem bu logları hiç tutmasın bunu nasıl yapabiliriz.

Mint Petra 16 KDE kullanıyorum.
Başlık: Ynt: sistem log larını kapatmak
Gönderen: Danny - 19 Şubat 2014, 20:20:02
Kod: [Seç]
sudo gedit /etc/logrotate.conf
içeriğini görebilirmiyiz ?
Başlık: Ynt: sistem log larını kapatmak
Gönderen: istanbul - 19 Şubat 2014, 22:57:57
Kod: [Seç]
# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0660 root utmp
    rotate 1
}

# system-specific logs may be configured here

/var içinde /tmp   /backups /log   /cache gibi klasörler var bunların içini doldurup duruyor. Masaüstü resmine kadar koyuyor. disk dolmuştu bunları temizledim ortalama 5GB boşu boşuna biriktirmiş. Hiç bir işimi görmüyor ve sonuçta bunları tutmak için sistem kaynağıda tüketiyor. Kapatırsam performans artışı olur diye düşünüyorum.
Başlık: Ynt: sistem log larını kapatmak
Gönderen: FurkanYC - 20 Şubat 2014, 15:01:43
Nerede olursa olsun şu tmp, backups, log, cache dosyalarından hiç hoşlanmıyorum. Konunun takipçisiyim
Başlık: Ynt: sistem log larını kapatmak
Gönderen: Danny - 20 Şubat 2014, 16:49:12
Kod: [Seç]
# see "man logrotate" for details
# rotate log files weekly
# weekly

# keep 4 weeks worth of backlogs
# rotate 1

# create new (empty) log files after rotating old ones
# create

# uncomment this if you want your log files compressed
#compress

# packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0660 root utmp
    rotate 1
}

# system-specific logs may be configured here

olarak değiştirebilirmiyiz bakalım loglamaya devam edecek mi ?
Başlık: Ynt: sistem log larını kapatmak
Gönderen: istanbul - 20 Şubat 2014, 17:35:13
Yok işe yaramadı.
Sistemi kullandıkça yine log cache tmp dizinleri doldurmaya başlıyor.
Başlık: Ynt: sistem log larını kapatmak
Gönderen: Danny - 20 Şubat 2014, 17:41:02
o halde dosyayı eski haline getirelim. şuan iş yerindeyim test edemiyorum ama

activity-log-manager isimli paket kurulup ayarlama yapılabilir sanırım.
Başlık: Ynt: sistem log larını kapatmak
Gönderen: istanbul - 20 Şubat 2014, 19:23:17
activity-log-manager i kurdum ama sanırım o ubuntu için belge logları vs. için.

Bu klasörülerin içini sildiğimde sistem çalışıyor ama bazı yerler saçmalaya başlıyor. Örneğin apache2 nin oluşturduğu log ve cacheleri sildigimde apache çalışmaz hale geliyor.

Sanırım her log tutan uygulamayı kendi ayarlarından kapatmak gerek.