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

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

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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...