Solved

Combine log files into one file?

Posted on 2009-04-13
2
395 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

13 Experts available now in Live!

Get 1:1 Help Now