Splunk Search

Uploading a bunch of files

ChhayaV
Communicator

hi,

I want to upload a bunch of files in a splunk i have a zipped file named SP.zip which is containing all the log files. I uploaded all the files using reg-ex given in splunk tutorial but its uploading only first log from the directory.

How can i upload all the logs?

Tags (2)
0 Karma
1 Solution

yannK
Splunk Employee
Splunk Employee

Are you using an input.conf to monitor the folder where the files are ?
Are your files still zipped ?

./splunk add oneshot "path/to/my/file" -sourcetype mysourcetype

View solution in original post

callan_splunk
Splunk Employee
Splunk Employee

just built an app to make this easier...

UPLOADER! http://apps.splunk.com/app/1707

0 Karma

ykpramodhcbt
Path Finder

Hi callan,

thanks for making our life easier with this app.

I tried but could not install the app because of the following error -

There was an error processing the upload.Invalid app contents: archive contains more than one immediate subdirectory: and ._uploader
Splunk 6.6.2

regards
Pramodh

0 Karma

yannK
Splunk Employee
Splunk Employee

Are you using an input.conf to monitor the folder where the files are ?
Are your files still zipped ?

./splunk add oneshot "path/to/my/file" -sourcetype mysourcetype

ChhayaV
Communicator

got it !!!

0 Karma

ChhayaV
Communicator

Awesome!!!!!!...worked :)...how can i specify host also in the same ?

0 Karma
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...