Konversi Inode & ID Proses menjadi Tanggal & Waktu

tail -f /var/log/qpsmtpd/current

adalah perintah standard untuk menampilkan isi file log, namun yang tampilkan dilayar berupa angka-angka yang membuat pusing. untuk menampilkannya dalam format tanggal dan waktu, perlu ditambahkan perintah lain

tail -f /var/log/qpsmtpd/current | /usr/local/bin/tai64nlocal

contoh :

[root@r ~]# tail -f /var/log/qpsmtpd/current
@4000000045bac9f61682c77c 7211 450 Connecting host started transmitting before SMTP greeting
@4000000045bac9f70cbd0644 2938 cleaning up after 7211
@4000000045baca02251d6d3c 7216 Accepted connection 0/40 from 24.87.70.123 / S0106001372ddc1f8.vn.shawcable.net
@4000000045baca02251d80c4 7216 Connection from S0106001372ddc1f8.vn.shawcable.net [24.87.70.123]
@4000000045baca0225b603bc 7216 running plugin (connect): check_earlytalker
@4000000045baca0225b6135c 7216 check_earlytalker plugin: remote host started talking before we said hello [24.87.70.123]
@4000000045baca0225b61f14 7216 Plugin check_earlytalker, hook connect returned DENYSOFT, Connecting host started transmitting before SMTP greeting
@4000000045baca0225b62acc 7216 450 Connecting host started transmitting before SMTP greeting
@4000000045baca0225b6329c 7216 Could not print [450 Connecting host started transmitting before SMTP greeting]: Connection reset by peer
@4000000045baca0313cdd10c 2938 cleaning up after 7216

[root@r ~]# tail -f /var/log/qpsmtpd/current | /usr/local/bin/tai64nlocal
2007-01-27 11:02:02.290996500 7583 trying to get config for morerelayclients
2007-01-27 11:02:02.292013500 7583 Plugin check_relay, hook connect returned DECLINED,
2007-01-27 11:02:02.292612500 7583 running plugin (connect): check_norelay
2007-01-27 11:02:02.293363500 7583 trying to get config for norelayclients
2007-01-27 11:02:02.294848500 7583 Plugin check_norelay, hook connect returned DECLINED,
2007-01-27 11:02:02.295484500 7583 trying to get config for smtpgreeting
2007-01-27 11:02:02.302775500 7583 220 mailserver.florasawita.com ESMTP
2007-01-27 11:02:02.303557500 7583 trying to get config for timeoutsmtpd
2007-01-27 11:02:02.304249500 7583 trying to get config for timeout
2007-01-27 11:02:05.170101500 2938 cleaning up after 7583




    Tinggalkan Balasan

    Isikan data di bawah atau klik salah satu ikon untuk log in:

    Logo WordPress.com

    You are commenting using your WordPress.com account. Logout / Ubah )

    Gambar Twitter

    You are commenting using your Twitter account. Logout / Ubah )

    Foto Facebook

    You are commenting using your Facebook account. Logout / Ubah )

    Foto Google+

    You are commenting using your Google+ account. Logout / Ubah )

    Connecting to %s


  • Calender

    Maret 2007
    M S S R K J S
        Apr »
     123
    45678910
    11121314151617
    18192021222324
    25262728293031
  • RSS Detik-inet

    • Sebuah galat telah terjadi; umpan tersebut kemungkinan sedang anjlok. Coba lagi nanti.
  • udah diintip

    • 409,307 kali

%d blogger menyukai ini: