Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Squid saat ve Tarih Sorunu

    Scheduled Pinned Locked Moved Turkish
    2 Posts 2 Posters 628 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mehmetcan
      last edited by

      Arkadaşlar var klasörü içerisinde squid loglarını aldığımda tarih ve saat kısmı yok. Resimde de görüldüğü gibi.
      Metin belgesindeki rakam grupları nedir acaba?
      light squid kullanıyorum. tüm log kaydını tarih saat biçiminde nasıl alabiliriz?

      1 Reply Last reply Reply Quote 0
      • S
        sametyilmaznet
        last edited by

        Merhaba,

        Dosyanin 1.kolonundaki alan "1484288778.426" UNIX Time olarak kaydedilmektedir.  Aşağıdaki linkleri inceleyebilirsiniz.

        Şu komutu denemenizde fayda var.

        cat access.log | perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e'
        

        http://www.websitearaclari.com/unix-zaman-donusturucu.html

        Samet YILMAZ
        Blog : http://www.sametyilmaz.com.tr
        Facebook Grup : https://www.facebook.com/groups/pfsenseturkey
        E-Posta : sametyilmaz[at]yandex[dot]com

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.