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.
|