Local logs in files and remote logs in MySQL

This is the place for you, if you got rsyslog up and running but wonder how to make it do what you want.

Moderator: rgerhards

Local logs in files and remote logs in MySQL

Postby decibel83 » Sat Dec 06, 2008 1:50 pm

Hi.

Could you help me to understand how to configure Rsyslog to store the logs from the localhost in files, and the logs from the remote hosts only in the MySQL db (and not in files), please?
I read the documentation, but I didn't understand how is the exact syntax for make this...

Could you help me, please?

Thank you very much!
Bye.
decibel83
New
 
Posts: 8
Joined: Sat Oct 04, 2008 12:47 pm

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

Re: Local logs in files and remote logs in MySQL

Postby prakash.akumalla » Mon Dec 08, 2008 12:46 pm

Hai,

I think this will solve your problem.

if $FromHost == 'Remote_Host' then ommysql:localhost,Syslog,username,password
if $FromHost == 'local_Host' then /var/log/messages

Regards,
Prakash.
prakash.akumalla
Frequent Poster
 
Posts: 103
Joined: Thu Jun 26, 2008 2:37 pm

Re: Local logs in files and remote logs in MySQL

Postby celemiranda » Fri Dec 19, 2008 3:50 pm

Hi,

I use this:

:HOSTNAME, !contains, "localhost_name" ~


greetings.
celemiranda
New
 
Posts: 1
Joined: Fri Dec 19, 2008 3:22 pm

Google Ads



Return to Configuration

Who is online

Users browsing this forum: No registered users and 1 guest

cron