# Unable to integrate logstash to salesforce

**URL:** <https://discuss.elastic.co/t/unable-to-integrate-logstash-to-salesforce/310850>\
**Category:** Logstash\
**Created:** [July 28, 2022, 10:13am UTC](https://discuss.elastic.co/t/unable-to-integrate-logstash-to-salesforce/310850 "2022-07-28T10:13:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayaan\_Shaik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayaan_shaik/32/97855_2.png) [@Ayaan\_Shaik](https://discuss.elastic.co/u/Ayaan_Shaik)\
**Post date:** [July 28, 2022, 10:13am UTC](https://discuss.elastic.co/t/unable-to-integrate-logstash-to-salesforce/310850/1 "2022-07-28T10:13:21Z")

</div>

Hi,  
I'm Trying to integrate salesforce to the logstash for data log ingest into ELK stack, But i'm not able connect succefully to the logstash salesforce connection.

I have done connected app as per elastic doc and then provided the consumer key nd secret and security token to logstash config file called (/etc/logstash/conf.d/salesforce.conf  
) and my consumer details below are:

```auto
input {
   salesforce {
      client_id => 'XXXXXXX' #Salesforce consumer key
      client_secret => 'XXXXX' #Salesforce consumer secret
      username => 'rajxxxx' #the email address used to authenticate
      password => 'Alxxxxx' #the password used to authenticate
      security_token => 'xdxdddd' #Salesforce security token
      sfdc_object_name => 'Opportunity' #Salesforce object to track
   }
}

output {
   elasticsearch {
      index => "sforce"
      host => "http://xxxxfdxxxx:9200"
   }
}

```

Like above my config looks like  
please suggest me if i'm wrong on the above config..  
Need help on this

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 25, 2022, 10:13am UTC](https://discuss.elastic.co/t/unable-to-integrate-logstash-to-salesforce/310850/2 "2022-08-25T10:13:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
