logstash-input-elf-se 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/inputs/{sfdc_elf → elf-se}/client_with_streaming_support.rb +0 -0
- data/lib/logstash/inputs/{sfdc_elf → elf-se}/queue_util.rb +2 -2
- data/lib/logstash/inputs/{sfdc_elf → elf-se}/scheduler.rb +0 -0
- data/lib/logstash/inputs/{sfdc_elf → elf-se}/state_persistor.rb +0 -0
- data/lib/logstash/inputs/elf-se.rb +5 -5
- data/logstash-input-elf-se.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29c829dc6384b873854d2d64d945943b0bca65b2
|
4
|
+
data.tar.gz: 544f1e05844e5dd13bc5d410eed912ee9747d212
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 267118d093d757b37bc871004c71ae14c0a0ef5348b6f340ff3f9ecf5e67514c85836ac391005ad4bf056e3e270a718d983105574f92d778040a270791c067bd
|
7
|
+
data.tar.gz: 221031b76344028b4e960e2b9a2f94dbac7a0aa98a23c63f2ce2d9f6c190dd2a734eef62247055684b8c202b0ea6cf33aeee700269d1191e9f4d660fc7169e5f
|
File without changes
|
@@ -139,7 +139,7 @@ class QueueUtil
|
|
139
139
|
# @client.http_get method.
|
140
140
|
#
|
141
141
|
# After grabbing the CSV file we then store them using the standard Tempfile library. Tempfile will create a unique
|
142
|
-
# file each time using '
|
142
|
+
# file each time using 'elf-se_tempfile' as the prefix and finally we will be returning a list of Tempfile object,
|
143
143
|
# where the user can read the Tempfile and then close it and unlink it, which will delete the file.
|
144
144
|
|
145
145
|
public
|
@@ -148,7 +148,7 @@ class QueueUtil
|
|
148
148
|
result = []
|
149
149
|
query_result_list.each do |event_log_file|
|
150
150
|
# Get the path of the CSV file from the LogFile field, then stream the data to the .write method of the Tempfile
|
151
|
-
tmp = Tempfile.new('
|
151
|
+
tmp = Tempfile.new('elf-se_tempfile')
|
152
152
|
client.streaming_download(event_log_file.LogFile, tmp)
|
153
153
|
|
154
154
|
# Flushing will write the buffer into the Tempfile itself.
|
File without changes
|
File without changes
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
require 'logstash/inputs/base'
|
3
3
|
require 'logstash/namespace'
|
4
|
-
require_relative '
|
5
|
-
require_relative '
|
6
|
-
require_relative '
|
7
|
-
require_relative '
|
4
|
+
require_relative 'elf-se/client_with_streaming_support'
|
5
|
+
require_relative 'elf-se/queue_util'
|
6
|
+
require_relative 'elf-se/state_persistor'
|
7
|
+
require_relative 'elf-se/scheduler'
|
8
8
|
|
9
9
|
# This plugin enables Salesforce customers to load EventLogFile(ELF) data from their Force.com orgs. The plugin will
|
10
10
|
# handle downloading ELF CSV file, parsing them, and handling any schema changes transparently.
|
11
|
-
class LogStash::Inputs::
|
11
|
+
class LogStash::Inputs::ElfSe < LogStash::Inputs::Base
|
12
12
|
LOG_KEY = 'SFDC'
|
13
13
|
RETRY_ATTEMPTS = 3
|
14
14
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-elf-se'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.2'
|
4
4
|
s.licenses = ['Apache-2.0']
|
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
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-elf-se
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sid
|
@@ -101,10 +101,10 @@ files:
|
|
101
101
|
- LICENSE
|
102
102
|
- README.md
|
103
103
|
- lib/logstash/inputs/elf-se.rb
|
104
|
-
- lib/logstash/inputs/
|
105
|
-
- lib/logstash/inputs/
|
106
|
-
- lib/logstash/inputs/
|
107
|
-
- lib/logstash/inputs/
|
104
|
+
- lib/logstash/inputs/elf-se/client_with_streaming_support.rb
|
105
|
+
- lib/logstash/inputs/elf-se/queue_util.rb
|
106
|
+
- lib/logstash/inputs/elf-se/scheduler.rb
|
107
|
+
- lib/logstash/inputs/elf-se/state_persistor.rb
|
108
108
|
- logstash-input-elf-se.gemspec
|
109
109
|
- spec/inputs/elf-se_spec.rb
|
110
110
|
homepage: https://github.com/siddharatha/logstash-input-elf-se
|