Getting Data In

HEC: Share a basic hello world script with Ruby to send to HEC?

daniel333
Builder

All,

I need to send some data from a Ruby script to HEC collectors. Anyone have a basic hello world script they can share sending a string to a HEC with ruby? Doesn't need to be fancy.

Tags (2)
0 Karma

horsefez
Motivator

I'm completely aware that you wish to get a Ruby script to work with Splunk HEC, but I'm going to take your words literally.

#!/usr/bin/env ruby

puts 'Hello world'

MuS
Legend

HeHE, awesome answer ! 🙂

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...