Solved

syslog config in linux

Posted on 2014-09-20
5
200 Views
Last Modified: 2014-10-07
How to define syslog configuration in Redhat Linux to achieve

All messages except Mail/News/IPtables  redirect to another server
0
Comment
Question by:bt74
  • 2
  • 2
5 Comments
 
LVL 23

Expert Comment

by:savone
ID: 40334306
You can add the following to rsyslog.conf.  This will forward evrything except mail and news.  IPtables is not logged by default. Of course edit the IP address to make it the IP address of your remote server.

*.*;mail.none; news.none         @10.0.0.10:514
0
 
LVL 61

Expert Comment

by:gheist
ID: 40335035
iptables logs at kern.debug
so add kern.info to same line:
*.*;mail.nonelnews.none;kern.info @10.0.0.10
0
 

Author Comment

by:bt74
ID: 40335970
I believe kernel.info will be 99% of iptable messages. is that correct. so in the below suggestion, all iptables messages are redirecting to the remote host.

so instead of
*.*;mail.nonelnews.none;kern.info @10.0.0.10

can i use this way.

*.*;mail.nonelnews.none;kern.!info @10.0.0.10

to get the result.  our target is all messages except mail/news/iptables.


Please correct me.
0
 
LVL 61

Accepted Solution

by:
gheist earned 500 total points
ID: 40336010
More like !=kern.info
I see iptables in kern.debug (always kern., sol maybe kern.warn can pass or so)
Rest looks fine.
0
 

Author Comment

by:bt74
ID: 40366048
hh
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux "time" command output redirection 16 114
linux crontab output 3 66
Adding more CPU cores to a Linux VM 5 58
is my large folder zipped corrupted 4 49
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now