LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-12-2016, 11:01 AM   #1
LVsFINEST
Member
 
Registered: Aug 2006
Posts: 99

Rep: Reputation: 21
Syslog messages randomly logging to std out


My ssh sessions keep getting over ran by syslog messages spewing to std out and I cannot figure out why.

The server runs syslog-ng and ingests remote syslogs from many devices on the network. Everything logs to a file and/or forwards to another syslog daemon, however there is *NO* config to log to std out.

Oddly, it doesn't spew every syslog message to std out but rather only ONE specific syslog message. I'm wondering if maybe there are some characters within this particular message that are somehow making it log to std out...? The messages originate from a NetScreen firewall and samples are below.

In any case, this syslog server has been fine for 6+ years and this phenomena has only appeared within the past couple of weeks. The NetScreen firewall has had the same config for years as well.

I have checked the syslog-ng.conf file for syntax errors and non are reported.

I verified syslog-ng was also not updated in any recent yum updates either.

Does anybody have any ideas on how I can track down WHY messages are spewing to std out and/or how to cease this from happening?


--Sample Messages

From syslog-ng:
Jul 12 08:18:51 firewall02 firewall02: NetScreen device_id=firewall02 [Root]system-emergency-00005: SYN flood! From 195.62.53.194:49406 to xxx.xxx.xxx.xxx:48708, proto TCP (zone Untrust int untrust). Occurred 1 times. (2016-07-12 08:18:42)


From std out:
2016 Jul 12 08:18:51 firewall02 NetScreen device_id=firewall02 [Root]system-emergency-00005: SYN flood! From 195.62.53.194:49406 to xxx.xxx.xxx.xxx:62403, proto TCP (zone Untrust int untrust). Occurred 1 times. (2016-07-12 08:18:42)


Thanks in advance.
 
Old 07-12-2016, 11:03 AM   #2
Tarikc
Member
 
Registered: May 2009
Distribution: CentOS, RedHat, Ubuntu
Posts: 68

Rep: Reputation: 4
I'm taking a wild guess.

But system-emergency-00005 is very urgent for real and you really need to know about it.

So the system send it in front of you to take action.

Cheers!
 
1 members found this post helpful.
Old 07-12-2016, 12:34 PM   #3
LVsFINEST
Member
 
Registered: Aug 2006
Posts: 99

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by Tarikc View Post
I'm taking a wild guess.

But system-emergency-00005 is very urgent for real and you really need to know about it.

So the system send it in front of you to take action.

Cheers!

Thank you sir for the nudge in the right direction! You're absolutely correct and I apparently lied about my syslog-ng.conf containing no stdout clauses.


Offending lines in syslog-ng.conf:

Code:
destination d_mlal { usertty("*"); };
filter f_emerg { level(emerg); };
log { source(s_all); filter(f_emerg); destination(d_mlal); };


It blows my mind I have never ran into this before though. Either these SYN flood logs have never been generated before (doubtful) or they never generated in the volume they're generating now so I didn't notice them previously (more likely).

In any case, problem solved.
 
  


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
logging messages from my program doesn't reach /var/log/messages rajas Programming 4 09-18-2011 12:38 AM
[SOLVED] Logging ssh messages in a separate file using syslog-ng satya123 Linux - Newbie 1 07-02-2011 08:01 AM
Logging syslog messages from a particular IP to individual file simplified Linux - Server 7 03-12-2009 02:03 PM
syslog-ng -> syslog-ng logging, how to troubleshoot sir-lancealot Linux - Server 1 01-24-2009 06:07 AM
syslog and firestarter - log messages to another file than messages mule Linux - Newbie 0 08-07-2003 03:35 AM

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

All times are GMT -5. The time now is 12:14 PM.

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