LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-15-2016, 12:59 AM   #1
chaimblonder
LQ Newbie
 
Registered: Jul 2010
Posts: 9

Rep: Reputation: 1
Application log filtering Ubuntu


i have tacacs+ server installed on Ubuntu 14.04.
the application log file is on /var/log/tac_plus.log
I am trying to filter out certain messages from this log file.
these messages are a result of a monitoring this server every 30 seconds and
it fils the log file. here are the messages:
Mon Aug 15 08:45:46 2016 [8151]: connect from 10.20.8.8 [10.20.8.8]
Mon Aug 15 08:45:46 2016 [8151]: 10.20.8.8 : fd 3 eof (connection closed)
Mon Aug 15 08:45:46 2016 [8151]: Read -1 bytes from 10.20.8.8 , expecting 12
i created a 10-tacacs-log.conf file under /etc/rsyslog.d/ that contains the following:
:msg, contains, "10.20.8.8" ~
it does not seem to work.
Any help on this would be greatly appreciated.

thanks
 
Old 08-16-2016, 04:20 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by chaimblonder View Post
it does not seem to work.
Have you checked the logs on the receiving server?
Have you tried sniffing the traffic?

Install tcpdump if not installed.
Code:
sudo apt-get install tcpdump
and now we sniff traffic from the sender:
Code:
sudo tcpdump -nn -i eth0 src 10.20.8.8  and port 514 -w sniff-10.20.8.8.pcap
Let it run for 10 minutes'ish and you should see traffic.

If not. Ctrl+C to cancel the sniff and then try
Code:
telnet 10.20.8.8 161
also try from the sending server
Code:
telnet <syslog_receiver> 161
and let us know the results of the sniff and the telnet from/to either host.
 
Old 08-18-2016, 01:47 AM   #3
chaimblonder
LQ Newbie
 
Registered: Jul 2010
Posts: 9

Original Poster
Rep: Reputation: 1
Thanks "Habitual" for your response.
i am constantly having these messages on the server.
i know they reach it and it is fine.
i just want to filter these specific messages from being written to the log file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Application-level filtering? (e.g. Little Snitch) drgibbon Slackware 2 06-25-2015 04:13 AM
Firewall Linux distribution with application layer filtering? enyawix Linux - Security 1 10-18-2011 02:35 PM
Personal firewall with application filtering (similar to ZoneAlarm) alvevind Linux - Security 3 02-04-2007 01:30 PM
email application with account filtering - Such a thing? clove Linux - Newbie 7 11-30-2003 07:55 AM
I need a Linux Content/Application Filtering Firewall rootking Linux - Networking 1 10-18-2003 07:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration