Why Graylog index rotation and retention planning comes before the first log arrives
Index rotation and retention planning sets your storage cost, how far back your team can search, and how much compliance exposure you carry. Before the first log reaches Graylog, you need to decide how long each log type stays searchable and how much storage that requires. Graylog stores messages in indices and rotates them by message count, size or time. In Graylog Open, retention then deletes the oldest indices once the configured limit is reached. Graylog Enterprise adds data tiering and archive restore, which change how older data is held and brought back, so the choice of edition shapes the retention design as well as the budget.
This is harder than it looks for three reasons. Retention mistakes are expensive to reverse: data deleted under a short policy cannot be searched later, and keeping data longer than a regulation or policy requires creates its own exposure. Index sets are also hard to reshape once data is flowing, so the way you split log types into index sets, and the rotation and retention settings on each, should be fixed before go-live rather than adjusted under load. Finally, the same daily ingest produces very different storage needs at different retention lengths. Multiply your measured daily volume by the number of retention days, then add headroom. The Graylog system architecture guidance recommends daily ingest times retention days times 120 percent as a starting point. Confirm the daily volume per source from your own measurements, not from estimates.
Decide the policy with a named group rather than leaving it to whoever sets up the first index set. Security usually sets the investigation window, compliance sets the minimum and maximum retention per data type, and the platform team owns the storage sizing and the rotation settings. The teams that search the logs should confirm that the windows they need for incident work are covered. Write down the answers per log type, including which fields and sources belong in each index set, and get sign-off before the first input starts. Retention for a regulated log type should also be checked against your auditors' expectations, since DeployOpen prepares evidence but does not decide what your regulators require.
Which Graylog parts control storage, rotation and retention
Graylog storage is set by a chain of components: streams decide where messages go, index sets decide how they are stored, and the storage backend and journal decide whether the cluster can keep up. Each part has a different owner and a different failure mode, so planning them together avoids surprises in disk use and search coverage.
Index sets per log type
An index set is the unit that holds a group of messages with its own shard count, replica count, rotation and retention settings. Operators usually create one per log type or retention class, such as security events kept longer than debug logs. Check whether each type has a distinct retention requirement before adding another set, because every extra set adds indices to manage and monitor.
Index model docsRotation strategy
Rotation decides when Graylog closes the active index and starts a new one. The strategy can be based on message count, index size or elapsed time, and the choice changes how evenly data spreads across indices and how predictable disk growth is. Pick the trigger that matches your ingest pattern, and test it against a busy day, not a quiet one.
Retention strategy
Retention decides what happens to old indices once the index set holds its maximum number. In Graylog Open, the oldest indices are deleted, so data disappears on a schedule with no separate archive. Confirm with your compliance team how long each log type must remain searchable before setting retention, since deleted indices cannot be restored from Graylog Open.
Streams that route messages
Streams sort incoming messages by rules and assign each one to an index set. A message that matches no stream lands in the default index set, which can quietly mix data that should be kept separately. Review stream rules after each new source is onboarded, and confirm that security-relevant sources reach the index set with the intended retention.
Storage backend
Log storage runs on Graylog Data Node or self-managed OpenSearch, and the backend sets the real limits on shards, disk and replication. Graylog recommends Data Node as the search backend, and OpenSearch 1.x use is deprecated since Graylog 7.0. Confirm the backend version against the compatibility matrix and size disks for replicas as well as primary data.
Compatibility matrixMessage journal and data tiering
The message journal buffers accepted messages on disk before they are indexed, so a slow or unavailable search backend does not drop ingest immediately. Size it on fast disk using the journal guidance in Graylog's architecture documentation. In Graylog Enterprise, data tiering and the data lake with archive restore add a further layer for moving older data to cheaper storage and restoring it when needed. Ask the vendor which tiers and restore times apply to your edition.
System architecture docsWhich rotation and retention choices fit your log types
This table compares rotation methods, index set layouts, retention approaches and retention lengths for different log types. Read each row as a choice, then check when it fits and what it costs your team to operate. The main takeaway is that retention deletion in Graylog Open is permanent, so any log type that must stay searchable for longer needs a plan for tiering or archiving before ingest starts.
| Decision | When it fits | Operational cost and trade-off |
|---|---|---|
| Rotation by message count | Log types with steady event sizes where a fixed number of messages per index keeps index contents predictable | Index sizes vary with message length, so storage per index can drift; confirm the rotation threshold against observed daily ingest |
| Rotation by size | Log types with variable message length where you want each index to stay within a storage budget | Time coverage per index varies with volume, so a quiet day and a busy day produce indices covering different time spans |
| Rotation by time | Log types you search by date range, such as daily security review or incident timelines | Index count grows with retention length and each rotation period, and busy periods can produce large indices that are slower to search |
| One index set per log type | Log types with different retention, access rules or search patterns, such as firewall logs versus application debug logs | More index sets to create, review and monitor; each set needs its own rotation and retention settings |
| Shared index set for related types | Closely related log types with the same retention and the same audience, such as several application logs from one service | A single retention setting applies to all types, so a noisy source can push out data you need to keep longer |
| Retention deletes old indices (Graylog Open) | Environments where data past a fixed age has no requirement to stay searchable | Deleted indices cannot be searched again in Graylog Open; confirm with your compliance owner how long each log type must remain available before setting deletion |
| Data tiering and archiving (Graylog Enterprise) | Log types that need older data searchable or restorable after leaving hot storage | Tiering and archive restore fall under Enterprise licensing and its processed data scope; confirm the licensed volume and archive location in the quote |
| Short retention for high-volume debug logs | Verbose application or debug output used mainly for recent troubleshooting | Lower storage use, but any incident that needs older debug data will have no record; document this trade-off for the owning team |
| Longer retention for security and audit logs | Authentication, admin activity and security event logs that investigators or auditors may review over an extended period | Higher storage and backup load on Data Node or OpenSearch; confirm the retention period with your security, audit and legal requirements before setting it |
How to set up index sets, rotation and retention in order
This sequence turns a list of log sources into index sets with tested rotation and retention settings, so each log type lands where it should and ages out on purpose. The result is a documented storage design that the team can verify and hand over.
Inventory and classify log sources
List every source that will send logs, including the owning team, the log type (for example firewall, application, authentication or audit), the expected daily ingest in gigabytes, and the period the business or compliance owner says the data must stay searchable. Group sources that share a type and retention need into a small number of retention classes. Ask each owner to confirm the figures, since estimates from the source side are often wrong. The step is done when every source maps to exactly one log type and one retention class, and the owners have signed off the table.
Confirm the storage backend and version
Record which Graylog version you will run and which search backend it will use, either Graylog Data Node or self-managed OpenSearch. Check both against the Graylog compatibility matrix, including MongoDB compatibility for the metadata store. Note that OpenSearch 1.x use is deprecated from Graylog 7.0 and will be removed in Graylog 8.0, so a 1.x cluster needs a plan before the version you deploy. The step is done when a written compatibility check names the exact versions in use and the matrix row it was checked against.
Create one index set per retention class
In the Graylog web interface, create an index set for each retention class from the previous step, using the index model documentation for the exact field names and options. Set the index prefix, shard and replica settings agreed with the platform owner, and choose the rotation strategy (by message count, size or time) that fits the class. Set the retention strategy so that the oldest indices are deleted once the limit is reached. The step is done when each index set appears in the list with the settings you documented, and a configuration review by a second person finds no differences from the design.
Route streams to the right index sets
Create one stream per log type, add stream rules that match the source fields or inputs, and assign each stream to the index set for its retention class. Where a message must be re-routed or enriched first, use a processing pipeline rule rather than changing the source. Confirm that messages cannot match two streams that point at different index sets, since the outcome then depends on rule order. The step is done when a stream-to-index-set table exists and every stream has exactly one destination.
Send test traffic and confirm landing
Send a known set of test messages from one source per log type, using the inputs that production will use. Search for each test message in Graylog and open its details to confirm the index name shown matches the index set you expected. Repeat for one message that should be excluded by a rule, to confirm it does not land in the wrong place. The step is done when every test message is found in the expected index and the exclusion case behaves as designed.
Check rotation and deletion on real indices
Review the index list for each index set and confirm that new indices are created when the rotation condition is met, and that the number of retained indices does not exceed the retention setting. Where a short test rotation is practical in a non-production environment, run it so the behavior is seen before production volume arrives. Confirm the oldest indices are removed once the limit is reached, and that no index holds data from a class it should not contain. The step is done when the index listing matches the rotation and retention design and a dated record of the check is saved.
Document the storage design and sizing basis
Write down the index sets, rotation and retention settings, stream-to-index-set mapping, daily ingest assumptions and the storage sizing calculation. For sizing, the Graylog system architecture guidance is to take daily ingest multiplied by retention days and by 120 percent, and to size the message journal at 3 to 5 times daily ingest on SSDs. Record who owns each setting and what triggers a review, such as a new source or a change in volume. The step is done when the document is stored with the configuration and the platform owner has accepted it.
How a message moves from input to index to retention
The path starts at log sources sending to Graylog inputs. Streams and processing pipelines route each message to an index set, and that index set writes to the Data Node or OpenSearch cluster. Rotation closes the active index and opens a new one, while retention deletes the oldest indices once the policy is reached. Enterprise adds a second path for data tiering and archiving, so teams on Open should check which retention actions they can rely on before they size storage.
Message flow from log sources through inputs and index sets to rotation, retention and the Enterprise tiering path.
How index rotation and retention change in single-node and multi-node deployments
A single-node or Docker Compose trial puts the Graylog server, its configuration database and the search backend on one host or a small set of containers that share one disk pool. Every index set, the message journal and the operating system compete for the same free space, so retention decisions have to fit a single storage budget. Rotation and deletion still run on the Graylog side, but the effect is visible on one volume, which makes it easier to test but easy to overfill if the trial ingest grows.
- Shared disk pool: Index data, the message journal and the database files all draw from one volume, so size that volume for the whole stack, not only for logs.
- Journal on the same host: The message journal is held on the Graylog node itself and must be sized separately from the index storage it feeds.
- Simple retention checks: Confirm that rotation and retention settings on each index set delete the oldest indices on schedule before you rely on them.
- Low redundancy: A single search backend means a disk failure removes both recent and historical logs, so treat the setup as a trial, not a record of evidence.
- Version confirmation: Check the compatibility matrix and installation docs for the search backend and MongoDB versions that your chosen Docker or package install supports.
Before rollout, confirm in the vendor documentation which search backend the chosen install method ships with and how its storage is mounted in your containers.
The medium to large layout in the Graylog multi-node guide separates roles. Three Graylog and MongoDB nodes run the server, configuration and metadata, while three Data Nodes form a separate cluster that holds the indices. Retention and rotation are still defined per index set, but the enforcement and the disk space sit on the Data Node cluster, so each Data Node must be sized for its share of the indices plus headroom for replicas and rotation. Load balancing sits in front of the Graylog nodes, and only one node acts as leader.
- Per-node storage: Size each Data Node for its share of daily ingest times retention, applying the supplied formula of daily ingest times retention days times 120 percent as a starting point, then confirm replica settings with the vendor.
- Journal on every Graylog node: Each Graylog node keeps its own message journal, so size it on every node, not only the leader, and place it on fast local storage.
- Leader setting: Follower Graylog nodes must have
is_leaderset to false in their configuration, or rotation tasks can run more than once. - Retention on the cluster: Deleting old indices reclaims space on the Data Nodes, so verify that the cluster returns space as expected after a rotation cycle.
- Failure planning: Plan how indices and the journal behave when one Data Node or Graylog node is lost, and confirm the recovery steps in the multi-node and system architecture docs.
Before rollout, confirm the Data Node and MongoDB versions against the compatibility matrix and test rotation and deletion on a copy of the production index set layout.
How to size storage from daily ingest and retention
Start with the formula in the Graylog system architecture guidance: daily ingest multiplied by retention days multiplied by 120 percent gives the log storage estimate. Daily ingest is the volume of data you expect to arrive each day, retention days is how many days of that data you keep searchable, and the 120 percent factor is headroom the guidance adds on top of raw volume. Separately, size the message journal at 3 to 5 times daily ingest on SSDs. The journal is the buffer Graylog uses to hold incoming messages before they are written to the search backend, so it is sized on a different basis than the storage estimate. For illustrative purposes only, a source sending 10 GB per day with 30 days of retention would need roughly 360 GB under this formula, and a journal of 30 to 50 GB. Confirm the storage figure and journal sizing against the current guidance before you commit hardware.
The formula is a starting point, and several inputs move the result. Compression and field count change how much disk each message occupies, so measure stored size on a sample of real traffic rather than assuming the raw input size. Replicas in the storage backend multiply the footprint, so check the replica setting on each index set in Data Node or OpenSearch before you multiply. Indices in flight during rotation need temporary space, so leave margin for the newest index being written while older ones are still open. Log volume also grows over time as new services and sources are added, so plan for the volume you expect at the end of the retention window, not only today's figure. Those factors are easy to miss in a planning spreadsheet, so write each assumption down with its source.
Measure real daily ingest from each source before you size anything. Use the message counts and byte totals your shippers or existing platform report over a representative period that includes peak days, and do not rely on a single average. Then recalculate the storage estimate separately for each index set, because retention usually differs by log type. Security logs kept for a long compliance period and debug logs kept for a few days should not share one number. Ask your Graylog partner or administrator to confirm how the current version of Graylog and your chosen backend handle replicas and rotation, and check the result against a pilot index set before you scale the full deployment.
What drives the effort and cost of index and retention planning
This table lists the factors that make Graylog storage planning take more or less effort, with how each one raises cost and how to keep it down. Read it before scoping, since the first rows usually decide how many index sets and sizing rounds the project needs. The main takeaway is that most of the effort comes from unsettled retention decisions and unclear log types, not from the Graylog settings themselves.
| Driver | Why it raises effort or cost | How to keep it down |
|---|---|---|
| Number of log types and index sets | Each log type that needs its own index set adds rotation settings, retention values and search scope to review and test. | Group sources with similar retention and access needs into a small number of index sets, and document the reason for each one. |
| Daily ingest and its growth | Storage needs scale with daily volume and retention, so unclear volume estimates force repeated sizing rounds. | Measure current daily ingest per source and agree on a growth assumption that the team reviews on a set cadence. |
| Retention requirements from security, compliance and audit | Different teams often ask for different retention periods, and each conflict must be resolved before index sets can be configured. | Write a retention matrix by log type and get sign-off from compliance and audit owners before configuration starts. |
| Enterprise tiering or archive needs versus Open retention only | Graylog Open retains data by deleting the oldest indices, so longer or cheaper storage for older data requires a different design and edition decision. | Confirm early whether any log type needs archived or restorable history, and check edition features against the pricing and product pages. |
| Multi-node Data Node sizing | A clustered search backend needs node counts, disk and journal sizing checked together, which adds testing and review time. | Use one sizing worksheet that covers daily ingest, retention, the 120 percent storage guidance and journal headroom, and revisit it after each change. |
| Number of environments | Each environment such as development, test and production may need its own sizing, index sets and retention values, multiplying the configuration work. | Keep non-production retention short and documented, and copy production index set definitions from a single template. |
| Amount of stakeholder review | Every additional reviewer, such as a security lead, data owner or auditor, adds review cycles and can reopen settled decisions. | Set a review list at the start, collect comments in one place, and close each retention decision with a dated written approval. |
How to test that rotation and retention work and fail safely
Test rotation and retention before production traffic depends on them. Start with known test messages: send a labeled set of messages through each input that feeds an index set, then confirm in the Graylog web interface that every message landed in the index set you designed for its log type and nowhere else. Misrouted test messages usually point to a stream rule or pipeline problem, which is cheaper to find now than after a retention window has already deleted the data. Repeat the check for each index set, including the one that holds high-volume or security-relevant sources.
Next, prove rotation and retention act on the right indices. Either wait for the configured rotation condition (message count, size or time) or run a short test set with a deliberately low threshold in a non-production environment. Confirm that new indices appear with the expected naming and that the rule fires when you expect it to. For retention, check that only the oldest indices are removed and that indices still inside the retention window remain searchable. Confirm the exact behavior of each rotation and retention strategy against your Graylog version in the official index model documentation, since behavior differs between strategies and versions. Run a search that spans several rotated indices and confirm results come back complete for the period you asked for.
Then test failure behavior. In a non-production cluster, simulate storage pressure, such as filling a test volume or lowering available disk, and watch whether Graylog and the Data Node or OpenSearch backend behave as the documented settings say they should. The key question is whether a failed storage node causes ingest to stop visibly, through alerts and errors, or quietly drops messages. Keep the message journal sizing in view while you test, because it determines how long buffered messages survive an outage. Record the evidence for auditors: test plans, dated test messages and results, screenshots or exports of index set settings, rotation and retention logs, alert notifications, and a list of the Graylog version and backend versions tested. Retain these records with the change ticket so the retention design can be reviewed later.
What to monitor, back up and document after rotation goes live
Index rotation and retention only work if the storage behind them stays healthy and the plan stays current. The cards below cover what to watch, what to protect, and what to record so the next person can run the setup without guessing.
Disk use on storage and journal
Watch free disk on each Data Node or OpenSearch node and on the Graylog message journal, since both can fill independently of the index count. Rotation deletes old indices on schedule, but a full disk stops indexing and can back up inputs. Set alerts well before the disk reaches a level that leaves no room for rotation or merges to finish. Confirm the journal size against your daily ingest and the guidance in the system architecture docs.
Architecture docsIndex count and rotation activity
Review how many indices each index set holds and whether rotation runs when expected. A growing count can mean rotation thresholds are set too loosely, or that an index set was created for a stream that no longer exists. Check that retention removes the oldest indices and that the active write index rotates by the intended message count, size or time. Unexpected growth here is often the first sign that the retention matrix has drifted from the configuration.
Index model docsIngest growth against the sizing worksheet
Compare measured daily ingest with the figure used in the sizing worksheet at least each quarter. Storage need follows daily ingest times retention days, with the architecture docs advising a 120 percent margin. When actual volume moves past that margin, storage or retention needs a change before disks run short. Record the new daily figure and the date, so the next sizing exercise starts from real data.
Backup of configuration and metadata
Back up the Graylog configuration and the MongoDB metadata that holds index set definitions, rotation strategies, and retention settings. Index data on Data Node or OpenSearch is a separate backup decision that depends on your recovery targets. Restore a test copy into a non-production environment at least once to confirm that index sets come back with the same settings. Without this, a rebuilt server can recreate indices with default rotation and retention that do not match the plan.
Upgrade planning for index settings
Before each Graylog upgrade, confirm that index sets, rotation, and retention settings carry over and that the OpenSearch or Data Node version is supported by the target release. OpenSearch 1.x use is deprecated since Graylog 7.0 and will be removed in Graylog 8.0, so plan the storage backend move ahead of that version. Test the upgrade on a copy of the configuration first. Confirm the exact compatibility rules in the matrix for your target version.
Compatibility matrixRetention matrix and change control
Document the retention matrix, the owner of each index set, and the approved change process for rotation or retention edits. Each entry should list the log type, the stream it feeds, the rotation rule, the retention period, and the owner who signs off on changes. Route changes through a ticket so compliance and storage teams see them before they take effect. Review the matrix on a fixed schedule so it reflects the configuration actually running.
Questions teams ask about Graylog index rotation and retention planning
How much effort does index and retention planning take for a small versus a large log estate?
The effort scales with the number of log types, sources and retention rules more than with the raw size of the platform. A small estate with a few sources and one retention rule can usually be planned in a short working session, because there are only a handful of index sets to define. A large estate needs a full inventory of sources, a separate index set for each data type with different retention needs, and a review of how streams and pipelines route messages into those sets. Storage sizing adds work in both cases. Graylog's system architecture guidance advises sizing log storage as daily ingest times retention days times 120 percent, so the team must first measure real daily ingest per source. Ask any partner to base the estimate on measured volume from your own environment, not on assumptions.
Can our own team plan Graylog index rotation and retention without outside help?
Yes, a team with Graylog operations experience can do this in-house, and the Graylog index model documentation covers how rotation by message count, size or time and retention that deletes the oldest indices work. The harder part is usually not the setting itself but the decisions around it: which logs have compliance-driven retention periods, which can be shorter, and who signs off on those periods. An outside partner adds value when the team lacks time to inventory sources, when several compliance regimes apply to different data, or when the sizing needs to be checked against storage hardware before purchase. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications, so the retention decisions still need approval from your compliance owners.
What does the planning work need from our team?
The planning work needs four inputs from your side, and missing any of them slows the sizing and the design. First, a log inventory listing each source, its log type and its approximate daily volume. Second, the retention rules your policies or regulators require for each log type, including how long data must stay searchable. Third, access to the current Graylog or log platform so the team can read real ingest rates and index usage, along with access to the storage platform that will hold Data Node or OpenSearch indices. Fourth, input from compliance and security owners who can confirm which logs are in scope and who approves exceptions. Confirm these inputs before a quote is agreed, because they set the boundaries of a fixed-scope engagement.
Can Graylog Open keep logs longer than the retention I set?
Graylog Open does not keep indices past the retention you configure. Its retention setting deletes the oldest indices once the rotation limits are reached, so a log type only stays searchable for the period you define in its index set. If you need data to stay available for longer, you can either increase the retention in that index set and size storage for the extra days, or export the data to storage outside Graylog. Keeping longer searchable history has a direct storage cost, since the retention days are multiplied by daily ingest in the sizing formula. Confirm with your storage team how much space the longer period requires before changing the setting.
When is Graylog Enterprise data tiering or archiving worth the license cost?
Enterprise is worth evaluating when you need older logs to remain retrievable at lower cost, or when restoring archived data must be handled as a managed workflow. Graylog Enterprise adds a data lake with archive restore and data tiering, and it is licensed at a published starting price of 15,000 US dollars per year with a minimum of 10 GB per day or 100 Graylog Compute Units, according to the Graylog pricing page. Compare that subscription with the storage you would otherwise add to keep long retention in Open. The case strengthens when long retention is large relative to daily ingest and when restore frequency is low. Ask for a written comparison using your measured daily volume and retention periods before deciding.
How do I change retention on logs that are already stored?
Change the retention in the index set that holds those logs, and check the effect on existing indices before saving. Graylog applies rotation and retention to indices as they are managed, so a shorter retention removes the oldest indices once the new limit applies, and that deletion cannot be reversed from within Graylog. Before making the change, export or confirm any data that must be kept, record which indices will be removed, and test the change on a non-production index set if one exists. Coordinate the change with compliance owners because deleted data cannot be restored from Graylog Open. Check the current procedure in the index model documentation for your installed version, since the current docs cover version 7.2.
What does a fixed-scope retention planning engagement include?
A fixed-scope engagement covers the agreed set of log types, the index set design, the rotation and retention settings for each, and a storage sizing model based on measured daily ingest and retention days. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Expect the written scope to list the sources included, the retention rules provided by your side, the sizing assumptions, the deliverables and the handover of the settings. The quote follows from that written scope, and DeployOpen does not publish a price list. Cost drivers include the number of log types, the number of sources, how much inventory work your team must complete first, and whether the sizing must be validated against hardware. Request a quote that lists each of these items separately. For related planning, see the Graylog implementation plan and cost page and the Graylog cost of ownership and editions page.
How DeployOpen plans, builds and hands over Graylog storage
DeployOpen plans Graylog storage from your log sources, daily ingest and retention requirements, then builds index sets, rotation and retention inside your own infrastructure. The written scope, test evidence and handover notes let your platform and compliance teams review and operate the storage design after the engagement ends.
How we scope
- Inventory log types, sources and daily ingest so each type gets its own index set
- Record retention periods per log type, agreed with your security and compliance owners
- Confirm the Graylog edition and storage backend before any sizing or build work starts
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins
How we build
- Configure index sets with rotation by message count, size or time, matched to each log type
- Set retention to delete the oldest indices in Graylog Open, or design tiering and archiving if Enterprise is in scope
- Size storage from daily ingest, retention length and headroom, and confirm the message journal sizing
- Test rotation and retention on non-production data and check that searches still cover the required window
How we hand over
- Deliver a written index model covering each index set, its rotation trigger and its retention rule
- Document the sizing worksheet with its inputs, so your team can rerun it when volumes change
- Provide runbooks for checking disk use, reviewing rotation events and changing retention settings
- Walk your platform and security teams through the design and record open questions for follow-up
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover
- Revisit index sets and retention when new log sources, volumes or compliance requirements arrive
- Confirm with your team which support scope, response expectations and review cadence apply to your environment

