Find the answer to your Linux question:
Results 1 to 3 of 3
Hi friends....i have a proxy server (IPCOP 1.4.21) in which Urlfilter addon were installed. The logs of urlfilter are storing at /var/log/squidGuard/urlfilter.log file. Now we want to transfer these log ...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    3

    syslog server

    Hi friends....i have a proxy server (IPCOP 1.4.21) in which Urlfilter addon were installed. The logs of urlfilter are storing at /var/log/squidGuard/urlfilter.log file. Now we want to transfer these log automatically to our centralize log server. Pls help to write the script for the same...

    Thanks in advance...

  2. #2
    Linux Newbie unlimitedscolobb's Avatar
    Join Date
    Jan 2008
    Posts
    120
    Quote Originally Posted by rk_monde View Post
    Hi friends....i have a proxy server (IPCOP 1.4.21) in which Urlfilter addon were installed. The logs of urlfilter are storing at /var/log/squidGuard/urlfilter.log file. Now we want to transfer these log automatically to our centralize log server. Pls help to write the script for the same...
    How is your "centralized log server" configured? Do you just store logs as files there or do you have a special protocol by which a machine can do remote logging on the server?

    If your purpose is just transferring the log file to the server, then you should consider using scp(1): secure copy - Linux man page or rsync MAN Page , if your log file is really large and you don't rotate it sufficiently often. If you want the transfers to be done automatically, you may find using a cron daemon useful (Fcron : a periodical command scheduler for Unix and Linux systems and Anacron -- anac(h)ronistic cron -- a random choice).
    Last edited by unlimitedscolobb; 07-07-2010 at 10:53 AM. Reason: you -> your

  3. #3
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    As Hunter Thom told you when you posted essentially the same question a week ago:

    Quote Originally Posted by hunter_thom View Post
    Is SSH enabled on both machines? If so, I would suggest using SCP.

    This would be very simple. This would be a 2 line script (one for the shebang). Then you put it into cron.daily (if that runs at an acceptable time). Otherwise, you can setup your own cron configuration in /etc/crontab or a user cron configuration using the command 'crontab -e'.
    By the way, how is a "syslog server" involved? I don't see any mention of syslogd/rsyslogd in your scenario. Are you trying to transfer a file, or do remote syslogging?

Posting Permissions

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