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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -0
  3. data/.rubocop.yml +0 -0
  4. data/Gemfile +0 -0
  5. data/MIT-LICENSE +0 -0
  6. data/README.md +0 -0
  7. data/Rakefile +0 -0
  8. data/lib/logstash/inputs/sfdc_elf.rb +8 -5
  9. data/lib/logstash/inputs/sfdc_elf/client_with_streaming_support.rb +0 -0
  10. data/lib/logstash/inputs/sfdc_elf/queue_util.rb +0 -0
  11. data/lib/logstash/inputs/sfdc_elf/scheduler.rb +0 -0
  12. data/lib/logstash/inputs/sfdc_elf/state_persistor.rb +0 -0
  13. data/logstash-input-sfdc_elf_schneider.gemspec +1 -1
  14. data/spec/fixtures/auth_success_response.json +0 -0
  15. data/spec/fixtures/describe.json +0 -0
  16. data/spec/fixtures/org_query_response.json +0 -0
  17. data/spec/fixtures/queue_util/create_event_ELF_list1.json +0 -0
  18. data/spec/fixtures/queue_util/create_event_ELF_list2.json +0 -0
  19. data/spec/fixtures/queue_util/create_event_ELF_list3.json +0 -0
  20. data/spec/fixtures/queue_util/create_event_sampledata1.csv +0 -0
  21. data/spec/fixtures/queue_util/create_event_sampledata2.csv +0 -0
  22. data/spec/fixtures/queue_util/create_event_sampledata3.csv +0 -0
  23. data/spec/fixtures/queue_util/eventlogfile_describe.json +0 -0
  24. data/spec/fixtures/queue_util/eventlogfile_list.json +0 -0
  25. data/spec/fixtures/queue_util/sample_data1.csv +0 -0
  26. data/spec/fixtures/queue_util/sample_data2.csv +0 -0
  27. data/spec/fixtures/queue_util/sample_data3.csv +0 -0
  28. data/spec/fixtures/queue_util/sample_data4.csv +0 -0
  29. data/spec/fixtures/queue_util/sample_data5.csv +0 -0
  30. data/spec/inputs/sfdc_elf/queue_util_spec.rb +0 -0
  31. data/spec/inputs/sfdc_elf/scheduler_spec.rb +0 -0
  32. data/spec/inputs/sfdc_elf/state_persistor_spec.rb +0 -0
  33. data/spec/inputs/sfdc_elf_spec.rb +0 -0
  34. data/spec/spec_helper.rb +0 -0
  35. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b92e3566a7fe329df6e6969fb8d6d9861ec2df8
4
- data.tar.gz: dd888c9f32361d9bc40df97c799821a0287eded5
3
+ metadata.gz: bb031fbb111ad8cccd8c61ea3b3ed7c49a3f0cd0
4
+ data.tar.gz: bb36c31bd9ae70ab4b10500e1efcc15c19d0a059
5
5
  SHA512:
6
- metadata.gz: da7478c69470ba286b419d0e2d7df4729968688a7b0c66f464fd8c2985b4f8237d077b9e16aad5c57d2882840237f71000e5436daa996dc8cddf3a045eb7ca97
7
- data.tar.gz: 45e2dee47cd448d2cda1af857fcf9cdfc60b2589d78a0b70d49211d928b435d33b609dc9a0bee703086761197f4f8018679c0c9875328494542c839921a2e7dd
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 = '33.0'
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
- soql_expr = "SELECT Id, EventType, Logfile, LogDate, LogFileLength, LogFileFieldTypes
102
- FROM EventLogFile
103
- WHERE LogDate > #{@last_indexed_log_date} and EventType in ('ApexExecution','ApexSoap','API','BulkApi','Dashboard','LightningError','LightningInteraction','LightningPageView','LightningPerformance','LoginAs','Login','Logout','MetadataApiOperation','Report','RestApi','URI','VisualforceRequest','WaveChange','WaveInteraction','WavePerformance') ORDER BY LogDate ASC "
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
@@ -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.7'
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
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.7
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-06-10 00:00:00.000000000 Z
13
+ date: 2019-09-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: logstash-core