Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Sep 2009
    Posts
    45

    Default Last command doesn`t show all connections

    Hello !

    i have 10 websites based on WHM , we are not selling share hosting and using server only for our company`s websites

    i have never removed my Logs and i didn`t update Apache for long time !

    when i check the "Last "Command all logs has started from 1st-Oct is it mean someone has access to our server and he has deleted the Logs ? (using this server since 2006)

    However , history has not removed and i couldn`t find any command which could deleted my logs ,

    it might be problem ? of course i couldn`t find anything in history but they could use MC to remove something

    just let me know how to "Last" logs could be deleted !!

    Thank You
    Last edited by jestin_virtual; 10-10-2009 at 02:57 PM.

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    In your WHM, top left, type in the word rotation. Click the single result shown to check your log rotation settings the system handles for you. Your logs may simply have been rotated.

    Older backed up logs for many things can be found in /var/log/ for example messages log is backed up to be messages.1 (or .2 .3 or .4)

  3. #3
    Member
    Join Date
    Sep 2009
    Posts
    45

    Default

    rotate has not been set in WHM !


    and also please check the below settings :


    [root@server /]# cat /etc/logrotate.conf
    # 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

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

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

    # system-specific logs may be also be configured here.
    [root@server /]#

  4. #4
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by jestin_virtual View Post
    when i check the "Last" Command all logs has started from 1st-Oct is it mean someone has access to our server and he has deleted the Logs ? (using this server since 2006)

    However , history has not removed and i couldn`t find any command which could deleted my logs ,

    it might be problem ? of course i couldn`t find anything in history but they could use MC to remove something

    just let me know how to "Last" logs could be deleted !!
    The symptoms described are normal and indicates that your OS' logrotate configuration was (by default) setup to automatically rotate (archive and optionally compress) old wtmp log data. You can check if you have older copies of the wtmp log using the following command via root SSH access:
    Code:
    # ls -al /var/log/wtmp*
    cPanel/WHM uses "cpanellogd" for its own log rotation features and does not change your OS' logrotate configuration. You may, however, view or modify your OS' logrotate configuration at any time, preferably after making appropriate backup copies.

    Here is the path to logrotate's configuration file(s):
    /etc/logrotate.conf
    /etc/logrotate.d/

    On a test system with CentOS v4, the wtmp log file is configured for rotation directly within logrotate.conf, but to help check where it may be on your system you can run the following command:
    Code:
    # grep -HinR "wtmp" /etc/logrotate.*
    Please reference the following related "man" (manual) pages for more verbose documentation:
    Code:
    # man last
    # man wtmp
    # man logrotate

  5. #5
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by jestin_virtual View Post
    and also please check the below settings :

    [root@server /]# cat /etc/logrotate.conf
    # 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

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

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

    # system-specific logs may be also be configured here.
    [root@server /]#
    The quoted logrotate configuration is normal and comes with your OS installation and specifically the logrotate software package, (not cPanel/WHM). The specific entry for "/var/log/wtmp" indicates your logrotate configuration is set to rotate the log data used by "last" on a monthly basis; this is why when using "last" it appeared to reset or only go back as far as the 1st day of the month.

Similar Threads & Tags
Similar threads

  1. show httpd connections
    By Valuehosted in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-15-2008, 05:42 AM
  2. would broken smtp connections show in exim_mainlog?
    By spaceman in forum E-mail Discussions
    Replies: 4
    Last Post: 06-11-2007, 02:06 AM
  3. Status Doesn't Show Up
    By sbrad in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-04-2003, 11:12 AM
  4. Show Bandwidth Available command
    By rackio in forum Themes and Branding
    Replies: 11
    Last Post: 12-14-2002, 05:17 PM
  5. Why Doesn't my URL show up in the browser?
    By gamersad in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-06-2002, 08:59 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube