<h1 id="countingrequestsforeverybackupplan">Counting requests for every backup plan</h1> <hr /> <h2 id="problem">Problem</h2> <p>Your cloud storage provider sent you monthly bill and detailed explanation what you were charged for. Storage may account for 60-70% of the entire bill. The rest of that amount you need to pay for various requests to the storage provider. They can be: PUT, GET, HEAD, DELETE and other storage requests.</p> <hr /> <h2 id="resolution">Resolution</h2> <p>In order to have a better visibility on what you consume from storage provider’s subscription we’ve made this setting in our backup agent.</p> <ul> <li><p>Go to the following folder and locate <strong>enginesettings.list</strong> file. For standalone backup <strong>C:\ProgramData\CloudBerryLab\CloudBerry Backup\enginesettings.list</strong>. For Managed backup this will be something different, depending on the name of the product that you made but still it will be in ProgramData folder. Example for the <strong>Company ABC</strong> - <strong>C:\ProgramData\Company ABC\enginesettings.list</strong>;</p></li> <li><p>In <strong>enginesettings.list</strong> you need to put the following text somewhere in the end: <code>&lt;LogRequestCountersOnExit&gt;true&lt;/LogRequestCountersOnExit&gt;</code> <strong>. This setting should work for all backup versions, but starting from Backup 5.4 you should switch to the following setting:</strong> <code>&lt;LogRequestsOnExit&gt;true&lt;/LogRequestsOnExit&gt;</code> ;</p></li> <li><p>Run your plan;</p></li> <li><p>Click on Tools → Diagnostic → Open in folder;</p></li> <li><p>Find the latest modified file with <strong>.log</strong> extension (file name is your backup plan ID);</p></li> <li><p>In the end of the file you will see:</p></li> </ul> <pre><code>2016-12-15 14:02:35,207 [SERV] [1] NOTICE - Uploaded: 2(769 KB). Deleted: 0. Failed: 0 2016-12-15 14:02:35,249 [SERV] [1] NOTICE - Request GET: success 15, failed 0 2016-12-15 14:02:35,249 [SERV] [1] NOTICE - Request PUT: success 15, failed 0 2016-12-15 14:02:35,249 [SERV] [1] NOTICE - Request HEAD: success 4, failed 0 2016-12-15 14:02:35,249 [SERV] [1] NOTICE - Request DELETE: success 15, failed 0 </code></pre> <p><img src="/content/images/efe6c2b3-77c2-4e97-91a6-e0ac98d5dcbb.png" alt="" /></p> <p>Now you can see how many requests have been sent.</p>