logstash-output-charrington 0.3.20 → 0.3.21

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ae644e2b642cfbf37d315289ff166d7b03e19865dd50320126e71f50954965c
4
- data.tar.gz: 5af164f7c8a73ed16001ef89922095bb0d37699fbc7c144c06eff4ab23e0481a
3
+ metadata.gz: b495c8c2b48eb4a9f0a61ebd67cb215003b4971d58d63241f4ca4678da1ccb26
4
+ data.tar.gz: 424fd9a3e3eac5e0c7f893cd3613e9f38a38d15ef63c19a843605c8651aef06a
5
5
  SHA512:
6
- metadata.gz: 5f6583538a0632625e50bb48e6b48864455c2edb0987d434bda4f31edd0479b4805e72974feb0213496f6db77bb6e133661e09d448ac4423cd69bce5ddf07c9e
7
- data.tar.gz: 7f3cf086ba6be74f724beed922eaf3fc8d8dc8dcabf24a599cce0ac5acbc1cc8ae927d0d10f0da8e287c00145cdbaa770141d7608e79966dcfb521bdde91c76e
6
+ metadata.gz: 5eb47165c378727eee8e7371defca71ffbb840a2e555b91a0e802bb75722888ec770938497a2b956ed8a7ecd874d0bd632ad8e76673afb93fc6a85fa1d784370
7
+ data.tar.gz: ed5876a86067c11dcbc1776ab8b11388783c58d758a815ba61bcaa991de0c606aff1c9d47c7fd4fc164fbb50f63878211385431121ce8b34e1c56cc4f56542b3
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-charrington'
3
- s.version = '0.3.20'
3
+ s.version = '0.3.21'
4
4
 
5
5
  s.licenses = ['Apache-2.0']
6
6
  s.homepage = 'https://gitlab.podium.com/engineering/analytics/logstash-output-charrington'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-charrington
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.20
4
+ version: 0.3.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - dconger
@@ -176,14 +176,8 @@ executables: []
176
176
  extensions: []
177
177
  extra_rdoc_files: []
178
178
  files:
179
- - CHANGELOG.md
180
179
  - Gemfile
181
- - LICENSE.txt
182
- - README.md
183
- - THANKS.md
184
180
  - lib/com/zaxxer/HikariCP/2.7.2/HikariCP-2.7.2.jar
185
- - lib/commons-io/commons-io/2.4/commons-io-2.4.jar
186
- - lib/de/flapdoodle/embed/de.flapdoodle.embed.process/2.0.2/de.flapdoodle.embed.process-2.0.2.jar
187
181
  - lib/logstash-output-charrington_jars.rb
188
182
  - lib/logstash/outputs/charrington.rb
189
183
  - lib/logstash/outputs/charrington/alter_postgres_table.rb
@@ -195,16 +189,9 @@ files:
195
189
  - lib/logstash/outputs/charrington/service.rb
196
190
  - lib/logstash/outputs/charrington/transform_postgres.rb
197
191
  - lib/logstash/outputs/charrington/transform_redshift.rb
198
- - lib/net/java/dev/jna/jna-platform/4.0.0/jna-platform-4.0.0.jar
199
- - lib/net/java/dev/jna/jna/4.0.0/jna-4.0.0.jar
200
- - lib/org/apache/commons/commons-compress/1.10/commons-compress-1.10.jar
201
- - lib/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar
202
192
  - lib/org/apache/logging/log4j/log4j-api/2.6.2/log4j-api-2.6.2.jar
203
193
  - lib/org/apache/logging/log4j/log4j-slf4j-impl/2.6.2/log4j-slf4j-impl-2.6.2.jar
204
- - lib/org/postgresql/postgresql/42.2.5/postgresql-42.2.5.jar
205
194
  - lib/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar
206
- - lib/ru/yandex/qatools/embed/postgresql-embedded/2.10/postgresql-embedded-2.10.jar
207
- - lib/ru/yandex/qatools/embed/postgresql-embedded/2.8/postgresql-embedded-2.8.jar
208
195
  - logstash-output-charrington.gemspec
209
196
  - spec/charrington_spec_helper.rb
210
197
  - spec/logstash-output-charrington_test_jars.rb
@@ -239,7 +226,7 @@ requirements:
239
226
  - jar 'com.zaxxer:HikariCP', '2.7.2'
240
227
  - jar 'org.apache.logging.log4j:log4j-slf4j-impl', '2.6.2'
241
228
  rubyforge_project:
242
- rubygems_version: 2.7.6
229
+ rubygems_version: 2.7.9
243
230
  signing_key:
244
231
  specification_version: 4
245
232
  summary: This plugin allows you to output to SQL, via JDBC
data/CHANGELOG.md DELETED
@@ -1,64 +0,0 @@
1
- # Change Log
2
- All notable changes to this project will be documented in this file, from 0.2.0.
3
-
4
- ## [5.3.0] - 2017-11-08
5
- - Adds configuration options `enable_event_as_json_keyword` and `event_as_json_keyword`
6
- - Adds BigDecimal support
7
- - Adds additional logging for debugging purposes (with thanks to @mlkmhd's work)
8
-
9
- ## [5.2.1] - 2017-04-09
10
- - Adds Array and Hash to_json support for non-sprintf syntax
11
-
12
- ## [5.2.0] - 2017-04-01
13
- - Upgrades HikariCP to latest
14
- - Fixes HikariCP logging integration issues
15
-
16
- ## [5.1.0] - 2016-12-17
17
- - phoenix-thin fixes for issue #60
18
-
19
- ## [5.0.0] - 2016-11-03
20
- - logstash v5 support
21
-
22
- ## [0.3.1] - 2016-08-28
23
- - Adds connection_test configuration option, to prevent the connection test from occuring, allowing the error to be suppressed.
24
- Useful for cockroachdb deployments. https://github.com/theangryangel/logstash-output-jdbc/issues/53
25
-
26
- ## [0.3.0] - 2016-07-24
27
- - Brings tests from v5 branch, providing greater coverage
28
- - Removes bulk update support, due to inconsistent behaviour
29
- - Plugin now marked as threadsafe, meaning only 1 instance per-Logstash
30
- - Raises default max_pool_size to match the default number of workers (1 connection per worker)
31
-
32
- ## [0.2.10] - 2016-07-07
33
- - Support non-string entries in statement array
34
- - Adds backtrace to exception logging
35
-
36
- ## [0.2.9] - 2016-06-29
37
- - Fix NameError exception.
38
- - Moved log_jdbc_exception calls
39
-
40
- ## [0.2.7] - 2016-05-29
41
- - Backport retry exception logic from v5 branch
42
- - Backport improved timestamp compatibility from v5 branch
43
-
44
- ## [0.2.6] - 2016-05-02
45
- - Fix for exception infinite loop
46
-
47
- ## [0.2.5] - 2016-04-11
48
- ### Added
49
- - Basic tests running against DerbyDB
50
- - Fix for converting Logstash::Timestamp to iso8601 from @hordijk
51
-
52
- ## [0.2.4] - 2016-04-07
53
- - Documentation fixes from @hordijk
54
-
55
- ## [0.2.3] - 2016-02-16
56
- - Bug fixes
57
-
58
- ## [0.2.2] - 2015-12-30
59
- - Bug fixes
60
-
61
- ## [0.2.1] - 2015-12-22
62
- - Support for connection pooling support added through HikariCP
63
- - Support for unsafe statement handling (allowing dynamic queries)
64
- - Altered exception handling to now count sequential flushes with exceptions thrown
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2014
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
data/README.md DELETED
@@ -1,130 +0,0 @@
1
- # Logstash Output Charrington
2
-
3
- Logstash Output Plugin to handle batching messages and dynamically create and alter tables.
4
-
5
- Forked From [logstash-output-jdbc](https://github.com/theangryangel/logstash-output-jdbc)
6
- ## Configure
7
- Example Logstash Config
8
- ```bash
9
- input {
10
- kafka {
11
- auto_offset_reset => earliest
12
- bootstrap_servers => "${LS_KAFKA_BOOTSTRAP_SERVERS:kafka:9092}"
13
- codec => json
14
- group_id => "winston_ls_pg_sinks_cg"
15
- topics => [
16
- "orwell.analytics.v1.json"
17
- ]
18
- }
19
- }
20
-
21
- filter {
22
- if "_jsonparsefailure" in [tags] {
23
- drop { }
24
- }
25
-
26
- ruby {
27
- code => "
28
- hash = event.to_hash
29
- hash.each do |k,v|
30
- if v == nil
31
- event.remove(k)
32
- end
33
- end
34
- "
35
- }
36
- }
37
-
38
- output {
39
- charrington {
40
- driver_jar_path => "${DRIVER_PATH:/usr/share/logstash/vendor/jar/jdbc/postgresql-42.2.5.jar}"
41
- connection_string => "jdbc:postgresql://${WINSTON_DATABASE_HOST}:5432/${WINSTON_DATABASE}?user=${WINSTON_DATABASE_USERNAME}&password=${WINSTON_DATABASE_PASSWORD}"
42
- schema => "dea"
43
- }
44
-
45
- if "${LS_SHOW_DEBUG_OUTPUT}" == "true" {
46
- stdout { codec => rubydebug }
47
- }
48
- }
49
- ```
50
-
51
- ## Build & Publish
52
-
53
- **TLDR**
54
- ```bash
55
- bundle exec rake build # build gem
56
- gem push logstash-output-charrington-x.x.x.gem # publish
57
- ```
58
-
59
- Everything in the [vendor](./vendor) directory (including `test-jars` if it exists) will be packaged with the generated gem.
60
- Avoid including unnecessary dependencies, by removing the vendor directory and regenerating it with the rake task.
61
- See the first command below:
62
-
63
- ```bash
64
- rm -r vendor && bundle exec rake install_jars # clean vendor directory and re-install runtime jar dependencies
65
- gem build logstash-output-charrington.gemspec # build
66
- gem push logstash-output-charrington-x.x.x.gem # publish
67
- gem owner --add <email> logstash-output-charrington # add another authorized publisher
68
- ```
69
-
70
- ## Testing
71
- **NOTE:** Downloading test_jars requires maven and Java. You can set them up with asdf: [asdf-java](https://github.com/skotchpine/asdf-java), [asdf-maven](https://github.com/skotchpine/asdf-maven)
72
- * There is currently an [open bug](https://github.com/skotchpine/asdf-maven/pull/17) with how `asdf-maven` sets `$JAVA_HOME` on a mac. Edit your `~/.asdf/plugins/maven/bin/exec-env` file to fix the bug
73
-
74
- ```bash
75
- bundle exec rake install_test_jars # install test runtime jar dependencies
76
- bundle exec rspec
77
- ```
78
-
79
- #### Dangling Embedded Postgres
80
- **TLDR**
81
- ```bash
82
- lsof -PiTCP -sTCP:LISTEN | grep postgres | awk '{print $2}' | xargs kill
83
- ```
84
- Sometimes the embedded postgres JAR can leave dangling open processes. This is obvious when you have `export TEST_DEBUG=true`
85
- and the test output contains a stacktrace that starts with `[2019-06-21T15:18:06,734][ERROR][ru.yandex.qatools.embed.postgresql.PostgresProcess] Failed to read PID file (File '/var/folders/...`.
86
- To resolve this issue, check for dangling processes using `lsof -PiTCP -sTCP:LISTEN | grep postgres`, then you can kill the process ids
87
-
88
- #### Tracks Table
89
- **Create Statment for Driver is Postgres and Transform is Redshift**
90
- * See `@@redshift_tracks_columns` in [insert.rb](./lib/logstash/outputs/charrington/insert.rb) for column list
91
- ```sql
92
- create table <schema>.tracks
93
- (
94
- id varchar(512) not null constraint tracks_pkey primary key,
95
- anonymous_id varchar(512),
96
- app_name varchar(512),
97
- context_campaign_content varchar(512)
98
- context_campaign_medium varchar(512),
99
- context_campaign_name varchar(512),
100
- context_campaign_source varchar(512),
101
- context_ip varchar(512),
102
- context_library_name varchar(512),
103
- context_library_version varchar(512),
104
- context_page_path varchar(512),
105
- context_page_referrer varchar(512),
106
- context_page_search varchar(512),
107
- context_page_title varchar(512),
108
- context_page_url varchar(512),
109
- context_user_agent varchar(512),
110
- event varchar(512),
111
- event_text varchar(512),
112
- original_timestamp timestamp,
113
- received_at timestamp,
114
- segment_dedupe_id varchar(512),
115
- sent_at timestamp,
116
- timestamp timestamp,
117
- user_id varchar(512),
118
- user_uid varchar(512),
119
- uuid bigint,
120
- uuid_ts timestamp default ('now'::text)::timestamp without time zone,
121
- )
122
-
123
- ```
124
-
125
- #### Resources
126
- * [logstash-devutils](https://rubygems.org/gems/logstash-devutils) gem with logstash helper methods and tools
127
- * [spec_helper.rb source](https://github.com/elastic/logstash-devutils/blob/master/lib/logstash/devutils/rspec/spec_helper.rb)
128
- * [logstash_helpers.rb source](https://github.com/elastic/logstash-devutils/blob/master/lib/logstash/devutils/rspec/logstash_helpers.rb)
129
- * [logstash-output-file spec test](https://github.com/logstash-plugins/logstash-output-file/blob/master/spec/outputs/file_spec.rb)
130
-
data/THANKS.md DELETED
@@ -1,18 +0,0 @@
1
- logstash-output-jdbc is a project originally created by Karl Southern
2
- (the_angry_angel), but there are a number of people that have contributed
3
- or implemented key features over time. We do our best to keep this list
4
- up-to-date, but you can also have a look at the nice contributor graphs
5
- produced by GitHub: https://github.com/theangryangel/logstash-output-jdbc/graphs/contributors
6
-
7
- * [hordijk](https://github.com/hordijk)
8
- * [dmitryakadiamond](https://github.com/dmitryakadiamond)
9
- * [MassimoSporchia](https://github.com/MassimoSporchia)
10
- * [ebuildy](https://github.com/ebuildy)
11
- * [kushtrimjunuzi](https://github.com/kushtrimjunuzi)
12
- * [josemazo](https://github.com/josemazo)
13
- * [aceoliver](https://github.com/aceoliver)
14
- * [roflmao](https://github.com/roflmao)
15
- * [onesuper](https://github.com/onesuper)
16
- * [phr0gz](https://github.com/phr0gz)
17
- * [jMonsinjon](https://github.com/jMonsinjon)
18
- * [mlkmhd](https://github.com/mlkmhd)