How to change the path of saving logs in CentOS?
I have some logs in /var/log/messages like as:
Code:
Oct 27 11:07:56 CVT-Server-Main kernel: IN=eth1 OUT= MAC=ff:ff:ff:ff:ff:ff:00:1a:80:f8:15:8e:08:00 SRC=192.168.0.113 DST=192.168.1.255 LEN=131 TOS=0x00 PREC=0x00 TTL=128 ID=5431 PROTO=UDP SPT=17500 DPT=17500 LEN=111 |
It depends on the version of Linux that you are using, but based on your member information, I will assume you are referring to CentOS 6.4.
In this case, you will edit the /etc/rsyslog.conf file. Change the destination in the RULES section to the desired locations. Example: Change: Code:
#### RULES #### Code:
#### RULES #### Code:
service rsyslog restart |
All times are GMT -5. The time now is 05:04 PM. |