- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: syslog does wierd things
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 11:11 AM
03-31-2003 11:11 AM
syslog does wierd things
I am running 11.0 and syslog config is below.
# cat /etc/syslog.conf
# @(#) $Revision: 74.1 $
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
# Date of changes : 03/23/2003
#
# Route all messages to central log server for processing
# this is the log server
# *.emerg;*.alert;*.crit;*.error;*.warning;*.notice;*.info;*.debug @someserver
# the next line is the standard for all none log servers
#*.info;mail.none;*.alert;*.emerg /var/adm/syslog/syslog.log
*.emerg;mail.none;*.alert;*.crit;*.error;*.warning;*.notice;*.info;*.debug /var/adm/syslog/syslog.log
#
# mail debug log file
#
mail.debug /var/adm/syslog/mail.log
#
# send alerts to root's email account and flush to console
#
*.alert root
*.alert /dev/console
===================
that is the syslog.conf
my dirs - var/adm/syslog permissions are fine and they belong to bin:bin
when I restart syslog, the syslog.log file appears in the /var/adm/syslog directory but with permissions r------- (400) for syslog.log.
and although the file is listed,
when I want to tail it I get this.
------
# tail -f /var/adm/syslog/syslog.log
tail: cannot open input
error: No such file or directory on file /var/adm/syslog/syslog.log
#
and nothing seem to be going in the file.
is there a patch for this condition?
------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 11:13 AM
03-31-2003 11:13 AM
Re: syslog does wierd things
-rw-r--r-- 1 root root 50003 Mar 31 11:53 syslog.log
Regards,
RZ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 11:19 AM
03-31-2003 11:19 AM
Re: syslog does wierd things
I reset them manually to 644 and when I restart syslogd they go back to 400, then I cna't access the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 11:30 AM
03-31-2003 11:30 AM
Re: syslog does wierd things
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 11:32 AM
03-31-2003 11:32 AM
Re: syslog does wierd things
mask=`umask`
umask 022
> /var/adm/syslog/syslog.log
umask $mask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 11:46 AM
03-31-2003 11:46 AM
Re: syslog does wierd things
I added chmod and chown. but for some reason the perm gets over written. to 400
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 12:03 PM
03-31-2003 12:03 PM
Re: syslog does wierd things
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 12:05 PM
03-31-2003 12:05 PM
Re: syslog does wierd things
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 12:24 PM
03-31-2003 12:24 PM
Re: syslog does wierd things
Default:
CURRENT SYSLOG.CONF file.
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *
Can be changed to:
*.info;mail.none /var/adm/syslog.log
-oro
*.info;mail.none /tmp/syslog.log
...for example.
In fact, I've seen Solaris guys come over to HP and do this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 12:35 PM
03-31-2003 12:35 PM
Re: syslog does wierd things
cd /sbin/init.d
grep -i syslog *
Is the path /var/adm/syslog/syslog.log hard coded into any startup stripts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 12:42 PM
03-31-2003 12:42 PM
Re: syslog does wierd things
check_patches
-or-
swverify -v -x check_permissions=true \*
Note the swverify and swagent.log.
Also check your /etc/syslog.conf file for tabs, spaces or other control characters. Maybe even copy the default over from /usr/newconfig/etc/syslog.conf and remake it from scratch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 01:27 PM
03-31-2003 01:27 PM
Re: syslog does wierd things
WHen I sourced the fresh config in, everything worked.
however when I added the line
*.emerg;mail.none;*.alert;*.crit;*.error;*.warning;*.notice;*.info;*.debug /var/adm/syslog/syslog.log
the same error occured.
is this the correct method to log everything?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2003 08:35 PM
03-31-2003 08:35 PM
Re: syslog does wierd things
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *
The above is a standard config that will display informational messages on up to Emergency messages to the log file, plus root will receive alert level and higher, and everyone will receive emergency and higher.
So if you only wanted to redirect alerts and higher, you would state:
*.alert;mail.none /var/adm/syslog/syslog.log
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2003 08:55 AM
04-01-2003 08:55 AM
Re: syslog does wierd things
Donny