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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...