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

SplunkLogit.io
HEC senders, such as SDKs, the OpenTelemetry Collector, Fluent Bit and VectorChange 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 indexesLogit.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 parsingRebuild as Logstash filters in the filter editor.
SPL searches and dashboardsRebuild in OpenSearch Dashboards. See Searching.
Splunk alertsRebuild 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.

TopicLogit.io HEC
CompressionGzip is not supported. Send uncompressed bodies.
Indexer acknowledgementNot supported. Disable it. /services/collector/ack and /services/collector/mint are not available.
TokenYour stack's API key, a UUIDv4.
ChannelOptional on the event route. Required on the raw route.
Request size9,800,000 bytes for the request body and for each event. Aim for batches of about 1 MB or 1,000 events.
Event shapeEach envelope needs an event key. Metadata such as host, source, sourcetype and index stays in the document.
TimestampsLogstash 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

  1. 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"}}'
  2. In each sender, change four settings.

    SettingSplunkLogit.io
    Endpointhttps://<splunk-host>:8088/services/collector/eventhttps://@logitApiEndpoint/services/collector/event
    TokenYour HEC tokenYour stack's API key
    CompressionOften onOff
    Indexer acknowledgementOptionalOff
  3. Keep the sender's batch size at about 1 MB or 1,000 events.

  4. 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.

  5. 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 outputReplace with
[monitor://path] for log filesA filestream input in Filebeat, a filelog receiver in the OpenTelemetry Collector or loki.source.file in Grafana Alloy.
Windows Event Log inputsWinlogbeat 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 routingLogstash 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

  1. In OpenSearch Dashboards, open Discover and check that new events arrive. Object events appear under event.<key>. A text event stays a string in event.
  2. Compare daily counts for one source in Splunk and in Logit.io.
  3. Compare the fields you search and alert on. If you want message and splunk.* fields, add the optional normalising filter and set fields.logit_hec to normalise in each HEC envelope. Without that field, the filter does nothing.
  4. 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.
  5. 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.