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
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!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...