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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...