logstash-input-sfdc_elf_schneider 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -0
- data/.rubocop.yml +0 -0
- data/Gemfile +0 -0
- data/MIT-LICENSE +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/lib/logstash/inputs/sfdc_elf.rb +8 -5
- data/lib/logstash/inputs/sfdc_elf/client_with_streaming_support.rb +0 -0
- data/lib/logstash/inputs/sfdc_elf/queue_util.rb +0 -0
- data/lib/logstash/inputs/sfdc_elf/scheduler.rb +0 -0
- data/lib/logstash/inputs/sfdc_elf/state_persistor.rb +0 -0
- data/logstash-input-sfdc_elf_schneider.gemspec +1 -1
- data/spec/fixtures/auth_success_response.json +0 -0
- data/spec/fixtures/describe.json +0 -0
- data/spec/fixtures/org_query_response.json +0 -0
- data/spec/fixtures/queue_util/create_event_ELF_list1.json +0 -0
- data/spec/fixtures/queue_util/create_event_ELF_list2.json +0 -0
- data/spec/fixtures/queue_util/create_event_ELF_list3.json +0 -0
- data/spec/fixtures/queue_util/create_event_sampledata1.csv +0 -0
- data/spec/fixtures/queue_util/create_event_sampledata2.csv +0 -0
- data/spec/fixtures/queue_util/create_event_sampledata3.csv +0 -0
- data/spec/fixtures/queue_util/eventlogfile_describe.json +0 -0
- data/spec/fixtures/queue_util/eventlogfile_list.json +0 -0
- data/spec/fixtures/queue_util/sample_data1.csv +0 -0
- data/spec/fixtures/queue_util/sample_data2.csv +0 -0
- data/spec/fixtures/queue_util/sample_data3.csv +0 -0
- data/spec/fixtures/queue_util/sample_data4.csv +0 -0
- data/spec/fixtures/queue_util/sample_data5.csv +0 -0
- data/spec/inputs/sfdc_elf/queue_util_spec.rb +0 -0
- data/spec/inputs/sfdc_elf/scheduler_spec.rb +0 -0
- data/spec/inputs/sfdc_elf/state_persistor_spec.rb +0 -0
- data/spec/inputs/sfdc_elf_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb031fbb111ad8cccd8c61ea3b3ed7c49a3f0cd0
|
4
|
+
data.tar.gz: bb36c31bd9ae70ab4b10500e1efcc15c19d0a059
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4947ab44d3e8719373e80b491eb7333e83cc25ab09d02be7004dc8f3e881a4d63ee04b74ee102e802f35b048730b751baeb38ed7b1d3124e957706330f179ab2
|
7
|
+
data.tar.gz: b8434b9ee4af43677401d7202ef85df94f00ef6a0555c3059f430a08b542756fcca26ba48f356af49538f6a6d666256045b3c2251edaed976bc95505d24226a7
|
data/.gitignore
CHANGED
File without changes
|
data/.rubocop.yml
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/MIT-LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
@@ -30,6 +30,9 @@ class LogStash::Inputs::SfdcElf < LogStash::Inputs::Base
|
|
30
30
|
# The host to use for OAuth2 authentication.
|
31
31
|
config :host, validate: :string, default: 'login.salesforce.com'
|
32
32
|
|
33
|
+
|
34
|
+
config :eventtypesstring, validate: :string, default: "'ApexExecution','ApexSoap','API','BulkApi','Dashboard','LightningError','LightningInteraction','LightningPageView','LightningPerformance','LoginAs','Login','Logout','MetadataApiOperation','Report','RestApi','URI','VisualforceRequest','WaveChange','WaveInteraction','WavePerformance'"
|
35
|
+
|
33
36
|
# Only needed when your Force.com organization requires it.
|
34
37
|
# Security token to you Force.com organization, can be found in My Settings > Personal > Reset My Security Token.
|
35
38
|
# Then it will take you to "Reset My Security Token" page, and click on the "Reset Security Token" button. The token
|
@@ -53,7 +56,7 @@ class LogStash::Inputs::SfdcElf < LogStash::Inputs::Base
|
|
53
56
|
@client.client_id = @client_id.value
|
54
57
|
@client.client_secret = @client_secret.value
|
55
58
|
@client.host = @host
|
56
|
-
@client.version = '
|
59
|
+
@client.version = '46.0'
|
57
60
|
|
58
61
|
# Authenticate the client
|
59
62
|
@logger.info("#{LOG_KEY}: tyring to authenticate client")
|
@@ -98,11 +101,11 @@ class LogStash::Inputs::SfdcElf < LogStash::Inputs::Base
|
|
98
101
|
@logger.info('---------------------------------------------------')
|
99
102
|
|
100
103
|
# Grab a list of SObjects, specifically EventLogFiles.
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
+
|
105
|
+
soql_expr= "SELECT Id, EventType, Logfile, LogDate, LogFileLength, LogFileFieldTypes
|
106
|
+
FROM EventLogFile
|
107
|
+
WHERE LogDate > #{@last_indexed_log_date} and EventType in (#{@eventtypesstring}) and Sequence>0 and Interval='Hourly' ORDER BY LogDate ASC"
|
104
108
|
|
105
|
-
@logger.info("#{LOG_KEY}: query = #{soql_expr}");
|
106
109
|
query_result_list = @client.retryable_query(username: @username,
|
107
110
|
password: @password.value + @security_token.value,
|
108
111
|
retry_attempts: RETRY_ATTEMPTS,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-sfdc_elf_schneider'
|
3
|
-
s.version = '1.0.
|
3
|
+
s.version = '1.0.8'
|
4
4
|
s.licenses = ['MIT']
|
5
5
|
s.summary = 'A Logstash plugin the receives events from Salesforce EventLogFile'
|
6
6
|
s.description = 'This gem is a logstash plugin required to be installed on top of the Logstash core pipeline
|
File without changes
|
data/spec/fixtures/describe.json
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-sfdc_elf_schneider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abhishek Sreenivasa
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-
|
13
|
+
date: 2019-09-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: logstash-core
|