# How to Migrate Years of Splunk Logs to a Lower-Cost Platform (2027 Guide)

> A migration plan for moving off Splunk with years of historical logs: export options, re-ingest vs archive, pointing forwarders at OpenObserve's Splunk HEC endpoint, translating SPL to SQL, and a phased cutover.

Source: https://openobserve.ai/blog/migrate-splunk-logs/
Published: 2026-12-01
Authors: Md Mosaraf
Category: Engineering
Tags: OpenObserve, Logging, Cost, Migration, Integrations, Comparisons

---

**Migrating years of Splunk logs** means solving three problems: moving live ingestion, deciding what to do with historical data, and rebuilding the searches, dashboards, and alerts written in SPL. With OpenObserve, live ingestion is the easy part: Splunk forwarders send to OpenObserve's Splunk-compatible HEC endpoint with only a new URL and token.

## TL;DR

- Point your Splunk forwarders and HEC clients at OpenObserve's Splunk-compatible HEC endpoint, so live data moves with only a new URL and token.
- Re-ingest the historical Splunk data you still search, and archive the rest to object storage as files.
- Rebuild SPL searches, dashboards, and alerts in SQL, and use OpenObserve's AI assistant to translate common SPL patterns.
- OpenObserve is the cost-efficient destination for years of logs, because it charges by ingest and stores data as Parquet on object storage.

## What does it mean to migrate Splunk logs?

A Splunk migration moves three things to a new platform: the data that is still arriving, the data you already stored, and the queries your team built on top of it. If you're new to Splunk's vocabulary, these are the terms this guide uses:

| Term | What it means |
|---|---|
| **Forwarder** | The Splunk agent on each server that reads log files and ships them |
| **HEC (HTTP Event Collector)** | Splunk's HTTP API for sending events with a token. OpenObserve serves a compatible endpoint |
| **Index** | Where Splunk stores a set of events. In OpenObserve, the `index` field picks the **stream** |
| **`host`, `source`, `sourcetype`** | Metadata Splunk attaches to every event. OpenObserve keeps them as columns |
| **SPL** | Splunk Search Processing Language, the query language behind every Splunk search, dashboard, and alert |
| **Backfill** | Re-sending old, exported events into the new platform with their original timestamps |

The example in this guide is a storefront that writes NGINX access logs to a Splunk index called `web`. Every screenshot below comes from moving that index to OpenObserve.

## Why do teams migrate off Splunk?

The reasons usually come down to cost, lock-in, and the price of keeping data for years.

### Splunk licensing grows with data volume

Splunk Cloud Platform pricing isn't published; Splunk offers activity-based, ingest, or workload pricing by quote. (Source: Splunk pricing page, November 2026) As log volume grows, so does the bill, and teams start dropping data they would rather keep.

### SPL locks every search into one platform

SPL is proprietary. Every dashboard, alert, and saved search is written in it, so the longer a team stays, the more there is to rewrite.

### Long retention gets expensive

Years of logs on Splunk storage add up. OpenObserve stores data as compressed Parquet on object storage, which is what makes keeping years of logs affordable.

OpenObserve is ingest-based, with no per-host or per-user fees. OpenObserve Cloud costs $0.50 per GB ingested on an annual contract, or $0.70 per GB pay-as-you-go, plus $0.01 per GB queried, with 30 days of log retention included. You can also self-host it for free as open source. For other options, see our list of [Splunk alternatives](/blog/splunk-alternatives/) and the [Datadog vs Splunk comparison](/blog/datadog-vs-splunk/). For more on bringing the bill down, see [observability cost optimization tactics](/blog/observability-cost-optimization-tactics/).

## Step 1: Run OpenObserve in parallel with Splunk

Don't cut over in one move. Stand up OpenObserve and send new data to both platforms, so you can compare searches, dashboards, and alerts side by side before you switch anything off.

### How to create a Splunk HEC token in OpenObserve

1. In OpenObserve, go to **IAM > Ingestion Tokens** and click **New token**.
2. Give the token a name, such as `splunk-migration`, and tick **Also create a Splunk HEC token**.
3. Click **Create**.

![Create Token dialog in OpenObserve IAM with the name splunk-migration and the Also create a Splunk HEC token option checked](/assets/blog/migrate-splunk-logs/splunk-hec-create-token.webp)

OpenObserve then shows the **Splunk HEC token** and the **HEC URL**. Copy both now; you'll paste them into your forwarders.

![New Token Generated dialog showing the Splunk HEC token and the HEC URL ending in /services/collector, with the token masked](/assets/blog/migrate-splunk-logs/splunk-hec-token-generated.webp)

### How to point Splunk forwarders at OpenObserve

OpenObserve's HEC endpoint accepts the same requests as Splunk's:

| Setting | Value |
|---|---|
| Endpoint | `https://<O2_ENDPOINT>/services/collector` |
| Alias | `/services/collector/event` |
| Health check | `GET /services/collector/health` (no authentication) |
| Authentication | `Authorization: Splunk <splunk-hec-token>` |

The organization comes from the token, so the URL is a bare host with no `/api/` or organization path. Change only the URL and token in your forwarders and HEC clients. Disable `useACK` on the destination, because indexer acknowledgement isn't supported. The [Splunk HEC ingestion docs](https://openobserve.ai/docs/ingestion/logs/splunk-hec/) cover each setting.

Before you touch a forwarder, send one test event:

```bash
curl https://<O2_ENDPOINT>/services/collector \
  -H "Authorization: Splunk <SPLUNK_HEC_TOKEN>" \
  -d '{"event":{"level":"info","log":"test message for openobserve"},"index":"web","host":"web-01","sourcetype":"access_combined"}'
```

A successful request returns `{"text":"Success","code":0}`. Logs collected from files can also move to Fluent Bit, Vector, or the OpenTelemetry Collector reading the same paths.

### How to check that Splunk data is arriving

Open **Logs**, pick the stream named by the `index` field (here `web`), and run a search. The HEC `host`, `source`, and `sourcetype` fields arrive as regular columns, so searches that filtered on them in Splunk still work.

![OpenObserve Logs running SQL on the web stream: 5xx events with host, source /var/log/nginx/access.log, and sourcetype access_combined columns, and a histogram by status](/assets/blog/migrate-splunk-logs/splunk-hec-data-in-logs.webp)

If nothing shows up, check three things: the header uses the `Splunk` scheme, the path has no `/api/` or organization segment, and event timestamps are current. For more search syntax, see [log searching and filtering in OpenObserve](/blog/log-searching-and-filtering/).

## Step 2: Re-ingest or archive historical Splunk data

Years of Splunk data rarely all need to be searchable in the new platform. Split it by how you use it:

| Data | Typical use | Recommended approach |
|---|---|---|
| Recent months | Investigations, dashboards, trend analysis | Re-ingest into OpenObserve |
| Older data under compliance retention | Audits and rare lookups | Export to object storage as files; re-ingest on demand |
| Data near the end of its retention | Little or none | Leave it in Splunk to expire, or don't migrate it |

### How to export historical data from Splunk

Splunk documents several export methods: exporting search results from the UI, the CLI, and the REST API. For large exports, Splunk's Search Manual describes the CLI as the most stable method. The REST `search/jobs/export` endpoint is deprecated as of Splunk Enterprise 9.0.1 in favour of `search/v2/jobs/export`, and for very large result sets Splunk recommends running a normal search job in blocking mode and paging through the stored results. Searches that return more than the default 10,000 events need `max_count` raised when the job is created. (Source: Splunk docs, Export search results and Export data using the Splunk REST API, November 2026)

Practical tips:

1. **Export in time-range chunks,** such as one day per index, so failures are easy to retry.
2. **Keep the original timestamp** in every exported event.
3. **Export to compressed files in object storage** first, so the export and the re-ingest are decoupled.

### How to re-ingest historical data into OpenObserve

Send exported events to OpenObserve through the HEC endpoint, with the original event time in the `time` field (epoch seconds), or through the JSON ingestion API with `_timestamp`.

One setting matters for backfills. By default, OpenObserve drops events older than `ZO_INGEST_ALLOWED_UPTO` (5 hours) and the HEC endpoint still answers with success, because Splunk clients would otherwise retry forever.

For a historical backfill on a self-hosted deployment, raise `ZO_INGEST_ALLOWED_UPTO` to cover the time range you're loading, then set it back afterwards. On OpenObserve Cloud, plan the backfill with the OpenObserve team before you start.

### How to validate backfilled data against Splunk

After each chunk, count events per hour (or per day for long ranges) in OpenObserve and compare with the same count in Splunk:

```sql
SELECT histogram(_timestamp, '1 hour') AS hour, COUNT(*) AS events
FROM "web"
GROUP BY hour
ORDER BY hour
```

![Hourly event counts for the web stream in OpenObserve, used to compare backfilled data with Splunk](/assets/blog/migrate-splunk-logs/backfill-hourly-counts.webp)

If an hour is short, re-send that chunk. Because the counts match the `time` you sent, a gap usually points to events dropped by `ZO_INGEST_ALLOWED_UPTO` or a failed export.

## Step 3: Translate SPL searches to SQL

OpenObserve uses SQL for logs and traces and PromQL for metrics. If your team knows SQL, most Splunk searches translate in minutes.

### Common SPL to SQL translations

| SPL | SQL in OpenObserve |
|---|---|
| `index=web status=500` | `SELECT * FROM "web" WHERE status = 500` |
| `index=web \| stats count by host` | `SELECT host, COUNT(*) AS count FROM "web" GROUP BY host` |
| `index=web \| timechart span=5m count` | `SELECT histogram(_timestamp, '5 minutes') AS t, COUNT(*) FROM "web" GROUP BY t` |
| `index=web "timeout"` | `SELECT * FROM "web" WHERE match_all('timeout')` |
| `index=web \| top limit=10 uri` | `SELECT uri, COUNT(*) AS c FROM "web" GROUP BY uri ORDER BY c DESC LIMIT 10` |

Here is `index=web | stats count by host` as SQL, charted in the Logs **Visualize** view:

![OpenObserve Visualize view showing SELECT host, COUNT(*) FROM web GROUP BY host as a bar chart of requests per host](/assets/blog/migrate-splunk-logs/spl-stats-count-by-host-sql.webp)

### How to translate SPL with OpenObserve's AI assistant

OpenObserve's AI assistant (Enterprise; **Autobot** in the UI) can translate SPL searches into SQL, especially straightforward `search ... | stats ... by` patterns. Paste the SPL and ask for the OpenObserve SQL; the assistant checks the stream's fields and returns a query you can run straight from the answer.

![OpenObserve AI assistant translating index=web status>=500 | stats count by host, uri | sort -count | head 10 into a SQL query with GROUP BY host, uri and LIMIT 10](/assets/blog/migrate-splunk-logs/ai-assistant-spl-to-sql.webp)

Verify each translated query against the same time range in Splunk before you trust it.

## Step 4: Rebuild Splunk dashboards and alerts in OpenObserve

Dashboards and alerts usually take longer than data. OpenObserve's migration guidance notes that dashboard and alert count, not data volume, is the dominant variable in migration time. Prioritise:

1. **Alerts that page someone,** recreated as OpenObserve alerts with the same conditions and destinations.
2. **Dashboards used daily,** rebuilt in SQL or PromQL.
3. **Everything else,** only if someone still uses it. A migration is a good time to delete unused searches.

### How to rebuild Splunk dashboards in OpenObserve

Each Splunk panel becomes an OpenObserve panel with a SQL query. The fastest path is to run the translated query in **Logs > Visualize**, pick a chart, and click **Add To Dashboard**. This is the storefront dashboard rebuilt from its Splunk version:

![OpenObserve dashboard Storefront web (migrated from Splunk) with 5xx error rate, request count, p95 response time, requests by host, requests by status over time, 5xx errors by URI, and p95 latency panels](/assets/blog/migrate-splunk-logs/splunk-dashboard-rebuilt.webp)

| Panel | SQL |
|---|---|
| 5xx error rate (%) | `SELECT ROUND(100.0 * SUM(CASE WHEN status >= 500 THEN 1 ELSE 0 END) / COUNT(*), 2) AS error_rate FROM "web"` |
| Requests over time by status | `SELECT histogram(_timestamp, '10 minutes') AS t, CAST(status AS VARCHAR) AS status_code, COUNT(*) AS count FROM "web" GROUP BY t, status_code` |
| 5xx errors by URI | `SELECT uri, COUNT(*) AS errors FROM "web" WHERE status >= 500 GROUP BY uri ORDER BY errors DESC` |
| p95 response time (ms) | `SELECT histogram(_timestamp, '10 minutes') AS t, approx_percentile_cont(response_time_ms, 0.95) AS p95_ms FROM "web" GROUP BY t` |

For bulk patterns, see [migrating dashboards from Datadog, Grafana, Kibana, and CloudWatch](/blog/migrate-dashboards-datadog-grafana-kibana-cloudwatch-openobserve/) and [monitoring dashboards with OpenObserve](/blog/monitoring-dashboards-with-openobserve/).

### How to recreate Splunk alerts in OpenObserve

A scheduled Splunk alert maps to a **Scheduled** alert in OpenObserve. Go to **Reliability > Alerts > New alert**, pick the stream, switch the condition to **SQL**, and paste the translated search. Then set how often it checks, the threshold, and where it notifies.

![OpenObserve scheduled alert storefront_5xx_errors on the web stream with the SQL condition SELECT COUNT(*) AS errors FROM web WHERE status >= 500, a 10-minute check, and a preview](/assets/blog/migrate-splunk-logs/splunk-alert-rebuilt-sql.webp)

The preview on the right runs the query, so you can check the alert against real data before saving it. For a walkthrough of thresholds and destinations, see [alerting 101](/blog/alerting-101-from-concept-to-demo/).

## Step 5: Cut over from Splunk and decommission indexers

Once dashboards and alerts match, move workloads over in order:

1. **Move non-critical workloads first,** and validate retention, query latency, and alerting on them.
2. **Move critical workloads** once dashboards and alerts match.
3. **Stop sending to Splunk,** keep it read-only for any data you chose not to migrate, and decommission indexers when that data expires.

If you need to keep feeding Splunk during the transition, OpenObserve pipelines can forward data to Splunk too; see [sending data from OpenObserve pipelines to Splunk HEC](/blog/sending-data-from-openobserve-pipelines-to-splunk-using-splunk-http-event-collector/).

## How long does a Splunk migration take?

OpenObserve's migration guidance gives rough sizes for the parallel-run window:

| Daily volume | Parallel-run window |
|---|---|
| Under 100 GB per day | 4 to 8 weeks |
| 100 GB to 1 TB per day | 2 to 4 months |
| Over 1 TB per day | 4 to 6 months |

## Splunk migration checklist

Use this list to track the migration from first token to last indexer:

- [ ] Inventory Splunk indexes, daily volume per index, and retention requirements.
- [ ] List dashboards, alerts, and saved searches, and mark the ones still in use.
- [ ] Create a Splunk HEC token in OpenObserve and send a test event.
- [ ] Dual-ship live data from forwarders and HEC clients to Splunk and OpenObserve.
- [ ] Decide per index: re-ingest, archive to object storage, or let it expire.
- [ ] Export historical data in time-range chunks, keeping original timestamps.
- [ ] Raise `ZO_INGEST_ALLOWED_UPTO` for the backfill (self-hosted) or plan it with the OpenObserve team (Cloud).
- [ ] Validate hourly or daily event counts against Splunk for every backfilled chunk.
- [ ] Translate SPL to SQL and verify each query against the same time range in Splunk.
- [ ] Recreate paging alerts first, then daily dashboards.
- [ ] Move non-critical workloads, then critical ones, and stop sending to Splunk.
- [ ] Keep Splunk read-only until the data you chose not to migrate expires.

## Common Splunk migration mistakes to avoid

- **Backfilling without raising the ingest window.** Events older than `ZO_INGEST_ALLOWED_UPTO` are dropped while the HEC endpoint still returns success, so the backfill looks fine until you count events.
- **Leaving `useACK` on.** Indexer acknowledgement isn't supported, so forwarders configured to wait for acknowledgements will not deliver.
- **Re-ingesting everything.** Years of data you only keep for audits cost more to re-ingest than to archive as files in object storage.
- **Translating every saved search.** Many Splunk searches, dashboards, and alerts are no longer used; migrate the ones people rely on and delete the rest.
- **Cutting over in one step.** Without a parallel run you have nothing to compare query results, dashboards, and alerts against.

## What do you get after migrating from Splunk to OpenObserve?

OpenObserve is an open-source (AGPL-3.0) observability platform that replaces Splunk's log search and adds the rest of observability in one place. Read the [Splunk alternative docs](https://openobserve.ai/docs/overview/comparison-with-alternatives/splunk-alternative/) and the [Splunk alternative page](/splunk-alternative/). If you're also moving off Elasticsearch, see [replacing Elasticsearch for log management](/blog/replace-elasticsearch-log-management/).

- **Telemetry:** logs, metrics, and traces with a service graph and service catalog, plus continuous profiles.
- **Frontend monitoring:** real user monitoring (RUM), session replay, and error tracking.
- **Synthetic monitoring:** scheduled browser and protocol checks.
- **AI:** AI assistant, SRE Agent for AI root cause analysis, an MCP server, LLM observability and evaluations, anomaly detection, log patterns, and insights.
- **Alerting and reliability:** scheduled, real-time, composite, and anomaly alerts, incident management, and SLOs with error budgets and burn rates.
- **Dashboards and reports:** real-time dashboards and scheduled PDF, PNG, or CSV reports.
- **Data processing:** pipelines, VRL functions, enrichment tables, and metrics downsampling.
- **Storage and cost:** Parquet on object storage, Bring Your Own Bucket on Cloud, extended retention, and ingest-based pricing with unlimited users.
- **Security and governance:** SSO, RBAC, multi-tenancy, sensitive data redaction, audit trail, cipher keys, and federated search.
- **Compliance:** SOC 2 Type II, ISO 27001, and GDPR via the EU-Central 1 (Frankfurt) region.
- **Open standards:** OpenTelemetry-native ingestion, PromQL and SQL querying, and open source under AGPL-3.0.

## Get started with OpenObserve

- Sign up for [OpenObserve Cloud](https://cloud.openobserve.ai) with a 14-day free trial and generate a Splunk HEC token.
- Or self-host with the [OpenObserve quickstart](https://openobserve.ai/docs/getting-started/) for a backfill you fully control.
- Compare other log platforms in our roundup of [log management tools](/blog/log-management-tools/).

## Frequently Asked Questions

### Can I export historical data from Splunk?

Yes. Splunk documents several export methods: exporting search results from the UI, the CLI, and the REST API. For large exports, Splunk's Search Manual describes the CLI as the most stable method. The REST search/jobs/export endpoint is deprecated in favour of search/v2/jobs/export, and searches that return more than 10,000 events need max_count raised.

### Should I re-ingest old Splunk data or archive it?

Re-ingest what you still search, and archive the rest. Recent months that support investigations and dashboards are worth re-ingesting into OpenObserve so they're searchable with SQL. Older data kept only for compliance can be exported to object storage as files and re-ingested on demand, or left to expire in Splunk if its retention ends soon.

### Do I need to change my Splunk forwarders?

Not their configuration format. OpenObserve serves a Splunk-compatible HTTP Event Collector endpoint at /services/collector, authenticated with a Splunk HEC token generated in OpenObserve, so Splunk forwarders and HEC clients only need a new URL and token.

### Can I keep my Splunk searches and dashboards?

You rebuild them in SQL. OpenObserve uses SQL for logs and traces and PromQL for metrics instead of SPL. OpenObserve's AI assistant (Enterprise) can help translate SPL searches into SQL, especially straightforward search and stats-by patterns. Dashboard and alert count, not data volume, is usually the biggest factor in migration time.

### How long does a Splunk migration take?

OpenObserve's migration guidance sizes the parallel-run window at roughly 4 to 8 weeks for under 100 GB per day, 2 to 4 months for 100 GB to 1 TB per day, and 4 to 6 months above 1 TB per day. The number of dashboards and alerts to rebuild matters more than data volume.

### Why don't my backfilled Splunk events show up in OpenObserve?

Most often the events are older than ZO_INGEST_ALLOWED_UPTO, which is 5 hours by default. OpenObserve drops events outside that window but the HEC endpoint still returns success, so the send looks fine. On a self-hosted deployment, raise ZO_INGEST_ALLOWED_UPTO to cover the backfill range; on OpenObserve Cloud, plan the backfill with the OpenObserve team.
