Migrate from Splunk
Move log shipping from Splunk to your Logit.io Logs stack in two parts. Senders that already use the HTTP Event Collector (HEC) change their endpoint and token. Universal Forwarders (UF) and Heavy Forwarders (HF) are replaced or placed behind a router such as Cribl.
What carries over
| Splunk | Logit.io |
|---|---|
| HEC senders, such as SDKs, the OpenTelemetry Collector, Fluent Bit and Vector | Change the endpoint and token, and turn compression and indexer acknowledgement off. See HEC cutover. |
| Universal and Heavy Forwarders sending Splunk-to-Splunk (S2S) | Replace them, or put Cribl in front. Splunk-to-Splunk is not a Logit.io input. See Replace forwarders. |
| Splunk indexes | Logit.io stores your logs in OpenSearch. An envelope's index value is a field in the document, not a separate index. |
props.conf and transforms.conf parsing | Rebuild as Logstash filters in the filter editor. |
| SPL searches and dashboards | Rebuild in OpenSearch Dashboards. See Searching. |
| Splunk alerts | Rebuild as Logit.io alerts. |
Check the HEC limits first
The Logit.io HEC endpoint is Splunk-compatible, with these differences. Check each sender against them.
| Topic | Logit.io HEC |
|---|---|
| Compression | Gzip is not supported. Send uncompressed bodies. |
| Indexer acknowledgement | Not supported. Disable it. /services/collector/ack and /services/collector/mint are not available. |
| Token | Your stack's API key, a UUIDv4. |
| Channel | Optional on the event route. Required on the raw route. |
| Request size | 9,800,000 bytes for the request body and for each event. Aim for batches of about 1 MB or 1,000 events. |
| Event shape | Each envelope needs an event key. Metadata such as host, source, sourcetype and index stays in the document. |
| Timestamps | Logstash sets @timestamp to ingestion time. The envelope's time stays as supplied unless you use the normalising filter. |
See Splunk HEC for response codes, retries and how events appear in OpenSearch.
Cut over HEC senders
-
Confirm the stack accepts your key. Send one event with curl. HTTP 200 with
{"text":"Success","code":0}means the API has queued it. The key and endpoint populate in the example when you sign in and select a stack.curl -i "https://@logitApiEndpoint/services/collector/event" \ -H "Authorization: Splunk @apikey" \ -H "Content-Type: application/json" \ --data-binary '{"event":{"id":"migration-test-1","message":"HEC cutover test"}}' -
In each sender, change four settings.
Setting Splunk Logit.io Endpoint https://<splunk-host>:8088/services/collector/eventhttps://@logitApiEndpoint/services/collector/eventToken Your HEC token Your stack's API key Compression Often on Off Indexer acknowledgement Optional Off -
Keep the sender's batch size at about 1 MB or 1,000 events.
-
Leave the old destination running while you compare results. Most senders support a second destination. If yours does not, send through Cribl or Vector, which can fan out to both.
-
Remove the old destination when the data matches.
Ready-made sender snippets for the OpenTelemetry Collector, Fluent Bit and Vector are on the Splunk HEC page.
Replace forwarders
Logit.io does not accept Splunk-to-Splunk traffic, so a forwarder's tcpout cannot point at your stack. Pick one of two routes.
Option 1: replace the forwarder
Install a Logit.io-supported shipper on each host and map each Splunk input to a source.
| Splunk input or output | Replace with |
|---|---|
[monitor://path] for log files | A filestream input in Filebeat, a filelog receiver in the OpenTelemetry Collector or loki.source.file in Grafana Alloy. |
| Windows Event Log inputs | Winlogbeat or the OpenTelemetry Collector's Windows event log receivers. |
Network inputs such as [udp://514] | A udp input in Filebeat, as shown on the pfSense page, or a syslog TLS sender such as RSyslog. |
outputs.conf [tcpout] | output.logstash in Filebeat, which is pre-filled on each integration page, or an OTLP exporter for Hosted OpenTelemetry. |
| Heavy Forwarder filtering and routing | Logstash filters, or a Vector or Cribl transform. |
For a first pass, Filebeat is the closest match to a Universal Forwarder. It reads files, keeps its own position and ships to your hosted Logstash.
Option 2: put Cribl in front
Point the forwarders' output at Cribl Stream (opens in a new tab), which can receive data from Universal and Heavy Forwarders on its Splunk TCP source. Then send from Cribl to Logit.io with the Splunk HEC destination, with Compress off and no indexer acknowledgement. This lets you change the destination without touching each host, at the cost of running Cribl.
Check the cutover
- In OpenSearch Dashboards, open Discover and check that new events arrive. Object events appear under
event.<key>. A text event stays a string inevent. - Compare daily counts for one source in Splunk and in Logit.io.
- Compare the fields you search and alert on. If you want
messageandsplunk.*fields, add the optional normalising filter and setfields.logit_hectonormalisein each HEC envelope. Without that field, the filter does nothing. - Watch for duplicates. An HTTP 503 partway through a batch can leave earlier events queued, so a retry can duplicate them. Include a stable, unique ID in each event.
- Rebuild searches, dashboards and alerts, then switch your team over.
Not covered
- Splunk-to-Splunk (S2S) ingestion.
- HEC indexer acknowledgement, gzip and the token mint endpoint.
- Migrating existing indexed data from Splunk. Cut senders over for new data and keep Splunk for history until it ages out.
If you need help planning a migration, contact support via live chat.