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!

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

Introducing the 2024 SplunkTrust!

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