10-31-2008
filter errors in log
is there anyway i can filter/ignore specific error messages in the /var/log/messages?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have problem of filtering a log file from my perl script.
#cat /data/pinpe.csv_20070731 | nawk -v FS=, '{print $1','$18','$22','$26}' | grep -w 100 | grep -w 1 | nawk '{print $4}'
Below is the output:
2009-06-16
2009-01-29
2009-06-02
2008-03-05
2007-08-05
2007-09-24... (5 Replies)
Discussion started by: pinpe
5 Replies
2. Shell Programming and Scripting
I am working on a generic script that will run a shell script with the arguments passed and redirect errors to one file, and all other output to another file. Then if there is anything in the error file it emails the error to me, otherwise it exits.
The advantage for this approach is that I... (0 Replies)
Discussion started by: gandolf989
0 Replies
3. Shell Programming and Scripting
Hi All,
I have a log File and i have to make a report in desired format.can anybody help me.........
log file
------
<<<<< BESI14 >>>>>
<RLGAP:CELL=ALL;
CELL CHANNEL GROUP ALLOCATION DATA
CELL CHGR SAS ODPDCHLIMIT
BUNYM18 0 MULTI 100
--------
desired format... (1 Reply)
Discussion started by: dattatraya
1 Replies
4. Shell Programming and Scripting
OS: SuSE Linux Enterprise Server 10
Goal:
To track the errors in log file, If they exits users will be notify by email.
We have a script below:
SrchKey="SRVE0242I:"
LogFile=/PATHtemOut.log
MailTo="DN@mail.com
http:// ! -f PATH/alert.last && touch PATH/alert.last
egrep $SrchKey $LogFile... (3 Replies)
Discussion started by: sdhn1900
3 Replies
5. UNIX for Dummies Questions & Answers
Hello
I tried to log in as root, through console access, and this is what I got.
>root
ksh: root: not found
Can you tell me why I got this and what causes it.
Thanks. (2 Replies)
Discussion started by: iamnew2solaris
2 Replies
6. Solaris
How would you truncate a log file that is growing too large if you don't have space to compress it or to move it somewhere else? How would you do it? (2 Replies)
Discussion started by: rajaramrnb
2 Replies
7. Linux
Hi,
Could you please provide me command to filter contents between date in a log file?
Say for example, in a log file I want to capture contents between date May 01 from 5am to 9 am.
OS -- Linux
Regards,
Maddy (1 Reply)
Discussion started by: Maddy123
1 Replies
8. Shell Programming and Scripting
Good Morning,
Every so often, I have copy scripts that to don't complete, but I don't immediately know why. It usually ends up being a permissions issue or a length issue.
The scripts edit a log file, so I'd like to include any copy errors/issues in that file to check if the copies... (4 Replies)
Discussion started by: Stellaman1977
4 Replies
9. Shell Programming and Scripting
HI ,
I m looking for help here!!!
Can we filter the below log data into CSV format ?
timestamp INFO <text > - Some text Drive ..
Need a format of separate field such as
1 2 3 4 ... (2 Replies)
Discussion started by: MohSalNiz
2 Replies
10. UNIX for Beginners Questions & Answers
Dear Experts,
I have a log file that contains a timestamp, I would like to filter record from that file based on timestamp. For example refer below file -
cat sample.txt
Jan 19 20:51:48 mukul-Vostro-14-3468 systemd: pam_unix(systemd-user:session): session opened for user root by (uid=0)... (6 Replies)
Discussion started by: mukulverma2408
6 Replies
strerr(8) System Manager's Manual strerr(8)
NAME
strerr - Receives error messages from the STREAMS log driver
SYNOPSIS
/usr/sbin/strerr [-a sys_admin_mail_name] [-d logdir]
PARAMETERS
Specifies the mail name of the user to receive the message via mail. This is the system administrator by default. Specifies the directory
to contain the error log file. This is /var/adm/streams by default.
DESCRIPTION
The strerr daemon receives error messages from the STREAMS log driver (strlog) for addition to the STREAMS error log files (error.mm.dd) in
the STREAMS error logger directory (/var/adm/streams by default). When first called, the strerr daemon creates the log file error.mm.dd.
This is a daily log file, where mm indicates the month and dd indicates the day of the logged messages. The strerr daemon then appends
each error message that it subsequently receives from the STREAMS log driver to the log file.
STREAMS error log messages have the following format: seq_num std_time ticks_time flags mod_ID sub_ID msg_text where: The error
sequence number. The time the message was sent, in the format hh:mm:ss. The time the message was sent, measured in machine ticks since
the last boot. Can be any of the following indicators: Indicates that the message has also been saved in the process's trace log. Indi-
cates that the message signaled a fatal error. Indicates that the message is to be sent to the system administrator or specified user via
mail. The module identification number of the trace message source. The subidentification number of the trace message source. The trace
message text.
The strerr daemon will run continuously until terminated by the user.
FILES
The error log file or files on which strerr operates.
NOTES
Only one strerr process can open the STREAMS log driver at a time. This restriction is intended to maximize performance.
The STREAMS error logging mechanism works best when it is not overused. The strerr daemon can degrade STREAMS performance by affecting the
response, throughput, and other behaviors of the drivers and modules that invoke it. The daemon will also fail to capture messages if
drivers and modules generate messages at a higher rate than its optimum read rate. Missing sequence numbers among the messages in a log
file indicate that messages have been lost.
RELATED INFORMATION
Interfaces: strlog(7). delim off
strerr(8)