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!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...