Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 26th July 2009, 11:35 AM
ub007 Offline
Registered User
 
Join Date: Oct 2008
Posts: 67
Question logging data

Hi all,

I've got an app which keeps logging and the logs keep rotating every minute.Theres a particular string in these logs that I'm interested in and wish to capture all lines that contain the string.Any ideas?

log file could be smap.log
string is 'RSS 1'
so I do a
#pgrep "RSS 1" smap.log >> ub.log
so this would pipe all lines containg the 'RSS 1' string to ub.log.But the app keeps logging & logs would now rotate and how would i be able to pipe the next lines containg the string to ub.log.It needs to be appended and not replace the existing entries in ub.log....



If any one could help me with a script that could do the job???

Cheers
Davis
Reply With Quote
 

Tags
data, logging

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I read a constant data stream from /dev/tty0 so I can manipulate the data? Pinn2 Using Fedora 3 15th October 2008 04:13 AM
Logging off unix66 Using Fedora 7 5th May 2008 04:08 PM
Problem updating xmms-libs, evolution-data-server and evolution-data-server-devel eschi Using Fedora 3 6th June 2006 06:54 PM
FC4 stop logging after Webmin installed ( bandwidth logging ) simonxyz EOL (End Of Life) Versions 0 15th November 2005 10:48 AM


Current GMT-time: 01:57 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat