r/linuxadmin • • Oct 01 '26

VictoriaLogs for log indexing?

has anyone used victorialogs? Im currently using Graylog v7, local single instance on 5TB disk

using filebeat to ship logs to GL indexer

wondering how victorialogs performs comparatively. Anyone used it at all or have any feedback?

Thanks

10 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/SnooWords9033 Oct 08 '26

Spinning disks are limited with 200MB/s read speeds. So the query duration highly depends on how much data needs to be read from disk during the query. For example, if the query needs to read 20TB of data from disk, then it will take 20TB/200MB/s=100000 seconds = 28 hours. The query performance can be sped up significantly by using the optimizations mentioned above.

For example, if you store logs for 100 days, and search for logs over the last 24 hours, then it will automatically reduce the amounts of logs to read during query by 100x, and, consequently, the query duration will be reduced by 100x from 28 hours to 17 minutes.

The query duration can be reduced even more via the following tricks:

  • By limiting the set of log fields the query returns, via the fields pipe in the end of the query. This prevents from reading the data from other fields not mentioned in the fields pipe.
  • By narrowing down the logs to read via stream filters.

See more tips on how to reduce query duration in victorialogs - https://docs.victoriametrics.com/victorialogs/logsql/#performance-tips .