Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
International Rescue Committe

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 355 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

evlogmgr



SYNOPSIS

       evlogmgr   -c | --compact  filter
        [ -F | --force ] [ -C | --compr-bak ]
        [[ -p | --private  ] | [ -l | --log  srcfile  ]]

       evlogmgr   -f | --fix
        [[ -p | --private  ] | [ -l | --log  srcfile  ]]

       evlogmgr   -s | --show-status  filter
        [[ -p | --private  ] | [ -l | --log  srcfile  ]]


DESCRIPTION

       The  evlogmgr command performs log management on the event
       log, on the private log, or optionally, on a log file that
       you  specify.  You  also  specify  which  events are to be
       deleted. The space freed by deleted events is  reused  for
       undeleted events (a process referred to as compaction) and
       the log file is truncated, thus reducing its overall size.

       You must have root permission to use this command.


OPTIONS

       -c, --compact filter
              Deletes event records in the event log matching the
              specified filter, fills space freed by deleting the
              event  records  (by  moving  later records into the
              free space), and then truncates the log thus estab­
              lishing  a  new  write  offset  for new events. The
              sequential order of events  in  the  event  log  is
              maintained  during  this process and the record ids
              of the remaining event records are left  unchanged.
              See  the  evlquery  man  page  for more information
              about the filter.

              Before the compaction process begins, a backup copy
              of  the  log file is created if space is available.
              Following successful compaction, the backup copy is
              deleted. If the evlogmgr command is issued from the
              command line, and the user types Ctrl-C,  then  the
              active  log  file is restored from the backup copy.
              In the event that the system  reboots  before  com­
              paction  completes, the active log file is restored
              from the backup copy (after reboot).

              Unless the --private or --log options are used, log
              management is performed on /var/evlog/eventlog.

              The  --force  option  should only be used as a last
              resort. If space  is  not  available  to  create  a
              backup  (compressed  or  uncompressed),  then  this
              option is not valid in combination with  the  --log
              option.

              The  --log  option specifies an alternate log file,
              srcfile, to be compacted. This option is not  valid
              in combination with the --private option.

       -f, --fix
              This option is used to repair a corrupted log file,
              and is required only in  cases  where  the  --force
              option was used and the log management tasks termi­
              nated before completion.

              Each record in the event log is validated, and  any
              records  that  are  deemed  invalid are deleted and
              replaced by valid records in the log.  The  command
              reports the total number of bytes deleted.

              Some  of  the error messages that will indicate the
              need to repair the log include:

              ˇ Input/output error (from evlview)

              ˇ Failed to count record for deletion
                  (from evlogmgr -s)

              ˇ Failed to compact log  (from evlogmgr -c)

              Unless the --private or  --log  options  are  used,
              repair is performed on /var/evlog/eventlog.

              The  --private  option specifies that repair should
              be performed on /var/evlog/privatelog. This  option
              is  not valid in combination with the --log option.

              The --log option specifies an alternate  log  file,
              srcfile,  to  be repaired. This option is not valid
              in combination with the --private option.

       -s, --show-status filter
              Shows how many records in the event log  match  the
              filter,  and  shows  the total number of records in
              the log. See the evlquery man page for more  infor­
              mation about the filter.

              Unless  the  --private  or  --log options are used,
              status is shown for /var/evlog/eventlog.

              The --private option specifies that  status  should
              be  shown for /var/evlog/privatelog. This option is

              0 2 * * * root /sbin/evlogmgr -c 'age > "30d"'

              # Daily at 1 AM remove recds w/ sev=DEBUG

              0 1 * * * root /sbin/evlogmgr -c "severity=DEBUG"

       Example 2
              Issuing the following command:

                 evlogmgr -c 'severity=DEBUG' -C

              might result in the following events being appended
              to the log:

              recid=589,  size=74, format=STRING, event_type=0x2,
              facility=LOGMGMT,    severity=NOTICE,     uid=root,
              gid=root,  pid=18653,  pgrp=18653,  time=Thu 09 May
              2002 12:59:08 PM PDT, flags=0x0, thread=0x400, pro­
              cessor=0   Log  compaction  on  /var/evlog/eventlog
              starts at Thu May 09 12:59:08 2002

              recid=591, size=69, format=STRING,  event_type=0x3,
              facility=LOGMGMT,     severity=NOTICE,    uid=root,
              gid=root, pid=18653, pgrp=18653,  time=Thu  09  May
              2002 12:59:09 PM PDT, flags=0x0, thread=0x400, pro­
              cessor=0  Log  compaction  on   /var/evlog/eventlog
              ended. 48 events were removed.

       Example 3
              Issuing the following command:

                 evlogmgr -s 'severity=DEBUG'

              might display the following:

                 Total number of records is 294.
                 Number of records matching the filter is 48.
                 Log file size would be reduced by 5.00 kbytes

       Example 4
              Issuing the following command:

                 evlogmgr --fix

              might display the following:

                Found  a corrupted event record. Trying to resync
              with next good record...

                                                       evlogmgr()

An undefined database error occurred. SELECT distinct pages.pagepath,pages.pageid FROM pages, page2command WHERE pages.pageid = page2command.pageid AND commandid =


  
Help us cut cost by not downloading the whole site!
Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and therefore is expressedly prohibited. For more details on this, take a look here

Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
The Linux Tutorial welcomes your suggestions and ideas.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds