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
SplunkTrust
SplunkTrust

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
SplunkTrust
SplunkTrust

HeHE, awesome answer ! 🙂

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...