النتائج 1 إلى 5 من 5

الموضوع: Ask for command in redhat linux to see logs date

  1. #1
    عضو الصورة الرمزية msazzam
    تاريخ التسجيل
    Jan 2008
    المشاركات
    151
    معدل تقييم المستوى
    0

    Wink Ask for command in redhat linux to see logs date

    Dearr all

    I have access to login with system that shows more logs .

    as we know <cat> command it if for show all the logs lines .
    my question is to do command to see all the logs with time .
    for example :
    I want to see logs from 03:00:00 to 10:00:00 .
    the command I use to see the normal log is :
    cat catrx*/HCA/20081220
    so where can I add the new command to see the time for logs between period time .

  2. #2
    عضو الصورة الرمزية UNIXY
    تاريخ التسجيل
    Jan 2007
    المشاركات
    292
    معدل تقييم المستوى
    0

    رد: Ask for command in redhat linux to see logs date

    كود:
    last -t YYYYMMDDHHMMSS
    YYYY = السنة
    MM = الشهر
    DD = اليوم
    HH = الساعه
    MM = الدقائق
    SS = ثواني

    مثال لعرض لعرض من قام بتسجيل الدخول في تاريخ 2009 , 2 يناير, الساعة 44;00;12
    يكون الأمر:
    كود:
    last -t 20090102120044



    connecting......[root@dark-side /] # egrep -i -v [~(~connected)] /var/log/messages >> /var/log/messages

    You cant see me but I can see you :)

  3. #3
    عضو الصورة الرمزية msazzam
    تاريخ التسجيل
    Jan 2008
    المشاركات
    151
    معدل تقييم المستوى
    0

    رد: Ask for command in redhat linux to see logs date

    Dear Sir ..
    I think you are professional and I hope to undersatnd what I need exactly ?Suppose you have system create logs every mille seconds .and you need to see all the logs from 3 am to 8 am ?
    I mean all the logs in this two times?not all the logs in that time .

    please if you can help .
    thanks .

  4. #4
    عضو الصورة الرمزية UNIXY
    تاريخ التسجيل
    Jan 2007
    المشاركات
    292
    معدل تقييم المستوى
    0

    رد: Ask for command in redhat linux to see logs date

    I can't think of any command that does what you want, maybe you should consider writing a shell script that does it for you
    btw its impossible to just orint out who logged in spicific time without choosing year, month, day and hour

    other wise you might wanna digg up some more in the manual pages
    I'm sorry can't help

    Peace out



    connecting......[root@dark-side /] # egrep -i -v [~(~connected)] /var/log/messages >> /var/log/messages

    You cant see me but I can see you :)

  5. #5
    عضو الصورة الرمزية msazzam
    تاريخ التسجيل
    Jan 2008
    المشاركات
    151
    معدل تقييم المستوى
    0

    رد: Ask for command in redhat linux to see logs date

    ok .. i think u r true ,that is only the solution to my status ,and I should create script to see the logs between two times .
    anyway thanks for ur concern and help .

المواضيع المتشابهه

  1. حمل الان: Redhat Enterprise Linux v6 x86 64 DVD Full ISO
    بواسطة redha360 في المنتدى الأرشيف
    مشاركات: 23
    آخر مشاركة: 10-11-2013, 09:13
  2. اماكن اختبارت linux RedHat في مصر ؟
    بواسطة kotaa في المنتدى الأرشيف
    مشاركات: 5
    آخر مشاركة: 28-02-2012, 18:34
  3. كتاب linux full command reference مرجع كامل لكل اوامر Linux
    بواسطة bloodyelf في المنتدى الأرشيف
    مشاركات: 1
    آخر مشاركة: 02-12-2011, 04:26
  4. linux+ or redhat system engeneer
    بواسطة ja3com في المنتدى منتدى الشهادات العام
    مشاركات: 3
    آخر مشاركة: 28-12-2009, 05:17
  5. Redhat Linux RHCE CramSession حمله
    بواسطة aldo في المنتدى الأرشيف
    مشاركات: 1
    آخر مشاركة: 08-11-2004, 11:23

الكلمات الدلالية لهذا الموضوع

المفضلات

ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •