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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...