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?

Labels (1)
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
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...