- Community Home
- >
- HPE Community, Taiwan
- >
- Tru64 Unix & OpenVMS
- >
- Tru64 Unix
- >
- 關於syslog.conf的寫法
Tru64 Unix
1855282
會員
6267
線上
104109
解決方案
論壇
類別
Company
Local Language
返回
論壇
討論平台
Knowledge Base
論壇
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
討論平台
Knowledge Base
論壇
討論平台
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
返回
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
部落格
信息
社區語言
語言
論壇
部落格
文章選項
- 訂閱此主題的RSS 提要
- 將此主題標記為未讀
- 將主題標記為已讀
- 將主題在本帳號置頂
- 標示為書籤
- 訂閱此主題
- 列印此頁
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 11-10-2004 06:57 AM
在 11-10-2004 06:57 AM
關於syslog.conf的寫法
我看到default syslog.conf寫法如下
kern.debug /var/adm/syslog.dated/kern.log user.debug /var/adm/syslog.dated/user.log
但是用ls 去看該路徑卻是找不到的
實際路徑應該是/var/adm/syslog.dated/current
這是怎樣做到的,ls找不到,syslog 卻自己會去current 路徑底下寫資料
# ls /var/adm/syslog.dated/kern.log ls: /var/adm/syslog.dated/kern.log not found
kern.debug /var/adm/syslog.dated/kern.log user.debug /var/adm/syslog.dated/user.log
但是用ls 去看該路徑卻是找不到的
實際路徑應該是/var/adm/syslog.dated/current
這是怎樣做到的,ls找不到,syslog 卻自己會去current 路徑底下寫資料
# ls /var/adm/syslog.dated/kern.log ls: /var/adm/syslog.dated/kern.log not found
1則回覆 1
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 11-10-2004 10:06 AM
在 11-10-2004 10:06 AM
關於syslog.conf的寫法
Hi Joey,
> 這是怎樣做到的,ls找不到,syslog 卻自己會去current 路徑底下寫資料
This is handled by the process "syslogd". See "man"
# man syslogd
.
Destinations for logged messages can be specified with full pathnames that
begin with a leading / (slash). The syslogd daemon then opens the speci-
fied file(s) in append mode. If the pathname to a syslogd daemon log file
that is specified in the syslog.conf file as a /var/adm/syslog.dated/file,
the syslogd daemon inserts a date directory, and thus produces a day-by-day
account of the messages received, directly above file in the directory
structure. Typically, you will want to divert messages separately, accord-
ing to facility, into files such as kern.log, mail.log, lpr.log, and
debug.log. The file /var/adm/syslog.dated/current is a link to the most
recent log file directory.
If some pathname other than /var/adm/syslog.dated/file is specified as the
pathname to the logfile, the syslogd daemon does not create the daily date
directory. For example, if you specify /var/adm/syslog/mail.log (without
the .dated suffix after syslog), the syslogd daemon simply logs messages to
the mail.log file and allows this file to grow indefinitely.
PS: The keyword ".dated" in syslog.conf is passed this function by syslogd.
Best regards,
Richard.
> 這是怎樣做到的,ls找不到,syslog 卻自己會去current 路徑底下寫資料
This is handled by the process "syslogd". See "man"
# man syslogd
.
Destinations for logged messages can be specified with full pathnames that
begin with a leading / (slash). The syslogd daemon then opens the speci-
fied file(s) in append mode. If the pathname to a syslogd daemon log file
that is specified in the syslog.conf file as a /var/adm/syslog.dated/file,
the syslogd daemon inserts a date directory, and thus produces a day-by-day
account of the messages received, directly above file in the directory
structure. Typically, you will want to divert messages separately, accord-
ing to facility, into files such as kern.log, mail.log, lpr.log, and
debug.log. The file /var/adm/syslog.dated/current is a link to the most
recent log file directory.
If some pathname other than /var/adm/syslog.dated/file is specified as the
pathname to the logfile, the syslogd daemon does not create the daily date
directory. For example, if you specify /var/adm/syslog/mail.log (without
the .dated suffix after syslog), the syslogd daemon simply logs messages to
the mail.log file and allows this file to grow indefinitely.
PS: The keyword ".dated" in syslog.conf is passed this function by syslogd.
Best regards,
Richard.
以上表述為作者個人觀點,不代表惠普公司,使用本網站,請遵守網站使用規則和條款