• Print
  • Share
  • Dark

How Do I Monitor Daily Log Usage?

  • Updated on 13 Jun 2018
  • 1 minute to read
  • Contributors

There are several ways to keep tabs on the amount of your allotted logging usage each day.

Via Billing Page

The easiest way to calculate ELM usage is to visit your Billing page (Settings > Billing) each day at the same time and divide by the number of days in the billing period that have elapsed:

In this case, 4.06GB of usage / 14 days = 0.29 GB/day

Via Log Monitors

Sometimes you may want an up-to-date count of the number of log statements recorded over the past 24 hours and calculate your usage from that. This method also gives you the flexibility to create Log Query Monitors so you can be alerted if your usage goes above a defined threshold.

Step 1 - Set up the query

Visit your logs dashboard, set the time frame to the last day, and click "Save".

In the "Save Search" dialog, enter a name for your search under the "Save new" heading. In this case, "All Logs" is a reasonable name, but you're free to use what you'd like.

Step 3 - Verify log search is saved

Clicking on the "Searches" box in the sidebar will list all the current saved searches in your account.

Step 4 - Create the log query monitor

Click "Go to Log Queries" (above screenshot) to visit the Log Query Monitors page. Add a new one with the button at the top and set your monitor properties. The critical properties are:

  • Check Frequency - Every Hour is a reasonable frequency, but you can modify to your needs.
  • Search Time Frame - Set this to 1440 minutes (24 hours). That will ensure the monitor aggregates data for the last 24 hours.

Step 5 - See the results

Now that you have a working log monitor, you can view the record count on the Log Query Monitors screen. You can keep tabs on the number of results, add alert & notification thresholds so you're alerted when there are an excessive number of log statements, and you can get an estimate of the amount of storage your log statements used.