log search help


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users log search help
# 1  
Old 07-13-2011
log search help

how to search a 4 GB log file for userid
its creating a log file @ 4 gigs per 30 mins.. and the logs are rotating. .
# 2  
Old 07-13-2011
what u want to search ?
# 3  
Old 07-14-2011
grep ! - it should go fine, but will take time...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need to search specific string in a log

Hi, I have a log file containing below data 12/3/14 12:43:59 AM WIT |Performance threshold: elapsed time = 3152... (5 Replies)
Discussion started by: csm231
5 Replies

2. Shell Programming and Scripting

Log search and mail it if the log is updated before 24 hours from the current time

Hi , We have around 22 logs , each has different entries. I have to automate this using shell script. The ideas which am sharing is given below 1) We use only TAIL -100 <location and name of the log> Command to check the logs. 2) We want to check whether the log was updated before 24... (13 Replies)
Discussion started by: Kalaihari
13 Replies

3. Shell Programming and Scripting

String search in log file

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

4. Shell Programming and Scripting

How to search log file from a date

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. UNIX for Dummies Questions & Answers

How to search in a log file?

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

6. Shell Programming and Scripting

Search a pattern in a log file

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

7. Shell Programming and Scripting

how to search reports with specified keyword in log

Hi, I have a question with sed/awk. When I handle some log files I want to search all reports with specified keyword. For example, in the log below. abcd efg ===start abc e ===end xyz ===start af f ===end nf ga ===start ab ===end (4 Replies)
Discussion started by: danielnpu
4 Replies

8. Shell Programming and Scripting

Log Search Script

Hi, I am trying to write a script to search a log- IPaddress being the search criteria, I would ideally like the script to ask the ipaddress Enter IP address - 244.258.27.225 And the ideal result would be for the script to get all the entries in the log file for a particular IP address,... (3 Replies)
Discussion started by: fuzion.hyd
3 Replies

9. Shell Programming and Scripting

String search in log file

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

10. Shell Programming and Scripting

search log file

hi, I know this question probably been asked a thousand times but I can't find any posts that can help me out, so here I am. The problem is at the end of the day I want to execute a script but I only want to invoke it if and only if scripts 1/2/3/4/5/6 executed successfully. So what I did is to... (1 Reply)
Discussion started by: mpang_
1 Replies
Login or Register to Ask a Question