File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

changing the log file content

 
Arjun Shastry
Ranch Hand
Posts: 1893
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In our environment, one application writes a logs in text format.Log file size goes upto 25MB .Log file rotation is used.
We want to modify the data(immediately) in the log file if record matches some expression. In what language program should be written?
Does the program need to poll the log file continuously?
Operating System is Solaris and we have Java/PERL installed.(and ofcourse SED/AWK).

Thanks
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might have a better chance of getting this answered in the Linux forum, I'll move it there.
 
Maneesh Godbole
Saloon Keeper
Posts: 10976
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In what language program should be written?
Does the program need to poll the log file continuously?


If you are considering Java, check out JNotify
 
Arjun Shastry
Ranch Hand
Posts: 1893
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I think SED will be good option as its alread there. Ouput of log file will be piped to Shell Script where I am writing SED regular expression and then printing it out.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic