Operating System - HP-UX
1748092 Members
5838 Online
108758 Solutions
New Discussion юеВ

Re: HOW TO FIND HP UX SYSLOG ERRORS

 
Gunasekhar
Occasional Contributor

HOW TO FIND HP UX SYSLOG ERRORS

Hi,

I am new to HP UX . i want to know how to filter errors from syslogs as the log contains every thing.

Tx
Gunasekhar
8 REPLIES 8
g3jza
Esteemed Contributor

Re: HOW TO FIND HP UX SYSLOG ERRORS

Hi,
what do you need the log to be filtered for? Any specific subsystem / daemon / etc. ?

You should look at the /etc/syslog.conf file, to customize your logging according to the facility / level . Also see #man syslogd
Ismail Azad
Esteemed Contributor

Re: HOW TO FIND HP UX SYSLOG ERRORS

Wel gunasekhar,

How about you try out the "simple watchdog"? Well it is known to monitor unix log files. Typically speaking in terms of what is called as "swatch". Just a suggestion.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Viktor Balogh
Honored Contributor

Re: HOW TO FIND HP UX SYSLOG ERRORS

Hi Gunasekhar,

it might be very basic for someone but maybe you are looking for this:


# grep KEYWORD /var/adm/syslog/syslog.log

where KEYWORD is a pattern which you are looking for on the logs. Only the lines containing the KEYWORD will be displayed. Beware that keyword is case-sensitive! For more information, as always:

# man grep

****
Unix operates with beer.
Gunasekhar
Occasional Contributor

Re: HOW TO FIND HP UX SYSLOG ERRORS

Hi , i want to know waht basic keyworked of error messages to filter.
James R. Ferguson
Acclaimed Contributor

Re: HOW TO FIND HP UX SYSLOG ERRORS

Hi:

> Hi , i want to know waht basic keyworked of error messages to filter.

Only you know the things you want to look for. As mentioned, have you ever heard of 'grep' ? I urge you to look at the 'grep(1)' manpages.

...JRF...
sangilak
Trusted Contributor

Re: HOW TO FIND HP UX SYSLOG ERRORS

Hi,


As you seem to be looking for "errors" the command below might be a good start:

# grep -i error /var/adm/syslog/syslog.log

This will show all the lines from your syslog.log file with the word 'error' in it (case insensitive).

Similarly you can search for "warnings" with the command below:

# grep -i warning /var/adm/syslog/syslog.log

But as already mentioned by others in this thread, study the grep manpage and use the information to grep/find exactly what you are looking for!


sangilak
Torsten.
Acclaimed Contributor

Re: HOW TO FIND HP UX SYSLOG ERRORS

It depends what you are looking for.
The diagnostics will write messages into syslog and send a mail to root too, so you just need to open the mailbox and check.

An advanced method for monitoring is to integrate the system into HP SIM.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
awkWard
Occasional Visitor

Re: HOW TO FIND HP UX SYSLOG ERRORS

I think what is asked here is this...

Sory I am actually a Solaris man looking to find a solution for space errors on a HP-UX), but I think what is asked here is...

What is the line that must be inserted into the syslog.conf(or similar) ... to split off certain messages to different log files...

Like:

audit.notice       /var/adm/auditlog

will split all audit messages of a severity of  "notice" to a file  /var/adm/auditlog

Now... obviously, as a Solaris man, I do not have the answer... So instead as to ... please help this chap to fnd the statement that is going to split his log :)

H