{"id":326,"date":"2012-12-19T17:45:02","date_gmt":"2012-12-19T14:45:02","guid":{"rendered":"http:\/\/www.linux-destek.com\/?p=326"},"modified":"2012-12-19T17:45:02","modified_gmt":"2012-12-19T14:45:02","slug":"buyuk-log-dosyalarini-bulmak","status":"publish","type":"post","link":"https:\/\/www.48k.com.tr\/buyuk-log-dosyalarini-bulmak\/","title":{"rendered":"Plesk Linux Sunucularda b\u00fcy\u00fck log dosyalar\u0131n\u0131 bulmak"},"content":{"rendered":"

Kontrol edilmedi\u011finde siz hi\u00e7 fark\u0131na varmadan sunucunun disk alan\u0131n\u0131 bitirebilecek log dosyalar\u0131 olu\u015fabilir.\u00d6rne\u011fin plesk hosting panelde t\u00fcm vhostlar\u0131n error log dosyalar\u0131n\u0131 \u015fu \u015fekilde s\u0131ralatabilirsiniz<\/p>\n

\"Selection_013\"<\/a><\/p>\n

Farkl\u0131 sistem veya ispconfig,cpanel,directadmin gibi farkl\u0131 yaz\u0131l\u0131mlar\u0131n kurulu oldu\u011fu sunucularda dosya yollar\u0131 farkl\u0131l\u0131k g\u00f6sterebilir.Yukar\u0131da verdi\u011fimiz \u00f6rnek 9.x serisi Linux i\u00e7in olan Plesk s\u00fcr\u00fcmleri i\u00e7in ge\u00e7erlidir.<\/p>\n

Komut \u015fu \u015fekilde;<\/strong><\/p>\n

find \/var\/www\/vhosts\/*\/statistics\/logs\/error_log -exec ls -la {} \\; | awk ‘{print $5 $9}’ | sort -n<\/p>\n

E\u011fer t\u00fcm error log lar\u0131 silmek<\/strong><\/span> isterseniz yine yukar\u0131daki sisteme g\u00f6re \u015f\u00f6yle bir s\u00f6z dizimi i\u015finize yarayacakt\u0131r.<\/p>\n

find \/var\/www\/vhosts\/*\/statistics\/logs\/error_log -exec rm {} \\;<\/p>\n

G\u00fcncel Not:<\/p>\n

Plesk 12.x ve Onyx de log dosyalar\u0131 hem statistics\/logs hem de webdizini\/logs alt\u0131nda g\u00f6r\u00fcnmektedir.Bu dosyalar dosya sisteminden hard (sembolik) link ile ba\u011flanm\u0131\u015ft\u0131r.Yani asl\u0131nda ayn\u0131 dosyad\u0131r.Bu durumda komutu \u015fu \u015fekilde uygulayabilirsiniz;<\/p>\n

find \/var\/www\/vhosts\/logs\/error_log -exec ls -la {} \\; | awk ‘{print $5 $9}’ | sort -n<\/p>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

Kontrol edilmedi\u011finde siz hi\u00e7 fark\u0131na varmadan sunucunun disk alan\u0131n\u0131 bitirebilecek log dosyalar\u0131 olu\u015fabilir.\u00d6rne\u011fin plesk hosting panelde t\u00fcm vhostlar\u0131n error log dosyalar\u0131n\u0131 \u015fu \u015fekilde s\u0131ralatabilirsiniz Farkl\u0131 sistem veya ispconfig,cpanel,directadmin gibi farkl\u0131 yaz\u0131l\u0131mlar\u0131n kurulu oldu\u011fu sunucularda dosya yollar\u0131 farkl\u0131l\u0131k g\u00f6sterebilir.Yukar\u0131da verdi\u011fimiz \u00f6rnek 9.x serisi Linux i\u00e7in olan Plesk s\u00fcr\u00fcmleri i\u00e7in ge\u00e7erlidir. Komut \u015fu \u015fekilde; find \/var\/www\/vhosts\/*\/statistics\/logs\/error_log -exec […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[356,358],"tags":[411,388,412,413,414,415,397,416],"class_list":["post-326","post","type-post","status-publish","format-standard","hentry","category-plesk-kucuk-ipuclari","category-web-sunuculari","tag-access_log","tag-apache","tag-awk","tag-buyuk-log-dosyalari","tag-error_log","tag-find","tag-plesk","tag-shell"],"_links":{"self":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/posts\/326"}],"collection":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/comments?post=326"}],"version-history":[{"count":0,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/posts\/326\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/media?parent=326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/categories?post=326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.48k.com.tr\/wp-json\/wp\/v2\/tags?post=326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}