LinuxQuestions.org
Review your favorite Linux distribution.
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 04-24-2016, 05:12 AM   #1
zerop
Member
 
Registered: Jul 2014
Posts: 65

Rep: Reputation: Disabled
no syslog after delete syslog file


ubuntu 14.04 in vmware player and GNS3

vlan database
vlan 12
exit
conf t
int vlan 12
ip address 192.168.1.1 255.255.255.0
no shut
end
conf t
interface FastEthernet0/0
switchport access vlan 12
switchport mode access
no shut
end
conf t
username martin password cisco
line vty 0 4
login local
end
conf t
logging facility local7
logging trap debugging
logging host 192.168.1.2 transport tcp port 514
end
show logging

rsyslog.conf
local7.* /var/log/martinsyslog

vi /var/log/martinlog

no log martinsyslog
but all log go to /var/log/syslog

then i delete /var/log/syslog

and vi a new syslog file again, it can not log again even if restart rsyslog service and chown root syslog

Last edited by zerop; 04-24-2016 at 06:07 AM.
 
Old 04-24-2016, 03:51 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
On my Linux Mint system /var/log/syslog has a user of syslog and a group of adm. Ubuntu may configure the syslog user and group the same way.

----------------------
Steve Stites
 
Old 04-26-2016, 10:10 AM   #3
zerop
Member
 
Registered: Jul 2014
Posts: 65

Original Poster
Rep: Reputation: Disabled
it only update once, but no further log using tail -f /var/log/martinsyslog

and then continue update /var/log/syslog

after change owner and change group
 
Old 04-26-2016, 10:11 AM   #4
zerop
Member
 
Registered: Jul 2014
Posts: 65

Original Poster
Rep: Reputation: Disabled
moreover , there is no newline in martinsyslog
how to make the log new line for each log
 
Old 04-26-2016, 01:31 PM   #5
zerop
Member
 
Registered: Jul 2014
Posts: 65

Original Poster
Rep: Reputation: Disabled
after comment tcp and only use udp , it succeed to continue log switch in martinsyslog

after try again and again, i discover it need restart ubuntu
 
  


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
Can I delete syslog file(800MB) and daemon log file(75MB)?? satyagp Debian 2 10-05-2015 07:15 AM
syslog-ng -> syslog-ng logging, how to troubleshoot sir-lancealot Linux - Server 1 01-24-2009 06:07 AM
I need help getting syslog to log remotely, this is just the regular syslog. abefroman Linux - Software 2 06-05-2008 11:36 AM
LXer: Centralized Syslog Server Using syslog-NG LXer Syndicated Linux News 0 04-28-2006 06:21 PM
limit and delete syslog files cccc Debian 9 07-15-2005 06:47 PM

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

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