Skip to main content
Use Migrate from Splunk to copy selected historical datasets into Cotool Logs and rewrite selected Splunk scheduled searches as Cotool code detections. These are separate workflows. A historical backfill does not set up live collection, and rewriting a search does not publish the Cotool detection or disable the original search in Splunk. Open Integrations > Log Ingest > Migrate from Splunk, or go to Migrate from Splunk. This page requires organization-wide Manage Tools (tool.manage). Backfills need a provisioned Cotool log warehouse. To read Splunk directly or sync its detections, connect the Splunk integration with access to the relevant indexes and searches. To keep data in Splunk and query it there, use the integration without a backfill.

Backfill log history

In Log history, choose how Cotool should read the history:
  • Splunk datasets: Select Map Splunk (or Map Splunk again) to inventory the indexes and sourcetypes accessible to the connection. Find a dataset, review its suggested match, and select Backfill….
  • Splunk export in GCS: When Cotool cannot search Splunk directly, enter the gs:// export folder, choose a read connection, and select List datasets. The export must have a complete _manifest.json for each dataset under its index and sourcetype folder, pointing to the gzip-compressed NDJSON event files. An arbitrary set of JSON files is not a valid export. Use the in-app workload identity federation instructions to grant read-only access. If the list is truncated, list a narrower folder such as one index’s folder. Select Backfill… on the dataset you want.
In the backfill dialog, choose the Cotool log source and, if prompted, the named Log source the historical data belongs to. Review any matching and setup warnings. A suggestion is not proof of a match; Cotool skips records it cannot recognize as the selected source. Choose a range under Copy events from, then select Start backfill. Available ranges depend on the export’s coverage, the destination’s existing history, the warehouse retention policy, and the migration lookback limit. If the dialog warns that the target cannot match historical events to existing live rows, backfilling overlapping time ranges can produce duplicates. Follow Backfills for progress, indexed and skipped counts, and the last error. You can cancel an active backfill or retry a failed or canceled one. After it completes, use Log Search to verify representative events and date ranges in the target table. Backfilled Splunk history is not forwarded to logging sinks. Configure live log ingestion separately and verify where historical and live coverage meet.

Migrate scheduled searches

1

Sync Splunk searches

In Detections, check when searches were last synced. Select Sync again if the Splunk inventory needs updating.
2

Review prerequisites

Check what each search reads. If it shows Needs setup, follow the listed blockers, such as turning on the required integration and log stream. If it shows No known source, confirm the data needed by the SPL before relying on a rewrite.
3

Generate and review the draft

Select Migrate to generate a draft code detection. This step requires permission to create detections. When the status is Draft ready, select Review draft to inspect the rewrite.
4

Validate before publishing

Compare the draft with the original SPL: verify source tables, filters, lookback, thresholds, and the entities and evidence returned. Test the detection on a representative time window before publishing it. Publishing requires permission to edit the detection. After publishing, check its schedule and alert routing separately.
Do not retire the original Splunk search just because the draft was published. Compare results over known examples and confirm that the Cotool detection is enabled, executes as intended, and routes alerts to the right destination. See Operate detections and Alert routing.