l***r 发帖数: 459 | 1 hi Experts,
is there any way to get signal from syslogd?
where is syslog file and how to check the size of syslog?
Thanks. | m*******m 发帖数: 182 | 2
I took a quick look of the syslogd source code (under a BSD
source tree), and did not find any signal emition. So, I
guess there is no way to get.
I assume that you mean the log file. It is configurable in
/etc/syslog.conf.
Normally, /var/log/messages. You can just check the size of
this file.
【在 l***r 的大作中提到】 : hi Experts, : is there any way to get signal from syslogd? : where is syslog file and how to check the size of syslog? : Thanks.
| l***r 发帖数: 459 | 3
Thank you. I just check /var/log directory in our system.
There is no messages but syslog. However, syslog is 0 byte.
What's wrong with that? Is that because I am not root? Btw,
how
can I check size of a certain file by C/C++? I am poor on
C/C++.
【在 m*******m 的大作中提到】 : : I took a quick look of the syslogd source code (under a BSD : source tree), and did not find any signal emition. So, I : guess there is no way to get. : I assume that you mean the log file. It is configurable in : /etc/syslog.conf. : Normally, /var/log/messages. You can just check the size of : this file.
| m*******m 发帖数: 182 | 4
What OS are you running? (What does `uname -a` report?)
What
is the content in /etc/syslogd.conf?
`man fstat`
【在 l***r 的大作中提到】 : : Thank you. I just check /var/log directory in our system. : There is no messages but syslog. However, syslog is 0 byte. : What's wrong with that? Is that because I am not root? Btw, : how : can I check size of a certain file by C/C++? I am poor on : C/C++.
| m*******m 发帖数: 182 | 5
Looks like you are on a Solaris box. It is usually set to
be
/var/adm/messages (but you need double check with
/etc/syslog.conf
to make sure), and it is world readable.
【在 l***r 的大作中提到】 : : Thank you. I just check /var/log directory in our system. : There is no messages but syslog. However, syslog is 0 byte. : What's wrong with that? Is that because I am not root? Btw, : how : can I check size of a certain file by C/C++? I am poor on : C/C++.
|
|