Splunk Search

Searching local directories

jjriver2
New Member

I am trying to add and search data directly from my local file directory in splunk. I went to setting > data inputs > Add new Files & Directories > Start searching data

When I chose to continue searching the data no results showed? Why is this?

0 Karma

nwuest
Path Finder

Hi jjriver2,

Have you tried giving your Splunk forwarder a reboot? Typically if you make changes to the forwarder configuration you must start or restart the forwarder in most cases. The reason why is that the Splunk Universal Forwarder needs to restart for the new changes to take effect.

https://docs.splunk.com/Documentation/Forwarder/8.1.0/Forwarder/Starttheuniversalforwarder 

http://docs.splunk.com/Documentation/Splunk/latest/Admin/Configurationfilechangesthatrequirerestart

 

I do hope this helps!

V/R,

nwuest

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @jjriver2,

let me understand:

  • you configured an input read log files from a local directory of your Splunk Server,
  • you took these logs and stored them in an index (e.g. main),
  • then you searched on the configured index;

it this correct?

When you configured Add new files & Directories what did you do after?

I don't know how much you know Splunk, maybe it could be better to follow a video, how to monitor files:

for windows https://www.splunk.com/en_us/training/videos/getting-data-in-to-splunk-enterprise-windows.html

for linux https://www.splunk.com/en_us/training/videos/getting-data-in-to-splunk-enterprise-linux.html

Ciao.

Giuseppe

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...