Monitoring Splunk

how can i monitor a file size

steveskinner
New Member

Hi,

How can i configure inputs.conf + dashboard to monitor a file size

i.e. if i have a file on the C drive called c:/Test/package.zip how can i see the size of this file through Splunk dashboard

Many Thanks

Steve

Tags (1)
0 Karma

inventsekar
SplunkTrust
SplunkTrust

Please check this add-on...
File/Directory Information Input Add-on
The File Info add-on provides an input for indexing file meta-data (size, last modified dates, etc.) and indexing it in your Splunk instance to make it searchable.
https://splunkbase.splunk.com/app/2776/

Or, you might need to do scripted input.

Or, maybe, check this idea -
- finding the size of all events from the log and adding it.

on that Splunk Tutorial data, we have a file tutorialdata.zip:./www1/access.log and its size is 4.06 MB (4,262,086 bytes). thru this query, splunk shows its size as "4248458" (very close value, i think ;). approximately, i hope, its a good process)

source="tutorialdata.zip:./www1/access.log" | eval esize=len(_raw) | stats sum(esize) by sourcetype
thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...