![]() |
|
|
|
|
|||||||
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. Shell Script Page. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sar logs in /var/adm/sa | RobSand | SUN Solaris | 1 | 10-03-2007 12:58 AM |
| logs | lordmod | UNIX for Advanced & Expert Users | 1 | 02-13-2007 02:41 PM |
| scp logs | gsr_kashyap | Linux | 0 | 08-02-2006 12:22 AM |
| Logs | charbel | Shell Programming and Scripting | 5 | 05-04-2006 04:59 AM |
| logs | cubicle^dweller | UNIX for Dummies Questions & Answers | 6 | 10-29-2002 03:42 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Grep logs on the fly
Hi,
We use an application that is dumping logs to a file on disk. However, this is dumping very verbosely and there is no method of turning down the logging level. We need to remove certain contents from these before they are commited to disk. Has anybody got any ideas how I can do this using grep maybe? This will have to run continually as long as the application runs. Thanks Harperonline |
| Forum Sponsor | ||
|
|
|
|||
|
Perhaps:
Code:
tail -f logfile | grep whatever |
| Thread Tools | |
| Display Modes | |
|
|
|
The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
|
| 421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash exec bash for loop command copy/move folder in unix couldn't set locale correctly curses.h cut command in unix export command in unix find grep find mtime find null character in a unix file grep multiple lines grep or grep recursive hp-ux ifconfig inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi substitute vi+substitute+end+of+line+character while loop within while loop shell script |