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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...