Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, im trying to write a bash which would take log records from all my Red hat servers, from /var/log/messages for a previous week and store them in a separate ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2013
    Posts
    1

    Log management


    Hi,

    im trying to write a bash which would take log records from all my Red hat servers, from /var/log/messages for a previous week and store them in a separate txt file. Can you please help me, especially with the "previous week" log records export stuff..
    Thx

    Ivan

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,440
    Hi and welcome

    No need for bash.
    This task can be solved via syslog and logrotate.
    - have a central log server with enough disk space to hold the combined logs
    - configure its syslogd, and then the syslogd of all your client nodes
    - configure logrotate to weekly rotate the combined logs
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •