logstash-input-salesforce 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 77f802703ee0eb2ff6336f54b62ad2ea687e24c0
4
- data.tar.gz: 715f8fa4e5ef752e8fa809c5df990c004f0e0f3b
2
+ SHA256:
3
+ metadata.gz: c517539792d623bd6a6f0d61045e388e02b93273cc038e9441b251d1c0ada4aa
4
+ data.tar.gz: 12ab6014d439c453bccbb8cb7dc6c8850a6edf4dd7e2cc11746a356f35d93747
5
5
  SHA512:
6
- metadata.gz: fc097212f81fcdf366eaa7af896708de61029ef087a3ebd61976cdd93ace2a86f9286b7ba44c49a86cc3a8a980625f8f29c5de016b199f26717c5fcaa40141f2
7
- data.tar.gz: 236488208822e14dcadcdfb3bb70c9310e1fe7dd7c6a88fd325f071ca0b05cf3d551ca37f5315de33a0a3004b813d5bb8588a7d5ae2f4ca3bbc181f15e3b2486
6
+ metadata.gz: 96b862ee7597ad5872071349197a45df5b18551a4fe1c7a639a0cb6fd05c43252e9a91015d321820988f23f4623366ccb6b29302f78b40dfea4058903c92bfe8
7
+ data.tar.gz: 6574a59e90ec7958059e627cb818d3c640788c0b1f092304eb52f324d2d3fe83afcd06fe96ae3724286308bfe79c4a9acc641a214c92c3706932d782f7a1519f
data/Gemfile CHANGED
@@ -1,2 +1,11 @@
1
1
  source 'https://rubygems.org'
2
- gemspec
2
+
3
+ gemspec
4
+
5
+ logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
6
+ use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
7
+
8
+ if Dir.exist?(logstash_path) && use_logstash_source
9
+ gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
10
+ gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
11
+ end
@@ -0,0 +1,199 @@
1
+ :plugin: salesforce
2
+ :type: input
3
+
4
+ ///////////////////////////////////////////
5
+ START - GENERATED VARIABLES, DO NOT EDIT!
6
+ ///////////////////////////////////////////
7
+ :version: %VERSION%
8
+ :release_date: %RELEASE_DATE%
9
+ :changelog_url: %CHANGELOG_URL%
10
+ :include_path: ../../../../logstash/docs/include
11
+ ///////////////////////////////////////////
12
+ END - GENERATED VARIABLES, DO NOT EDIT!
13
+ ///////////////////////////////////////////
14
+
15
+ [id="plugins-{type}-{plugin}"]
16
+
17
+ === Salesforce input plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ This Logstash input plugin allows you to query Salesforce using SOQL and puts the results
24
+ into Logstash, one row per event. You can configure it to pull entire sObjects or only
25
+ specific fields.
26
+
27
+ NOTE: This input plugin will stop after all the results of the query are processed and will
28
+ need to be re-run to fetch new results. It does not utilize the streaming API.
29
+
30
+ In order to use this plugin, you will need to create a new SFDC Application using
31
+ oauth. More details can be found here:
32
+ https://help.salesforce.com/apex/HTViewHelpDoc?id=connected_app_create.htm
33
+
34
+ You will also need a username, password, and security token for your salesforce instance.
35
+ More details for generating a token can be found here:
36
+ https://help.salesforce.com/apex/HTViewHelpDoc?id=user_security_token.htm
37
+
38
+ In addition to specifying an sObject, you can also supply a list of API fields
39
+ that will be used in the SOQL query.
40
+
41
+ ==== Example
42
+ This example prints all the Salesforce Opportunities to standard out
43
+
44
+ [source,ruby]
45
+ ----------------------------------
46
+ input {
47
+ salesforce {
48
+ client_id => 'OAUTH CLIENT ID FROM YOUR SFDC APP'
49
+ client_secret => 'OAUTH CLIENT SECRET FROM YOUR SFDC APP'
50
+ username => 'email@example.com'
51
+ password => 'super-secret'
52
+ security_token => 'SECURITY TOKEN FOR THIS USER'
53
+ sfdc_object_name => 'Opportunity'
54
+ }
55
+ }
56
+
57
+ output {
58
+ stdout {
59
+ codec => rubydebug
60
+ }
61
+ }
62
+ ----------------------------------
63
+
64
+ [id="plugins-{type}s-{plugin}-options"]
65
+ ==== Salesforce Input Configuration Options
66
+
67
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
68
+
69
+ [cols="<,<,<",options="header",]
70
+ |=======================================================================
71
+ |Setting |Input type|Required
72
+ | <<plugins-{type}s-{plugin}-api_version>> |<<string,string>>|No
73
+ | <<plugins-{type}s-{plugin}-client_id>> |<<string,string>>|Yes
74
+ | <<plugins-{type}s-{plugin}-client_secret>> |<<string,string>>|Yes
75
+ | <<plugins-{type}s-{plugin}-password>> |<<string,string>>|Yes
76
+ | <<plugins-{type}s-{plugin}-security_token>> |<<string,string>>|Yes
77
+ | <<plugins-{type}s-{plugin}-sfdc_fields>> |<<array,array>>|No
78
+ | <<plugins-{type}s-{plugin}-sfdc_filters>> |<<string,string>>|No
79
+ | <<plugins-{type}s-{plugin}-sfdc_object_name>> |<<string,string>>|Yes
80
+ | <<plugins-{type}s-{plugin}-to_underscores>> |<<boolean,boolean>>|No
81
+ | <<plugins-{type}s-{plugin}-use_test_sandbox>> |<<boolean,boolean>>|No
82
+ | <<plugins-{type}s-{plugin}-username>> |<<string,string>>|Yes
83
+ |=======================================================================
84
+
85
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
86
+ input plugins.
87
+
88
+ &nbsp;
89
+
90
+ [id="plugins-{type}s-{plugin}-api_version"]
91
+ ===== `api_version`
92
+
93
+ * Value type is <<string,string>>
94
+ * There is no default value for this setting.
95
+
96
+ By default, this uses the default Restforce API version.
97
+ To override this, set this to something like "32.0" for example
98
+
99
+ [id="plugins-{type}s-{plugin}-client_id"]
100
+ ===== `client_id`
101
+
102
+ * This is a required setting.
103
+ * Value type is <<string,string>>
104
+ * There is no default value for this setting.
105
+
106
+ Consumer Key for authentication. You must set up a new SFDC
107
+ connected app with oath to use this output. More information
108
+ can be found here:
109
+ https://help.salesforce.com/apex/HTViewHelpDoc?id=connected_app_create.htm
110
+
111
+ [id="plugins-{type}s-{plugin}-client_secret"]
112
+ ===== `client_secret`
113
+
114
+ * This is a required setting.
115
+ * Value type is <<string,string>>
116
+ * There is no default value for this setting.
117
+
118
+ Consumer Secret from your oauth enabled connected app
119
+
120
+ [id="plugins-{type}s-{plugin}-password"]
121
+ ===== `password`
122
+
123
+ * This is a required setting.
124
+ * Value type is <<string,string>>
125
+ * There is no default value for this setting.
126
+
127
+ The password used to login to sfdc
128
+
129
+ [id="plugins-{type}s-{plugin}-security_token"]
130
+ ===== `security_token`
131
+
132
+ * This is a required setting.
133
+ * Value type is <<string,string>>
134
+ * There is no default value for this setting.
135
+
136
+ The security token for this account. For more information about
137
+ generting a security token, see:
138
+ https://help.salesforce.com/apex/HTViewHelpDoc?id=user_security_token.htm
139
+
140
+ [id="plugins-{type}s-{plugin}-sfdc_fields"]
141
+ ===== `sfdc_fields`
142
+
143
+ * Value type is <<array,array>>
144
+ * Default value is `[]`
145
+
146
+ These are the field names to return in the Salesforce query
147
+ If this is empty, all fields are returned.
148
+
149
+ [id="plugins-{type}s-{plugin}-sfdc_filters"]
150
+ ===== `sfdc_filters`
151
+
152
+ * Value type is <<string,string>>
153
+ * Default value is `""`
154
+
155
+ These options will be added to the WHERE clause in the
156
+ SOQL statement. Additional fields can be filtered on by
157
+ adding field1 = value1 AND field2 = value2 AND...
158
+
159
+ [id="plugins-{type}s-{plugin}-sfdc_object_name"]
160
+ ===== `sfdc_object_name`
161
+
162
+ * This is a required setting.
163
+ * Value type is <<string,string>>
164
+ * There is no default value for this setting.
165
+
166
+ The name of the salesforce object you are creating or updating
167
+
168
+ [id="plugins-{type}s-{plugin}-to_underscores"]
169
+ ===== `to_underscores`
170
+
171
+ * Value type is <<boolean,boolean>>
172
+ * Default value is `false`
173
+
174
+ Setting this to true will convert SFDC's NamedFields__c to named_fields__c
175
+
176
+ [id="plugins-{type}s-{plugin}-use_test_sandbox"]
177
+ ===== `use_test_sandbox`
178
+
179
+ * Value type is <<boolean,boolean>>
180
+ * Default value is `false`
181
+
182
+ Set this to true to connect to a sandbox sfdc instance
183
+ logging in through test.salesforce.com
184
+
185
+ [id="plugins-{type}s-{plugin}-username"]
186
+ ===== `username`
187
+
188
+ * This is a required setting.
189
+ * Value type is <<string,string>>
190
+ * There is no default value for this setting.
191
+
192
+ A valid salesforce user name, usually your email address.
193
+ Used for authentication and will be the user all objects
194
+ are created or modified by
195
+
196
+
197
+
198
+ [id="plugins-{type}s-{plugin}-common-options"]
199
+ include::{include_path}/{type}.asciidoc[]
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-salesforce'
3
- s.version = '3.0.1'
3
+ s.version = '3.0.2'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Pulls objects from Salesforce into Logstash"
6
6
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.require_paths = ["lib"]
11
11
 
12
12
  # Files
13
- s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
13
+ s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
14
14
  # Tests
15
15
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
16
16
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-salesforce
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Russ Savage
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-02 00:00:00.000000000 Z
11
+ date: 2017-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -128,7 +128,9 @@ dependencies:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
130
  version: 1.4.6
131
- description: This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program
131
+ description: This gem is a Logstash plugin required to be installed on top of the
132
+ Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
133
+ gem is not a stand-alone program
132
134
  email: russ@elastic.co
133
135
  executables: []
134
136
  extensions: []
@@ -140,6 +142,7 @@ files:
140
142
  - LICENSE
141
143
  - NOTICE.TXT
142
144
  - README.md
145
+ - docs/index.asciidoc
143
146
  - lib/logstash/inputs/salesforce.rb
144
147
  - logstash-input-salesforce.gemspec
145
148
  - spec/fixtures/vcr_cassettes/describe_lead_object.yml
@@ -168,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
171
  version: '0'
169
172
  requirements: []
170
173
  rubyforge_project:
171
- rubygems_version: 2.4.8
174
+ rubygems_version: 2.6.11
172
175
  signing_key:
173
176
  specification_version: 4
174
177
  summary: Pulls objects from Salesforce into Logstash