Solved

syslog config in linux

Posted on 2014-09-20
5
194 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

708 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

20 Experts available now in Live!

Get 1:1 Help Now