Report this

What is the reason for this report?

How to do ELK setup on salesforce ..

Posted on July 18, 2016

Created a connected app in salesforce but how can i integrate salesforce with ELK



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

There is a community supported Logstash input plugin for Salesforce. It is not installed by default, but you can use the plugin command to add it. The command is slightly different depending on the version of Logstash that you are using:

  • Logstash version 2.2:
  1. cd /opt/logstash
  2. bin/plugin install logstash-input-salesforce
  • Logstash version 2.3:
  1. cd /opt/logstash
  2. bin/logstash-plugin install logstash-input-salesforce

To configure the plugin to use the credentials from Salesforce, create a file located at /etc/logstash/conf.d/salesforce.conf like:

input {
  salesforce {
    client_id => 'OAUTH CLIENT ID FROM YOUR SFDC APP'
    client_secret => 'OAUTH CLIENT SECRET FROM YOUR SFDC APP'
    username => 'email@example.com'
    password => 'super-secret'
    security_token => 'SECURITY TOKEN FOR THIS USER'
    sfdc_object_name => 'Opportunity'
  }
}

output {
  stdout {
    codec => rubydebug
  }
}

sfdc_object_name can be any of the objects provided by the Salesforce API.

See this blog post by the team at Elastic and the plugin’s documentation for all the configuration information.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.