LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-08-2017, 11:21 AM   #1
drams
LQ Newbie
 
Registered: May 2017
Posts: 1

Rep: Reputation: Disabled
how to avoid app logging to syslog


Hi ,

I am trying to setup logging for an app with a new custom conf file under /etc/rsyslog.d
as below & name the file as 30-custom.conf

Quote:
$template DailyPerHostLogs, "/var/log/rsyslog/<new_folder>/%$YEAR%%$MONTH%%$DAY%-%HOSTNAME%.log
app* -?DailyPerHostLogs
& stop
I did restarted rsyslog.. after above change. But some how whatever logging is being written to %$YEAR%%$MONTH%%$DAY%-%HOSTNAME%.log file under /var/log/rsyslog/<new_folder>/ is also being written to /var/log/syslog.
Is there a way i can avoid it ..not to write to default /var/log/syslog?

OS: Ubuntu 14.04.5

Thanks,
drams.
 
Old 05-14-2017, 04:12 AM   #2
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,155
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
My thoughts: look at the man pages how to write "0" outputs to syslog. So far I remember, you can control with conf setups of your app, what will be the content of the logs. How exactly? I dont know: I would have to search again. Hopefully it helps.
 
  


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
How to avoid stdin into logging in python sahana12 Programming 2 11-03-2012 04:18 PM
How to avoid logging with root user? pinga123 Linux - Newbie 4 07-23-2010 04:11 AM
syslog-ng -> syslog-ng logging, how to troubleshoot sir-lancealot Linux - Server 1 01-24-2009 06:07 AM
LXer: OpenLDAP Quick Tips: Using syslog or syslog-ng with slapd for OpenLDAP logging LXer Syndicated Linux News 0 11-14-2008 08:41 PM
Logging/syslog s0n|k Linux - Newbie 2 03-13-2006 07:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:08 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