Deployment Architecture

How to index the data on condition basis?

ariyazudeen
New Member

For example:
I have a abc.csv with fields
UpdateDate, Name, Employee No, Description.
When i index the data I want to set the condition on
UpdateDate > Currentdate(system date). So if the UpdateDate less than Currentdate should be ignored while indexing it into splunk.

Need to index the data in csv that satisfies the given above condition instead of indexing the whole data in the csv.

Tags (1)
0 Karma

woodcock
Esteemed Legend

Look at attribute MAX_DAYS_AGO in props.conf (associate it with your sourcetype 😞
http://docs.splunk.com/Documentation/Splunk/6.6.0/Admin/Propsconf

I have never tried this with a value of 0 so I am not sure what it will do but I know a value of 1 will work. You will need to deploy this to your Indexers and restart every splunk instance there in order for it to take effect and only events that are indexed after the restart will be effected.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...