Tool or solution to monitor a log file and forward each line as it appears

Hey there,

I am trying to find a tool that can monitor a logfile, and as new lines are entered, append that line to another file.

The reason I ask is that the logfile is automatically rotated (i.e., deleted) periodically, and I want a master log file with all log file entries.


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

What kind of log file ?

Dodger42Author Commented:
Spitting out of a game server. But format of logfile shouldn't matter, as the lines dont need processing. Each line should be simply appended to the master log.
Get the 'tail' command for windows and do this;

Open up a command prompt at the location where the log file is being put and do as below;

tail -f >>Masterlog.txt

Done, minimize the dos window and you're done. Tail basically reads all the data that is written to the *last* of a file and using the above combination, you can send them right into the masterlog.

Hope that helps.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 2000

From novice to tech pro — start learning today.