Logging, Syslog and Log Anaylsys Forums
July 30, 2010, 09:43:06 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
   Home   WIKI BLOG Help Search Recent Topics GoogleTagged Login Register  
Pages: [1]
  Print  
Author Topic: handle log by syslog  (Read 1020 times)
reaky
Newbie
*
Offline Offline

Posts: 4


View Profile Email
« on: August 04, 2009, 04:24:00 am »

Dears,
 I have a file that logs all bash commands for users, And I have syslog service runing in the server and send all syslog messages to remote syslog server
Now I want syslog to handle this file and send all updates happened on it to the remote syslog server, Can anyone help
Logged
Admin
Administrator
Newbie
*****
Offline Offline

Posts: 146


View Profile WWW
« Reply #1 on: August 07, 2009, 03:39:43 pm »

A quick and dirty way would be "tail -f /var/log/yourlogfile.log |logger -h 192.168.0.1"
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!