Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Send some data to Splunk over UDP
private static void udpInputDataExample() {
Service splunkService = connectAndLoginToSplunkExample();
// Get a UDP input to send to
UdpInput myInput = (UdpInput) splunkService.getInputs().get("9999");
// Send an event via a UDP datagram
try {
myInput.submit("message=\"Such a cute litle datagram\"");
} catch (IOException e) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.