Getting Data In

Index a file according to the modify time only

rayar
Contributor

I have files uploaded to the NT share
The file is indexed and will be updated daily by QC system
Most of the time the file will stay the same
the retention time for the index is defined as 7 days
How I can index the file once a day after it's uploaded to the share event the data in the file is not changed ?

I tried the below in inputs.conf

[monitor://\raanana\Tabi4Splunk\QC_integration_csv\Splunk-ABP_DEV.csv]
disabled = 0
index = penetrationtest_pbg
sourcetype = csv_current_time
ignoreolderthan=1d
crcSalt =

0 Karma
1 Solution

manjunathmeti
Champion

In props.conf set CHECK_METHOD = modtime for the source to check only the modification time of the file.

props.conf

[source::\raanana\Tabi4Splunk\QC_integration_csv\Splunk-ABP_DEV.csv]
CHECK_METHOD = modtime

View solution in original post

manjunathmeti
Champion

In props.conf set CHECK_METHOD = modtime for the source to check only the modification time of the file.

props.conf

[source::\raanana\Tabi4Splunk\QC_integration_csv\Splunk-ABP_DEV.csv]
CHECK_METHOD = modtime
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...