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!

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