logstash-output-sensors_analytics 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +2 -0
- data/CONTRIBUTORS +10 -0
- data/DEVELOPER.md +2 -0
- data/Gemfile +4 -0
- data/LICENSE +11 -0
- data/README.md +86 -0
- data/lib/logstash/outputs/sensors_analytics.rb +106 -0
- data/logstash-output-sensors_analytics.gemspec +29 -0
- data/spec/outputs/sensors_analytics_spec.rb +170 -0
- metadata +167 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 56e114454ed3a71e4c6977bee6166627e1d54b7a3e483f8f54803197dd70038a
|
4
|
+
data.tar.gz: 4439c667f828bae8d53bbb059924d61f4f98f876fae4847e3c14a21081fe5d8d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c59e5b2adf9cf5474e4455d097f2ce97539055229d7a8496b00eb00846077feab303313964893eb8b009a092cde7d7bcf24d03f6242b4d44b3a16ef858fed3bc
|
7
|
+
data.tar.gz: 5cf2456fb8cdb18d5346162137bb6fdef3a6f9d91405f2adf1d244b35229ee64506c09cad796a776d486293e40275f9d6adc73351e15939c7e209b12a9a4ff12
|
data/CHANGELOG.md
ADDED
data/CONTRIBUTORS
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
The following is a list of people who have contributed ideas, code, bug
|
2
|
+
reports, or in general have helped logstash along its way.
|
3
|
+
|
4
|
+
Contributors:
|
5
|
+
* Feng Jiajie - fengjiajie@sensorsdata.cn
|
6
|
+
|
7
|
+
Note: If you've sent us patches, bug reports, or otherwise contributed to
|
8
|
+
Logstash, and you aren't on the list above and want to be, please let us know
|
9
|
+
and we'll make sure you're here. Contributions from folks like you are what make
|
10
|
+
open source awesome.
|
data/DEVELOPER.md
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
2
|
+
you may not use this file except in compliance with the License.
|
3
|
+
You may obtain a copy of the License at
|
4
|
+
|
5
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
|
7
|
+
Unless required by applicable law or agreed to in writing, software
|
8
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
See the License for the specific language governing permissions and
|
11
|
+
limitations under the License.
|
data/README.md
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
# Logstash Plugin
|
2
|
+
|
3
|
+
This is a plugin for [Logstash](https://github.com/elastic/logstash).
|
4
|
+
|
5
|
+
It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
|
6
|
+
|
7
|
+
## Documentation
|
8
|
+
|
9
|
+
Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elastic.co/guide/en/logstash/current/).
|
10
|
+
|
11
|
+
- For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
|
12
|
+
- For more asciidoc formatting tips, see the excellent reference here https://github.com/elastic/docs#asciidoc-guide
|
13
|
+
|
14
|
+
## Need Help?
|
15
|
+
|
16
|
+
Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.
|
17
|
+
|
18
|
+
## Developing
|
19
|
+
|
20
|
+
### 1. Plugin Developement and Testing
|
21
|
+
|
22
|
+
#### Code
|
23
|
+
- To get started, you'll need JRuby with the Bundler gem installed.
|
24
|
+
|
25
|
+
- Create a new plugin or clone and existing from the GitHub [logstash-plugins](https://github.com/logstash-plugins) organization. We also provide [example plugins](https://github.com/logstash-plugins?query=example).
|
26
|
+
|
27
|
+
- Install dependencies
|
28
|
+
```sh
|
29
|
+
bundle install
|
30
|
+
```
|
31
|
+
|
32
|
+
#### Test
|
33
|
+
|
34
|
+
- Update your dependencies
|
35
|
+
|
36
|
+
```sh
|
37
|
+
bundle install
|
38
|
+
```
|
39
|
+
|
40
|
+
- Run tests
|
41
|
+
|
42
|
+
```sh
|
43
|
+
bundle exec rspec
|
44
|
+
```
|
45
|
+
|
46
|
+
### 2. Running your unpublished Plugin in Logstash
|
47
|
+
|
48
|
+
#### 2.1 Run in a local Logstash clone
|
49
|
+
|
50
|
+
- Edit Logstash `Gemfile` and add the local plugin path, for example:
|
51
|
+
```ruby
|
52
|
+
gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
|
53
|
+
```
|
54
|
+
- Install plugin
|
55
|
+
```sh
|
56
|
+
bin/logstash-plugin install --no-verify
|
57
|
+
```
|
58
|
+
- Run Logstash with your plugin
|
59
|
+
```sh
|
60
|
+
bin/logstash -e 'filter {awesome {}}'
|
61
|
+
```
|
62
|
+
At this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash.
|
63
|
+
|
64
|
+
#### 2.2 Run in an installed Logstash
|
65
|
+
|
66
|
+
You can use the same **2.1** method to run your plugin in an installed Logstash by editing its `Gemfile` and pointing the `:path` to your local plugin development directory or you can build the gem and install it using:
|
67
|
+
|
68
|
+
- Build your plugin gem
|
69
|
+
```sh
|
70
|
+
gem build logstash-filter-awesome.gemspec
|
71
|
+
```
|
72
|
+
- Install the plugin from the Logstash home
|
73
|
+
```sh
|
74
|
+
bin/logstash-plugin install /your/local/plugin/logstash-filter-awesome.gem
|
75
|
+
```
|
76
|
+
- Start Logstash and proceed to test the plugin
|
77
|
+
|
78
|
+
## Contributing
|
79
|
+
|
80
|
+
All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.
|
81
|
+
|
82
|
+
Programming is not a required skill. Whatever you've seen about open source and maintainers or community members saying "send patches or die" - you will not see that here.
|
83
|
+
|
84
|
+
It is more important to the community that you are able to contribute.
|
85
|
+
|
86
|
+
For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
|
@@ -0,0 +1,106 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require "logstash/outputs/base"
|
3
|
+
require "logstash/plugin_mixins/http_client"
|
4
|
+
require "stud/buffer"
|
5
|
+
require "zlib"
|
6
|
+
require "base64"
|
7
|
+
require "json"
|
8
|
+
|
9
|
+
# An sensors_analytics output that does nothing.
|
10
|
+
class LogStash::Outputs::SensorsAnalytics < LogStash::Outputs::Base
|
11
|
+
include Stud::Buffer
|
12
|
+
include LogStash::PluginMixins::HttpClient
|
13
|
+
|
14
|
+
attr_accessor :buffer_state
|
15
|
+
|
16
|
+
config_name "sensors_analytics"
|
17
|
+
concurrency :single
|
18
|
+
|
19
|
+
# URL to use
|
20
|
+
config :url, :validate => :string, :required => :true
|
21
|
+
|
22
|
+
# 数据的项目
|
23
|
+
config :project, :validate => :string
|
24
|
+
|
25
|
+
# 触发 flush 间隔
|
26
|
+
config :flush_interval_sec, :validate => :number, :default => 2
|
27
|
+
|
28
|
+
# 批次最大 record 数量
|
29
|
+
config :flush_batch_size, :validate => :number, :default => 100
|
30
|
+
|
31
|
+
PLUGIN_VERSION = "0.1.1"
|
32
|
+
|
33
|
+
public
|
34
|
+
def register
|
35
|
+
@logger.info("Registering sensors_analytics Output",
|
36
|
+
:url => @url,
|
37
|
+
:flush_interval_sec => @flush_interval_sec,
|
38
|
+
:flush_batch_size => @flush_batch_size
|
39
|
+
)
|
40
|
+
|
41
|
+
http_client_config = client_config
|
42
|
+
http_client_config[:user_agent] = "SensorsAnalytics Logstash Output Plugin " + PLUGIN_VERSION
|
43
|
+
@client = Manticore::Client.new(http_client_config)
|
44
|
+
|
45
|
+
buffer_config = {
|
46
|
+
:max_items => @flush_batch_size.to_i,
|
47
|
+
:max_interval => @flush_interval_sec.to_i,
|
48
|
+
:logger => @logger
|
49
|
+
}
|
50
|
+
|
51
|
+
buffer_initialize(buffer_config)
|
52
|
+
end
|
53
|
+
|
54
|
+
public
|
55
|
+
def multi_receive(events)
|
56
|
+
return if events.empty?
|
57
|
+
|
58
|
+
events.each do |e|
|
59
|
+
begin
|
60
|
+
record = JSON.parse(e.get("message"))
|
61
|
+
|
62
|
+
host = e.get("host")
|
63
|
+
host = host["name"] if host != nil and host.is_a?(Hash)
|
64
|
+
|
65
|
+
path = e.get("path")
|
66
|
+
path = e.get("[log][file][path]") if path == nil
|
67
|
+
|
68
|
+
record["lib"] = {
|
69
|
+
"$lib" => "Logstash",
|
70
|
+
"$lib_version" => PLUGIN_VERSION,
|
71
|
+
"$lib_method" => "tools",
|
72
|
+
"$lib_detail" => "#{host}###{path}"
|
73
|
+
}
|
74
|
+
|
75
|
+
record["project"] = @project if @project != nil
|
76
|
+
|
77
|
+
buffer_receive(record)
|
78
|
+
rescue
|
79
|
+
@logger.error("Could not process record", :record => e.to_s)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
public
|
85
|
+
def close
|
86
|
+
buffer_flush(:final => true)
|
87
|
+
client.close
|
88
|
+
end
|
89
|
+
|
90
|
+
public
|
91
|
+
def flush(events, final = false)
|
92
|
+
wio = StringIO.new("w")
|
93
|
+
gzip_io = Zlib::GzipWriter.new(wio)
|
94
|
+
gzip_io.write(events.to_json)
|
95
|
+
gzip_io.close
|
96
|
+
data = Base64.strict_encode64(wio.string)
|
97
|
+
form_data = {"data_list" => data, "gzip" => 1}
|
98
|
+
|
99
|
+
response = client.post(@url, :params => form_data).call
|
100
|
+
if response.code != 200
|
101
|
+
@logger.warn("Send failed, code: #{response.code}, body: #{response.body}")
|
102
|
+
raise
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
end # class LogStash::Outputs::SensorsAnalytics
|
@@ -0,0 +1,29 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = 'logstash-output-sensors_analytics'
|
3
|
+
s.version = '0.1.0'
|
4
|
+
s.licenses = ['Apache License (2.0)']
|
5
|
+
s.summary = 'Output plugin for Sensors Analytics'
|
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.'
|
7
|
+
s.homepage = 'https://manual.sensorsdata.cn/'
|
8
|
+
s.authors = ['Feng Jiajie']
|
9
|
+
s.email = 'fengjiajie@sensorsdata.cn'
|
10
|
+
s.require_paths = ['lib']
|
11
|
+
|
12
|
+
# Files
|
13
|
+
s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
|
14
|
+
# Tests
|
15
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
16
|
+
|
17
|
+
# Special flag to let us know this is actually a logstash plugin
|
18
|
+
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
|
19
|
+
|
20
|
+
# Gem dependencies
|
21
|
+
s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
|
22
|
+
s.add_runtime_dependency "logstash-codec-plain"
|
23
|
+
s.add_runtime_dependency 'logstash-mixin-http_client', ">= 6.0.0", "< 8.0.0"
|
24
|
+
s.add_runtime_dependency 'stud', "~> 0.0.23"
|
25
|
+
|
26
|
+
s.add_development_dependency "logstash-devutils"
|
27
|
+
s.add_development_dependency 'sinatra'
|
28
|
+
s.add_development_dependency 'webrick'
|
29
|
+
end
|
@@ -0,0 +1,170 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require "logstash/devutils/rspec/spec_helper"
|
3
|
+
require "logstash/outputs/sensors_analytics"
|
4
|
+
require "logstash/codecs/plain"
|
5
|
+
require "logstash/event"
|
6
|
+
|
7
|
+
PORT = rand(65535 - 1024) + 1025
|
8
|
+
|
9
|
+
class TestApp < Sinatra::Base
|
10
|
+
# disable WEBrick logging
|
11
|
+
def self.server_settings
|
12
|
+
{:AccessLog => [], :Logger => WEBrick::BasicLog::new(nil, WEBrick::BasicLog::FATAL)}
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.multiroute(methods, path, &block)
|
16
|
+
methods.each do |method|
|
17
|
+
method.to_sym
|
18
|
+
self.send method, path, &block
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.last_request=(request)
|
23
|
+
@last_request = request
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.last_request
|
27
|
+
@last_request
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.retry_fail_count=(count)
|
31
|
+
@retry_fail_count = count
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.retry_fail_count
|
35
|
+
@retry_fail_count || 2
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.final_success=(final_success)
|
39
|
+
@final_success = final_success
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.final_success
|
43
|
+
@final_success || false
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.retry_action_count=(request)
|
47
|
+
@retry_action_count = request
|
48
|
+
end
|
49
|
+
|
50
|
+
def self.retry_action_count
|
51
|
+
@retry_action_count || 0
|
52
|
+
end
|
53
|
+
|
54
|
+
multiroute(%w(post), "/good") do
|
55
|
+
self.class.last_request = request
|
56
|
+
[200, "YUP"]
|
57
|
+
end
|
58
|
+
|
59
|
+
multiroute(%w(post), "/bad") do
|
60
|
+
self.class.last_request = request
|
61
|
+
[400, "YUP"]
|
62
|
+
end
|
63
|
+
|
64
|
+
multiroute(%w(post), "/retry") do
|
65
|
+
self.class.last_request = request
|
66
|
+
self.class.retry_action_count += 1
|
67
|
+
if self.class.retry_fail_count > 0
|
68
|
+
self.class.retry_fail_count -= 1
|
69
|
+
[502, "Will succeed in #{self.class.retry_fail_count}"]
|
70
|
+
else
|
71
|
+
self.class.final_success = true
|
72
|
+
[200, "Done Retrying"]
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
RSpec.configure do |config|
|
78
|
+
# http://stackoverflow.com/questions/6557079/start-and-call-ruby-http-server-in-the-same-script
|
79
|
+
def sinatra_run_wait(app, opts)
|
80
|
+
queue = Queue.new
|
81
|
+
|
82
|
+
t = java.lang.Thread.new(
|
83
|
+
proc do
|
84
|
+
begin
|
85
|
+
app.run!(opts) do |server|
|
86
|
+
queue.push("started")
|
87
|
+
end
|
88
|
+
rescue => e
|
89
|
+
puts "Error in webserver thread #{e}"
|
90
|
+
# ignore
|
91
|
+
end
|
92
|
+
end
|
93
|
+
)
|
94
|
+
t.daemon = true
|
95
|
+
t.start
|
96
|
+
queue.pop # blocks until the run! callback runs
|
97
|
+
end
|
98
|
+
|
99
|
+
config.before(:suite) do
|
100
|
+
sinatra_run_wait(TestApp, :port => PORT, :server => 'webrick')
|
101
|
+
puts "Test webserver on port #{PORT}"
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
|
106
|
+
describe LogStash::Outputs::SensorsAnalytics do
|
107
|
+
|
108
|
+
describe "basic test" do
|
109
|
+
|
110
|
+
let(:port) {PORT}
|
111
|
+
let(:event) {
|
112
|
+
event = LogStash::Event.new
|
113
|
+
event.set("path", "/Users/fengjiajie/tools/logstash/logstash-7.1.1/data2/a")
|
114
|
+
event.set("host", "LaputadeMacBook-Pro.local")
|
115
|
+
event.set("message", '{"distinct_id":"123456","time":1434556935000,"type":"track","event":"ViewProduct","properties":{"product_id":12345,"product_name":"苹果","product_classify":"水果","product_price":14}}')
|
116
|
+
event
|
117
|
+
}
|
118
|
+
let(:method) {"post"}
|
119
|
+
|
120
|
+
context 'sending no events' do
|
121
|
+
let(:url) {"http://localhost:#{port}/good"}
|
122
|
+
let(:verb_behavior_config) {{"url" => url, "flush_batch_size" => 1}}
|
123
|
+
subject {LogStash::Outputs::SensorsAnalytics.new(verb_behavior_config)}
|
124
|
+
|
125
|
+
before do
|
126
|
+
subject.register
|
127
|
+
end
|
128
|
+
|
129
|
+
it 'should not block the pipeline' do
|
130
|
+
subject.multi_receive([])
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
context "with retryable failing requests" do
|
135
|
+
let(:url) {"http://localhost:#{port}/retry"}
|
136
|
+
let(:verb_behavior_config) {{"url" => url, "flush_batch_size" => 1, "flush_interval" => 100}}
|
137
|
+
subject {LogStash::Outputs::SensorsAnalytics.new(verb_behavior_config)}
|
138
|
+
|
139
|
+
before do
|
140
|
+
subject.register
|
141
|
+
end
|
142
|
+
|
143
|
+
before do
|
144
|
+
TestApp.retry_fail_count = 3
|
145
|
+
subject.multi_receive([event])
|
146
|
+
end
|
147
|
+
|
148
|
+
it "should log a retryable response 6 times" do
|
149
|
+
expect(TestApp.final_success).to eq(true)
|
150
|
+
expect(TestApp.retry_action_count).to eq(4)
|
151
|
+
expect(TestApp.last_request.body.read).to eq('data_list=H4sIAAAAAAAA%2F1WPQU7DMBBF7zJlmcZJ2xSRJWuQ2MAGoWqwp%2B20bhzZ06Kqygm4AuIMLNhwoYpjYEe0iJX93x%2F9P%2FN4AMNBuNEyYwM1lKPxpJpCBsIbgrqcRFlNr8ZVURQR7tsIQTzqdZyhHTUS9QPTy513Zqsl0ta7lrwwBagPSSXep%2Ffh2Rk1mCrg%2B%2FXr%2BP4Gf1xbDIHn%2B%2BgdPz7%2Fe61n3e%2FVZWD5OTVc9C%2FcuEUQDMs4nMhsRz6wa6JT5GVenvCGZOnSpeKcDSdqSJBtSsF2K2joFvW1c%2BthPCu3TqMdDNR9iJFqTs1ixbhiUn2Esr%2FF58%2FwMhUqg4IjhdB1Tz8MgoViZwEAAA%3D%3D&gzip=1')
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
context 'config project' do
|
156
|
+
let(:url) {"http://localhost:#{port}/good"}
|
157
|
+
let(:verb_behavior_config) {{"url" => url, "flush_batch_size" => 1, "project" => "production"}}
|
158
|
+
subject {LogStash::Outputs::SensorsAnalytics.new(verb_behavior_config)}
|
159
|
+
|
160
|
+
before do
|
161
|
+
subject.register
|
162
|
+
subject.multi_receive([event])
|
163
|
+
end
|
164
|
+
|
165
|
+
it 'should add project into record' do
|
166
|
+
expect(TestApp.last_request.body.read).to eq('data_list=H4sIAAAAAAAA%2F1WQTU7DQAyF7%2BKyTDNJ2xSRJWuQ2MAGocpM3NbpNBNl3KKqygm4AuIMLNhwoYpjMDPqj1jN%2BLP13rOf91CxE260zLiCEvLReFJMIQHhNUGZT3xZTG%2FGRZZlHu5aD0E61Cs%2FQ1tqxNdPTG8Pna02WjxtO9tSJ0wOyn2oAo%2FqUTw5owaDBfy%2B%2Fxw%2BP%2BDCtUHneL7zvcPX9%2F9e27GOufoEDL8Gh6v4wp1dOEG39MOBzLbUObaN72RpnuYnvCZZ2rCpWGvciVYkyCaoYLsRrOge9a21q6FfKzVWoxkM1KPzkmpOzaJmrJlUlFDmaHz%2BDK%2BDoapQcKQQ%2Bpi%2BJh1OddwjBOtf%2FgAJu5tJfgEAAA%3D%3D&gzip=1')
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
metadata
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: logstash-output-sensors_analytics
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Feng Jiajie
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-07-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '1.60'
|
19
|
+
- - "<="
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '2.99'
|
22
|
+
name: logstash-core-plugin-api
|
23
|
+
prerelease: false
|
24
|
+
type: :runtime
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.60'
|
30
|
+
- - "<="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2.99'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
name: logstash-codec-plain
|
40
|
+
prerelease: false
|
41
|
+
type: :runtime
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 6.0.0
|
53
|
+
- - "<"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 8.0.0
|
56
|
+
name: logstash-mixin-http_client
|
57
|
+
prerelease: false
|
58
|
+
type: :runtime
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: 6.0.0
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 8.0.0
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
requirement: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 0.0.23
|
73
|
+
name: stud
|
74
|
+
prerelease: false
|
75
|
+
type: :runtime
|
76
|
+
version_requirements: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - "~>"
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: 0.0.23
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
name: logstash-devutils
|
88
|
+
prerelease: false
|
89
|
+
type: :development
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
101
|
+
name: sinatra
|
102
|
+
prerelease: false
|
103
|
+
type: :development
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
requirement: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '0'
|
115
|
+
name: webrick
|
116
|
+
prerelease: false
|
117
|
+
type: :development
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
description: This gem is a logstash plugin required to be installed on top of the
|
124
|
+
Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
|
125
|
+
gem is not a stand-alone program.
|
126
|
+
email: fengjiajie@sensorsdata.cn
|
127
|
+
executables: []
|
128
|
+
extensions: []
|
129
|
+
extra_rdoc_files: []
|
130
|
+
files:
|
131
|
+
- CHANGELOG.md
|
132
|
+
- CONTRIBUTORS
|
133
|
+
- DEVELOPER.md
|
134
|
+
- Gemfile
|
135
|
+
- LICENSE
|
136
|
+
- README.md
|
137
|
+
- lib/logstash/outputs/sensors_analytics.rb
|
138
|
+
- logstash-output-sensors_analytics.gemspec
|
139
|
+
- spec/outputs/sensors_analytics_spec.rb
|
140
|
+
homepage: https://manual.sensorsdata.cn/
|
141
|
+
licenses:
|
142
|
+
- Apache License (2.0)
|
143
|
+
metadata:
|
144
|
+
logstash_plugin: 'true'
|
145
|
+
logstash_group: output
|
146
|
+
post_install_message:
|
147
|
+
rdoc_options: []
|
148
|
+
require_paths:
|
149
|
+
- lib
|
150
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
requirements: []
|
161
|
+
rubyforge_project:
|
162
|
+
rubygems_version: 2.7.6
|
163
|
+
signing_key:
|
164
|
+
specification_version: 4
|
165
|
+
summary: Output plugin for Sensors Analytics
|
166
|
+
test_files:
|
167
|
+
- spec/outputs/sensors_analytics_spec.rb
|