avatar
one question about syslogd# Unix - 噫吁兮,危乎高哉
l*r
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.
avatar
m*m
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.

avatar
l*r
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.

avatar
m*m
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++.

avatar
m*m
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++.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。