What moves and what does not
Run both tools side by side
The Collector can send each event to Squasher and to Splunk. Point your HEC clients at the Collector, and keep thesplunk_hec exporter in the config below until you turn off Splunk.
Switch the endpoint
1
Configure the Collector
Use a recent The transform reads the level from a HEC field named
otelcol-contrib build. It includes the splunk_hec receiver and exporter.otel-collector-config.yaml
level. Change the condition to match
where your events keep it. Squasher opens issues for logs at ERROR or FATAL.2
Start the Collector
Set
SQUASHER_API_KEY and SPLUNK_HEC_TOKEN in the Collector’s environment, then start it:3
Point your HEC clients at the Collector
Change the HEC URL in each client from Splunk to the Collector, for example
http://otel-collector:8088/services/collector/event. Keep the Authorization: Splunk ...
header. The clients do not need other changes.4
Send a test event
Check parity
Compare Splunk and Squasher for at least one week that includes a deploy:- The number of events per
sourcetypeeach hour. - The events at error level, and the issues that they opened in Squasher.
- The
host.nameandcom.splunk.sourcetypevalues on the logs.
Turn off Splunk
- Recreate the Splunk alerts that you need as monitors and notification routes.
- Remove the
splunk_hecexporter from the Collector, and restart it. - Remove the HEC tokens that no client uses anymore.
Next steps
OpenTelemetry
Send logs, traces, and metrics over OTLP.
HTTP API
Post JSON logs to Squasher without a Collector.
Add monitors
Open incidents from log queries and checks.
Set up notifications
Send incidents to Slack, email, or PagerDuty.