Storage requirements
Using the sustained logs per second, estimate the expected log volume per day. Then, use the expected log volume per day to calculate the disk space needed for the customer's retention requirements.
The average log size is ~150 bytes in size. Use this information to perform the following calculation
(Sustained logs per second) x (Seconds per working day) x (Log entry size) ÷ 1024 ÷ 1024 ÷ 1024 = Log storage in GB per day
Note: We use the Logging Rate/sec value to calculate the sustained logs per second. We assume the server will receive this number of sustained logs per second for a certain number of hours during a workday. In this example, we estimate a 12-hour workday, but you may need to adjust this period based on your scenario.
Log files and log index are the same size (log indexing has a 1:1 ratio). The default retention period for indexing is 14 days. However, the retention period can be changed.
Then calculate the disk size required for the customer's specified retention period.
Log storage in GB per day x Retention period = Storage required for log retention (GB)
Example calculation:
- 2500 logs per second
- 90-day retention period
- 14 days for indexes to be kept
2500 x 43200 x 150 ÷ 1024 ÷ 1024 ÷ 1024 = 16 GB
(~16 GB x 90 days) + (16 GB x 14) = 1664 GB required
-------
If you like this post please give a thumbs up(kudo)! 🙂