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!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...