Solved

Combine log files into one file?

Posted on 2009-04-13
2
398 Views
Last Modified: 2012-05-06
Hi,
I am using robocopy to back up my servers and then emailing the backup logs using bmail software. I am trying to combine all logs from different servers running at different time into one log file at the end and bmail it to me instead of getting 8 different log files everyday!.
I can direct all logs to go into one network folder. Is there a free software that will merge all those logs into one file? I tried the /LOG+:file parameter from robocopy but it didn't work, it was emailing me some funny characters, i don't think it logs well when accessing from the network.

any suggestions?
Thanks
0
Comment
Question by:smaguire
2 Comments
 
LVL 6

Accepted Solution

by:
Justin_W_Chandler earned 250 total points
ID: 24130279
copy file1+file2+file3+file4+file5+file6+file7+file8 newfile.log

*OR*

for /f "tokens=*" %A in ('dir /b *.log') do type "%A">>newlog.log

(this assumes that the log files are all named something.LOG)
0
 

Author Closing Comment

by:smaguire
ID: 31569520
Great. Thanks!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now