Splunk Dev

How to upload a file/folder from a remote machine to Splunk using Java?

srinath1691
Engager

I want to upload a file/folder from a remote machine using a java program to Splunk on a local machine. I have created the connection with Splunk, but I couldn't figure out how to upload it. Splunk requires that the path of the file/folder to upload be local. Also, if possible, is there a way to do it without sharing the directory?

Tags (4)
0 Karma
1 Solution

srinath1691
Engager

I didn't get the actual solution though. The work around that I did was to transfer files from the remote machine to the machine where Splunk was installed using Java (Socket programming) and then uploaded the files to Splunk. Hope it helps.

View solution in original post

0 Karma

srinath1691
Engager

I didn't get the actual solution though. The work around that I did was to transfer files from the remote machine to the machine where Splunk was installed using Java (Socket programming) and then uploaded the files to Splunk. Hope it helps.

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...