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 the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...