Solved

syslog config in linux

Posted on 2014-09-20
5
208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 62

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 62

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.
Suggested Courses

734 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