Getting Data In

Determining which all files are already indexed in a directory which is being monitored by a monitor mode

dishasaxena
Path Finder

Assuming we are indexing files in a directory which is in a monitor mode, then how to determine how many files are being already indexed and how many are left to be indexed at that particular time. We need to use this in order to remove or move files from that directory which are already indexed for storage consumption purpose.

Tags (1)
1 Solution

jbsplunk
Splunk Employee
Splunk Employee

From $SPLUNK_HOME/bin you can run 'splunk _internal call /services/admin/inputstatus/TailingProcessor:FileStatus'. If a file has been read, Splunk will tell you. By the way, there is already a view in the SoS app which provides visualizations around this command's output.

View solution in original post

dishasaxena
Path Finder

Hi,

These blogs really helped.I used the approach given in first blog. Thanks!!

Regards,
Disha

0 Karma

jbsplunk
Splunk Employee
Splunk Employee

From $SPLUNK_HOME/bin you can run 'splunk _internal call /services/admin/inputstatus/TailingProcessor:FileStatus'. If a file has been read, Splunk will tell you. By the way, there is already a view in the SoS app which provides visualizations around this command's output.

dishasaxena
Path Finder

Thanks for the answer.

Regards,
Disha

0 Karma

somesoni2
Revered Legend
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 ...