Getting Data In

How to invoke Splunk daemon to parse newly added file right away

Stan
New Member

Since I usually turned of splunkd service on my local machine and only turn it back on when I need to do some log search.

Chances that when I turn the daemon back on, I will have some more files that needs to be indexed right away for search. Is there any way can make Splunk daemon do this? There may be 2 cases:

  1. index a file in an already under tracked folder.
  2. index a random file that's not under tracking folder.

Thanks.

Tags (1)
0 Karma
1 Solution

Genti
Splunk Employee
Splunk Employee

The file that is already under a tracked folder should be picked up automatically by splunk as soon as it gets turned on.
To monitor the new file all you have to do is login to splunk, go to manager, then data inputs and then files and directories. There you can tell splunk to monitor the new file and the parsing should start immediately. Follow these breadcrumbs: Manager » Data inputs » Files & Directories » Add New

View solution in original post

0 Karma

Genti
Splunk Employee
Splunk Employee

The file that is already under a tracked folder should be picked up automatically by splunk as soon as it gets turned on.
To monitor the new file all you have to do is login to splunk, go to manager, then data inputs and then files and directories. There you can tell splunk to monitor the new file and the parsing should start immediately. Follow these breadcrumbs: Manager » Data inputs » Files & Directories » Add New

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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