Maven 0001
asked on
Best Way to keep Huge XML Request and Response Logs.
I am having thousands of XML Requests/Responses Log with each log size can be anywhere 1mb to 10mb. We need to keep them only for investigation if something goes wrong. We need to able to locate and open the log file. As of now we are keeping the same in a folder on the server but since the daily usage of log files are 50-60 GB per day and frequently ran out of space. So my question is what is the best way of managing such data? Ideally i want it to be in a db that we can archive and search for it even after 3 months. Should i zip the same and keep the pointer in db?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I just did a test of an XML file and 7zip compressed it from 164k down to 10k = 6.556% of its original size. I got this reduction using both the Ultra and Maximum compression levels, both employing the PPMd compression method.
Save some meta data in a database, allowing you to search for the log you need and then decompress it.