Sponsored Content
Full Discussion: syslog messages
Operating Systems AIX syslog messages Post 302345253 by bakunin on Tuesday 18th of August 2009 06:15:55 PM
Old 08-18-2009
This is - to my knowledge - not possible. You could only filter out messages based on severity levels, not on text content. How about filtering the logs after they are generated, with a simple "grep -v"?

It might be worth a try to explore syslog-ng, which should be possible to install on AIX (not tested). It might offer the functionality you are searching for.

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Date in syslog messages

Is there a way of configuring AIX syslog messages to include the year (not just month and day) (2 Replies)
Discussion started by: emilia
2 Replies

2. Shell Programming and Scripting

sort syslog messages

how can i sort the syslog message, so that the lastest time stamp show first , oldest show last. (1 Reply)
Discussion started by: 3Gmobile
1 Replies

3. Solaris

syslog messages every minute

Hi If we have for example a disk that is experiencing problems, ie read errors etc, a message will get generated via syslog every one minute....I come in the morning to hundreds upon hundreds of the same message. Is there anyway to change this to say 5 minutes or maybe 10 mins etc so that it... (1 Reply)
Discussion started by: hcclnoodles
1 Replies

4. Shell Programming and Scripting

Help with separating syslog messages.

Hello Guys... I am bit new to shell scripting and was looking for help !! I have got syslog data on a linux server recording log messages from a device. I need to seperate the data from log to file so that I can push it excell and get a report from that. Log is in the format below "... (2 Replies)
Discussion started by: raj_26apr
2 Replies

5. HP-UX

Getting error messages in syslog in HP-UX

Hi, I'm using HP-UX 11.11 on HP9000/800 PA-RISC system.I am getting the below messages daily in /var/adm/syslog/syslog.log file.Can someone help me out in this regard, why I am getting this messages & how to resolve it. I am using SSH version(HP-UX Secure Shell-A.04.20.004) Messages: Nov 26... (2 Replies)
Discussion started by: Mike1234
2 Replies

6. UNIX for Advanced & Expert Users

Is it, and if so, how is it possible to intercept system messages going to SYSLOG

HI all, I'm trying to improve my systems to detect attempts to break in to my servers. For instance, I currently use crontab checking the /var/log/messages every 1 minute, but I feel it would be more efficient to do the processing only when messages are generated. Is this possible, and if so... (4 Replies)
Discussion started by: bennerg
4 Replies

7. Red Hat

syslog messages.

Good Day. Any idea on the messages log. it would be a great help to us. Upon checking the on the system logs, I found the following messages: EXT3-fs: INFO: recovery required on readonly filesystem. EXT3-fs: write access will be enabled during recovery. kjournald... (1 Reply)
Discussion started by: cabloy
1 Replies

8. Linux

Filter syslog messages.

Hello, How can we filter messages like : indrh03 sshd: Accepted publickey for score from 192.168.18.47 port 51034 ssh2 indrh03 sshd: pam_unix(sshd:session): session opened for user score by (uid=0) indrh03 sshd: pam_unix(sshd:session): session closed for user score such that they... (3 Replies)
Discussion started by: mahive
3 Replies

9. AIX

Error messages in syslog

Hi, Can you please look into the below errors from syslog in AIX? And let me know is this a issue? How can I avoid these errors with out affecting my LPAR. Detail Data SYSLOG MESSAGE <27>Aug 23 08:24:28 syslog: slp: 0660-084 The SA failed to decode and compute received message:... (0 Replies)
Discussion started by: System Admin 77
0 Replies

10. Solaris

Syslog duplicate messages

I've heard that syslog in Solaris10 doesn't repeat duplicate messages and displays "last message repeated n times." Is there a way to increase the time interval, so that more messages are recognized as duplicates? thanks. (0 Replies)
Discussion started by: orange47
0 Replies
SYBASE_SET_MESSAGE_HANDLER(3)											     SYBASE_SET_MESSAGE_HANDLER(3)

sybase_set_message_handler - Sets the handler called when a server message is raised

SYNOPSIS
bool sybase_set_message_handler (callable $handler, [resource $link_identifier]) DESCRIPTION
sybase_set_message_handler(3) sets a user function to handle messages generated by the server. You may specify the name of a global func- tion, or use an array to specify an object reference and a method name. PARAMETERS
o $handler - The handler expects five arguments in the following order: message number, severity, state, line number and description. The first four are integers. The last is a string. If the function returns FALSE, PHP generates an ordinary error message. o $link_identifier - If the link identifier isn't specified, the last opened link is assumed. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 sybase_set_message_handler(3) callback function <?php function msg_handler($msgnumber, $severity, $state, $line, $text) { var_dump($msgnumber, $severity, $state, $line, $text); } sybase_set_message_handler('msg_handler'); ?> Example #2 sybase_set_message_handler(3) callback to a class <?php class Sybase { function handler($msgnumber, $severity, $state, $line, $text) { var_dump($msgnumber, $severity, $state, $line, $text); } } $sybase= new Sybase(); sybase_set_message_handler(array($sybase, 'handler')); ?> Example #3 sybase_set_message_handler(3) unhandled messages <?php // Return FALSE from this function to indicate you can't handle // this. The error is printed out as a warning, the way you're used // to it if there is no handler installed. function msg_handler($msgnumber, $severity, $state, $line, $text) { if (257 == $msgnumber) { return false; } var_dump($msgnumber, $severity, $state, $line, $text); } sybase_set_message_handler('msg_handler'); ?> NOTES
Note This function is only available when using the CT library interface to Sybase, and not with the DB library. PHP Documentation Group SYBASE_SET_MESSAGE_HANDLER(3)
All times are GMT -4. The time now is 06:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy