logstash-plugins / logstash-input-salesforce

Logstash input for pulling objects from salesforce
Apache License 2.0
16 stars 29 forks source link

feat: add config to use Salesforce Tooling API #26

Closed mkreth closed 2 years ago

mkreth commented 3 years ago

Salesforce provides information relevant for monitoring of a Salesforce application not only via the standard REST APIs but also via the Tooling API. I.e. the SecurityHealthCheck Score which is a measure also shown within Salesforce telling an admin how their org compares to the security baseline recommended by Salesforce. Extracting this SecurityHealthCheck Score and importing it as a metric to Elasticsearch provides the capability to follow the evolution of the score over time and identify trends. Example of a pipeline leveraging the Tooling API:

input {
    salesforce {
        api_version => '51.0'
        ...
        use_tooling_api => true
        sfdc_object_name => 'SecurityHealthCheck'
        sfdc_fields => [ 'Score' ]
    }
}

output {
    stdout {
        codec => rubydebug
    }
}

Output:

{
         "Score" => "74"
      "@version" => "1",
    "@timestamp" => 2021-04-21T19:25:29.074Z
}

Closes logstash-plugins/logstash-input-salesforce#27

mkreth commented 2 years ago

Hi @roaksoax, Thank you for your feedback! Happy to improve the pull request so it meets expectations.

mkreth commented 2 years ago

Hello @roaksoax, hello @yaauie,

Is there something I can/should do or could this PR be merged?

Thank you! Magnus

mkreth commented 2 years ago

Hello @roaksoax, hello @yaauie,

Is there something I can/should do or could this PR be merged?

Thank you! Magnus

Hello @roaksoax, hello @yaauie, Sorry for chasing you - but did you find time to look into merging this PR? Thank you, Magnus

karenzone commented 2 years ago

@yaauie Are you happy with the code changes? If so, I will merge and publish.

karenzone commented 2 years ago

Thanks for your contribution, @mkreth!

Published at v3.2.0: https://rubygems.org/gems/logstash-input-salesforce/versions/3.2.0