logstash-output-chronix 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79a2fa0b8712acee630806c6bacc9ff585a71555
4
- data.tar.gz: c8d381ff95b73cf7bd954f825536ba4451aab845
3
+ metadata.gz: 08e2af030babde261c06911448ee71e4aa254f47
4
+ data.tar.gz: 98ef425eab3ed79441ed3c7d14fa76015c75a8e9
5
5
  SHA512:
6
- metadata.gz: 2a8f28c532b41215fc056821685eb0e3cfe2f313ff5c2bf0f51dee466529345dc50d86a381769a30c9ff2c19308f909b2e2f3dcea4ae109dc8a81d11825983f7
7
- data.tar.gz: 25b29e31b85bdbddbcfa8c20fa0c71f3bfe1e844cff6c3c173f25fe5ee38565ad766ac6fe5d222a10599a41ccb3ff4507bcf6be94641a1a35ba29b7f9168133c
6
+ metadata.gz: 027063150f333c52388774348770a8afd399a5b0bcfe6554ba77dd22393285f82290399820196adbf4cff3f7b059b182c5cd2829d1399cb1357f70360cb23c4b
7
+ data.tar.gz: 73f095af74a87a10ca857ba1375021b78d216fc52a6a61904277c3b575d97f8f174f0e249eb1c2882a0e2e550d9131ec4b628dc9ea058e2b4370a2b4070ad90a
data/README.md CHANGED
@@ -6,12 +6,12 @@ This is a plugin for [Logstash](https://github.com/elastic/logstash) to write ti
6
6
 
7
7
  ## Install the plugin
8
8
 
9
- There are two options to install the plugin. Install via gem install or manual install (check also the [Logstash Repos](https://github.com/logstash-plugins/logstash-output-example#2-running-your-unpublished-plugin-in-logstash) for reference).
9
+ There are two options to install the plugin. (check also the [Logstash Repos](https://github.com/logstash-plugins/logstash-output-example#2-running-your-unpublished-plugin-in-logstash) for reference).
10
10
 
11
- ### Install via gem install
11
+ ### Install via rubygems and plugin install
12
12
  Just type
13
13
  ```sh
14
- gem install logstash-output-chronix
14
+ $LOGSTASH_HOME/bin/plugin install logstash-output-chronix
15
15
  ```
16
16
  to install the plugin. See the [configuration-section](#configuration) for configuration options.
17
17
 
@@ -150,7 +150,8 @@ class LogStash::Outputs::Chronix < LogStash::Outputs::Base
150
150
 
151
151
  def createSolrDocument(metric, phash)
152
152
  endTime = phash["lastTimestamp"] # maybe use startTime + delta here?!
153
- return { :metric => metric, :start => phash["startTime"], :end => endTime, :data => zipAndEncode(phash["points"]), :threshold => @threshold }
153
+ # TODO add more meta-data
154
+ return { :metric => metric, :start => phash["startTime"], :end => endTime, :data => zipAndEncode(phash["points"]) }
154
155
  end
155
156
 
156
157
  # checks if two offsets are almost equals
@@ -1,9 +1,9 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-chronix'
3
- s.version = "0.1.1"
3
+ s.version = "0.1.2"
4
4
  s.licenses = ["Apache License (2.0)"]
5
5
  s.summary = "This output stores your logs in chronix"
6
- s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
6
+ s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install logstash-output-chronix. This gem is not a stand-alone program"
7
7
  s.authors = ["Max Jalowski"]
8
8
  s.email = "max.jalowski@fau.de"
9
9
  s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
@@ -77,7 +77,7 @@ describe LogStash::Outputs::Chronix do
77
77
  points.p << subject.createChronixPoint(ttimestamp, tvalue)
78
78
  phash = {"startTime" => ttimestamp, "lastTimestamp" => ttimestamp, "points" => points}
79
79
  document = subject.createSolrDocument(tmetric, phash)
80
- sampleDoc = { :metric => tmetric, :start => phash["startTime"], :end => phash["lastTimestamp"], :data => "H4sIAAAAAAAA/+Pi59jx9v12VkEGMFB1AACWVOXHEQAAAA==", :threshold => 10 }
80
+ sampleDoc = { :metric => tmetric, :start => phash["startTime"], :end => phash["lastTimestamp"], :data => "H4sIAAAAAAAA/+Pi59jx9v12VkEGMFB1AACWVOXHEQAAAA==" }
81
81
  expect(document).to eq(sampleDoc)
82
82
  end
83
83
 
metadata CHANGED
@@ -1,156 +1,154 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-chronix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Jalowski
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-18 00:00:00.000000000 Z
11
+ date: 2016-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: logstash-core
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - '>='
16
+ - - ">="
18
17
  - !ruby/object:Gem::Version
19
18
  version: 2.0.0
20
- - - <
19
+ - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 3.0.0
23
- type: :runtime
22
+ name: logstash-core
24
23
  prerelease: false
24
+ type: :runtime
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - '>='
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: 2.0.0
30
- - - <
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 3.0.0
33
33
  - !ruby/object:Gem::Dependency
34
- name: logstash-codec-plain
35
34
  requirement: !ruby/object:Gem::Requirement
36
35
  requirements:
37
- - - '>='
36
+ - - ">="
38
37
  - !ruby/object:Gem::Version
39
38
  version: '0'
40
- type: :runtime
39
+ name: logstash-codec-plain
41
40
  prerelease: false
41
+ type: :runtime
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - '>='
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  - !ruby/object:Gem::Dependency
48
- name: stud
49
48
  requirement: !ruby/object:Gem::Requirement
50
49
  requirements:
51
- - - '>='
50
+ - - ">="
52
51
  - !ruby/object:Gem::Version
53
52
  version: '0'
54
- type: :runtime
53
+ name: stud
55
54
  prerelease: false
55
+ type: :runtime
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - '>='
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  - !ruby/object:Gem::Dependency
62
- name: rsolr
63
62
  requirement: !ruby/object:Gem::Requirement
64
63
  requirements:
65
- - - '>='
64
+ - - ">="
66
65
  - !ruby/object:Gem::Version
67
66
  version: '0'
68
- type: :runtime
67
+ name: rsolr
69
68
  prerelease: false
69
+ type: :runtime
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - '>='
72
+ - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  - !ruby/object:Gem::Dependency
76
- name: protobuf
77
76
  requirement: !ruby/object:Gem::Requirement
78
77
  requirements:
79
- - - '>='
78
+ - - ">="
80
79
  - !ruby/object:Gem::Version
81
80
  version: '0'
82
- type: :runtime
81
+ name: protobuf
83
82
  prerelease: false
83
+ type: :runtime
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - '>='
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  - !ruby/object:Gem::Dependency
90
- name: logstash-devutils
91
90
  requirement: !ruby/object:Gem::Requirement
92
91
  requirements:
93
- - - '>='
92
+ - - ">="
94
93
  - !ruby/object:Gem::Version
95
94
  version: 0.0.19
96
- - - <
95
+ - - "<"
97
96
  - !ruby/object:Gem::Version
98
97
  version: 0.0.20
99
- type: :development
98
+ name: logstash-devutils
100
99
  prerelease: false
100
+ type: :development
101
101
  version_requirements: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - '>='
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
105
  version: 0.0.19
106
- - - <
106
+ - - "<"
107
107
  - !ruby/object:Gem::Version
108
108
  version: 0.0.20
109
- description: This gem is a logstash plugin required to be installed on top of the
110
- Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not
111
- a stand-alone program
109
+ description: This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install logstash-output-chronix. This gem is not a stand-alone program
112
110
  email: max.jalowski@fau.de
113
111
  executables: []
114
112
  extensions: []
115
113
  extra_rdoc_files: []
116
114
  files:
115
+ - Gemfile
116
+ - LICENSE
117
+ - NOTICE.TXT
118
+ - README.md
117
119
  - lib/logstash/outputs/chronix.rb
118
120
  - lib/logstash/outputs/proto/Point.proto
119
121
  - lib/logstash/outputs/proto/Point.rb
120
122
  - lib/logstash/outputs/proto/StracePoint.proto
121
123
  - lib/logstash/outputs/proto/StracePoint.rb
124
+ - logstash-output-chronix.gemspec
122
125
  - spec/chronix_helper.rb
123
126
  - spec/outputs/chronix_spec.rb
124
127
  - spec/spec_helper.rb
125
- - logstash-output-chronix.gemspec
126
- - README.md
127
- - Gemfile
128
- - LICENSE
129
- - NOTICE.TXT
130
128
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
131
129
  licenses:
132
130
  - Apache License (2.0)
133
131
  metadata:
134
132
  logstash_plugin: 'true'
135
133
  logstash_group: output
136
- post_install_message:
134
+ post_install_message:
137
135
  rdoc_options: []
138
136
  require_paths:
139
137
  - lib
140
138
  required_ruby_version: !ruby/object:Gem::Requirement
141
139
  requirements:
142
- - - '>='
140
+ - - ">="
143
141
  - !ruby/object:Gem::Version
144
142
  version: '0'
145
143
  required_rubygems_version: !ruby/object:Gem::Requirement
146
144
  requirements:
147
- - - '>='
145
+ - - ">="
148
146
  - !ruby/object:Gem::Version
149
147
  version: '0'
150
148
  requirements: []
151
- rubyforge_project:
152
- rubygems_version: 2.0.14
153
- signing_key:
149
+ rubyforge_project:
150
+ rubygems_version: 2.4.8
151
+ signing_key:
154
152
  specification_version: 4
155
153
  summary: This output stores your logs in chronix
156
154
  test_files: