0
votes
1answer
48 views

Need to grep for specific lines from ongoing log and save it in some file

So, let me start with the overall outcome that i want to achieve. There is just one log, which will have info on certain devices, that i am upgrading. I use "tailf log" to monitor the log. Now, ...
2
votes
2answers
134 views

Sanitize Apache access log files?

We have this code in a shell script that pipes output for Apache to log. declare -a values=( $taintRequestVals ) for item in ${!values[@]} do cat $apacheLog | sed ...
3
votes
3answers
352 views

Where are userspace programs supposed to save their logs?

I am writing a script that I want to run without privileges. I want the errors that the script encounters to be logged to some log file. I do not not have privileges to write one to /var/log. And I do ...
1
vote
1answer
292 views

selective stdout , stderr and logging using the script command [duplicate]

Possible Duplicate: Show only stderr on screen but write both stdout and stderr to file stdout , stderr and logging using the script command cat test.sh: rm -v foo.tmp date pwd cat ...
1
vote
2answers
366 views

stdout , stderr and logging using the script command

I have remove.sh which contains: rm -v test.tmp And I have install.sh which contains: script remove.log -c './remove.sh' What can I do so that whether or not test.tmp exists, I don't see any rm ...
2
votes
1answer
206 views

starting from last line processed when processing log file several times

I am designing a logging and reporting system for a web application. Within the web application some events can happen ("user logged in", "user performed action X", etc..). I would like the ...