10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I have an issue which I'm trying to understand a way of doing, I have several nodes which contain syslog events which I want to force trigger an email initially (eventually leading to another method of alerting but to start with an email).
Basically the syslog file will have hours worth... (6 Replies)
Discussion started by: mutley2202
6 Replies
2. Shell Programming and Scripting
hi, i have a requirement to search for a sting "/user/data/<7digit>/<temp dir>/<file name>#<unique string> in a log file. This string present number of times but i need to get the first occurence only. i am trying with the below option but not working can you please help.
grep... (1 Reply)
Discussion started by: Satyak
1 Replies
3. UNIX for Dummies Questions & Answers
i want to search a log for occurrences of words and i want the result to tell me how many lines in the log contained each word.
if i type a command like this:
egrep "cat|dog|monkey|bananas|bike" logfile
i would like a response like this:
cat=3,dog=17,monkey=1,bananas=102,bike=51
the... (12 Replies)
Discussion started by: SkySmart
12 Replies
4. Shell Programming and Scripting
Hi All,
I want to grep through all the log files created from 20th August. How do I do that? My script will run everyday. So it will take current date as To_Date.
My log file name looks like - applog-2012-08-20-000001....applog-2012-08-20-000002...etc.
Thanks in advance. (5 Replies)
Discussion started by: kmajumder
5 Replies
5. Shell Programming and Scripting
Hi,
My log file has error messages, universal no and universal ID. The problem is i have to search Universal ID from the error messages. But the log file write error messages with universal no and error messages in one line. and universal no with universal ID in other line. So i write two loops... (5 Replies)
Discussion started by: pjlotiya
5 Replies
6. UNIX for Dummies Questions & Answers
Hey guys,
I'm still relatively new to Linux and everyday is a learning experience for me. Anyway, I have a question about searching inside a log file and didn't know what topic this would come under so posting it here as I am a Dummie lol!
Say I have a log file which consists of say, for... (2 Replies)
Discussion started by: jimbob01
2 Replies
7. Shell Programming and Scripting
I have file which gets updated every minute/second. Is it possible in shell scripting that I can search for some pattern infinitely in this file and if it finds that pattern, alert the user.
A sample of log file is below. The following file is getting updated every second. I want to alert the... (2 Replies)
Discussion started by: Tuxidow
2 Replies
8. Shell Programming and Scripting
Have checked the forums and couldnt locate help on this.
I want to grep a log file for a pattern using a script - I need to grep the latest log file and not sure how I am able to ensure I am greping the latest log file.
Here is sample of log files for yestersday and I effectively need to grep... (10 Replies)
Discussion started by: frustrated1
10 Replies
9. Shell Programming and Scripting
I have to write a script to search the logfiles i.e msg.log for the following
The Search Criteria is as follows
1. IP address
2. String
Ex: abc.123.com
3. Timestamp ( start - end )
ex: 2008-05-04-00:30:00 - 2008-05-08-04:30:00
Can anyone help to devise a script for... (9 Replies)
Discussion started by: indiakingz
9 Replies
10. Shell Programming and Scripting
Hi all!
I have a log file from an incremental backup. This next script I've done works when the backup completes in the same day it started. But if the backup goes on to the next day, this one doesn't work anymore.
##################################
#VARS
data=`date '+%m/%d/%y'`... (1 Reply)
Discussion started by: sliver
1 Replies