Solved

syslog config in linux

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Rate limit for DNS queries 7 83
SMB share across internet 15 64
EXCHANGE. LINUX, SYMANTEC MESSAGING GATEWAY 2 37
CLI command keep running after close 7 36
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

808 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