Hi Team,
We are extracting the logs from Salesforce object. Here is our input configuration with a object name Error_Log__c.
input {
salesforce {
use_test_sandbox => true
client_id => 'xxx'
client_secret => 'xxx'
username => ''xxx"
password => ''xxx"
security_token => ''xxx"
sfdc_object_name => ''Error_Log__c"
#sfdc_filters => "LastModifiedDate > : Datetime.now().addMinutes(-15)"
}
}
*** We are getting the LastModifiedDate in our ES output.
We are facing 2 issues here .
- Data is been fetched from the beginning every time, which is causing duplicate entries.
- To rectify this, we are trying pass only last modified date in sdfc filters > last 15 mins. however , this sdfc filter mentioned config is throwing the error.
How could we resolve this issue ?
OR
Is there any other way to taking the max. of last modified date from the index and pass that as a filter value.
How do we schedule this input plugin to execute every 15 minutes to get the latest modified records.
any help would be appreciated !! Thank you .