Need to grep certain entry out of log file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need to grep certain entry out of log file
# 8  
Old 06-10-2013
My bad! The original string works like a charm. THANK YOU!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Monitor and capture the latest entry from the log file

Hi, I want to monitor a log file using tail -f command and search for a specific string on the most recent entry from the file. If the search string matches with the most recent or last line from the file, I want send an email to the people with the message. tail -f service.log|tail -n 1 ... (5 Replies)
Discussion started by: svajhala
5 Replies

2. Shell Programming and Scripting

Selecting latest entry in the log file

Hi there I am trying to write a script where I will need to look for a specific word in the log file and I am aware this can be done by grep for example. As there will be multiple entries for this I want to grep the last one to enter the log... how would I go about this - would I have to use... (5 Replies)
Discussion started by: simpsa27
5 Replies

3. UNIX for Dummies Questions & Answers

How to grep for first entry in a file?

Hello friends, I have a question. Sometimes I have to search for an entry in a file that is repeated thousands of times. Can you tell me how to search so that i get limited results? For example: file: myfile.txt grep "hello world" myfile.txt this above grep will generate 5000... (4 Replies)
Discussion started by: DallasT
4 Replies

4. Shell Programming and Scripting

How to grep a log file for words listed in separate text file?

Hello, I want to grep a log ("server.log") for words in a separate file ("white-list.txt") and generate a separate log file containing each line that uses a word from the "white-list.txt" file. Putting that in bullet points: Search through "server.log" for lines that contain any word... (15 Replies)
Discussion started by: nbsparks
15 Replies

5. Shell Programming and Scripting

[awk] grep a part of filename as entry file

hi all, i need to combine these files into one csv file. Bounce_Mail_Event_Daily_Report_01_Jul_2012.csv Bounce_Mail_Event_Daily_Report_02_Jul_2012.csv Bounce_Mail_Event_Daily_Report_03_Jul_2012.csv Bounce_Mail_Event_Daily_Report_04_Jul_2012.csv... (10 Replies)
Discussion started by: makan
10 Replies

6. Shell Programming and Scripting

How to write a new entry at the beginning of a log file instead of at the end?

Hi Ladies and Gents, Explanation of my question with an example: Let's consider the script: backup_every_hour.sh #!/bin/bash rsync -auv $dir $backup_dir >> backup_every_hour_script.log Each time this script is called there will be a new entry at the end of the file... (1 Reply)
Discussion started by: freddie50
1 Replies

7. UNIX for Dummies Questions & Answers

grep first occurrence but continue to next entry in patternfile

I have 1300 files (SearchFiles0001.txt, SearchFiles0002.txt, etc.) , each with 650,000 lines, tab-delimited data. I have a pattern file, with about 1000 lines with a single word. Each single word is found in the 1300 files once. If I grep -f PatternFile.txt SearchFiles*.txt >OutputFile.txt... (2 Replies)
Discussion started by: newhavendweeb
2 Replies

8. UNIX Desktop Questions & Answers

How to grep for password file entry

How would I grep for password file entry without using grep 'username' /etc/passwd? perhaps with who? I want to create alias that will find the password file entry regardless of the user who is using it. Thanks (4 Replies)
Discussion started by: alis
4 Replies

9. UNIX for Dummies Questions & Answers

grep for password file entry

How would I grep for password file entry without using grep 'username' /etc/passwd? perhaps with who? I want to create alias that will find the password file entry regardless of the user who is using it. I am trying to get the same exact line from the file entry like: Name : Password : UserID... (7 Replies)
Discussion started by: alis
7 Replies

10. Shell Programming and Scripting

Grep table entry problem

Hi, I have a table which looks like this Line a b c 0 10 0 0 1 0 0 2 0 ... (1 Reply)
Discussion started by: ahjiefreak
1 Replies
Login or Register to Ask a Question
diaglogd(1M)															      diaglogd(1M)

NAME
diaglogd - Support Tools Manager logging daemon SYNOPSIS
/usr/sbin/stm/uut/bin/sys/diaglogd DESCRIPTION
The Support Tools Manager (STM) uses a logging daemon ( diaglogd ) to read diagnostic events from the kernel via diag2 (diagnostic pseudo driver) and logs them in the system log files. diaglogd is launched automatically at boot by the STM daemon diagmond. The STM User Interface, xstm , mstm , or cstm , Daemon commands can also be used to launch the daemon as well as shut it down and view the daemon's activity log. The log files created by diaglogd can be viewed using the STM utility logtool. Application Usage This daemon will be deprecated on new server models. Please use System Management Homepage (see hpsmh(1M)). WARNINGS
The following message will appear on the system console when the diagnostic logging facility determines that the I/O subsystem has started logging excessive I/O errors. This message will appear only once and I/O errors will be lost until the diagnostic subsystem can recover from this condition. DIAGNOSTIC SYSTEM WARNING: The diagnostic logging facility has started receiving excessive errors from the I/O subsystem. I/O error entries will be lost until the cause of the excessive I/O logging is corrected. If the diaglogd daemon is not active, use the Daemon Startup command in stm to start it. If the diaglogd daemon is active, use the logtool utility in stm to determine which I/O subsystem is logging excessive errors. The following message will appear on the system console when the cause of the excessive I/O error logging is corrected. The total number of I/O errors that were dropped will be placed in "XX". DIAGNOSTIC SYSTEM WARNING: The diagnostic logging facility is no longer receiving excessive errors from the I/O subsystem. XX I/O error entries were lost. OTHER FILES
/dev/diag/diag0 - Series 800 Diagnostic pseudo driver device file /dev/diag/diag1 - Series 700 Diagnostic pseudo driver device file /dev/diag/diag2 - Series 700/800 Diagnostic pseudo driver device file /var/stm/logs/sys/activity_log_diaglogd - Activity log of diaglogd /var/stm/logs/os/log##.raw - OS system log files /var/stm/logs/os/log##.raw.cur - Current OS system log file /var/stm/config/sys/diaglogd.cfg - Diagmond configuration /var/stm/data/daemon_list - List of daemons installed /var/stm/data/key_file - OS resource key file COPYRIGHT
(c) Copyright 1995, Hewlett-Packard Company ORIGIN
diaglogd was developed by Hewlett-Packard Company. SEE ALSO
stm(1M), diagmond(1M) diaglogd(1M)