logstash-input-google_pubsub 1.1.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/CONTRIBUTORS +23 -0
- data/LICENSE +199 -10
- data/README.md +2 -1
- data/docs/index.asciidoc +18 -0
- data/lib/logstash/inputs/google_pubsub.rb +105 -132
- data/lib/logstash-input-google_pubsub_jars.rb +54 -0
- data/logstash-input-google_pubsub.gemspec +10 -4
- data/vendor/jar-dependencies/com/google/android/annotations/4.1.1.4/annotations-4.1.1.4.jar +0 -0
- data/vendor/jar-dependencies/com/google/api/api-common/2.2.1/api-common-2.2.1.jar +0 -0
- data/vendor/jar-dependencies/com/google/api/gax/2.18.7/gax-2.18.7.jar +0 -0
- data/vendor/jar-dependencies/com/google/api/gax-grpc/2.18.7/gax-grpc-2.18.7.jar +0 -0
- data/vendor/jar-dependencies/com/google/api/gax-httpjson/0.103.7/gax-httpjson-0.103.7.jar +0 -0
- data/vendor/jar-dependencies/com/google/api/grpc/proto-google-cloud-pubsub-v1/1.102.13/proto-google-cloud-pubsub-v1-1.102.13.jar +0 -0
- data/vendor/jar-dependencies/com/google/api/grpc/proto-google-common-protos/2.9.2/proto-google-common-protos-2.9.2.jar +0 -0
- data/vendor/jar-dependencies/com/google/api/grpc/proto-google-iam-v1/1.5.2/proto-google-iam-v1-1.5.2.jar +0 -0
- data/vendor/jar-dependencies/com/google/auth/google-auth-library-credentials/1.8.1/google-auth-library-credentials-1.8.1.jar +0 -0
- data/vendor/jar-dependencies/com/google/auth/google-auth-library-oauth2-http/1.8.1/google-auth-library-oauth2-http-1.8.1.jar +0 -0
- data/vendor/jar-dependencies/com/google/auto/value/auto-value-annotations/1.9/auto-value-annotations-1.9.jar +0 -0
- data/vendor/jar-dependencies/com/google/cloud/google-cloud-pubsub/1.120.13/google-cloud-pubsub-1.120.13.jar +0 -0
- data/vendor/jar-dependencies/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar +0 -0
- data/vendor/jar-dependencies/com/google/code/gson/gson/2.9.1/gson-2.9.1.jar +0 -0
- data/vendor/jar-dependencies/com/google/errorprone/error_prone_annotations/2.14.0/error_prone_annotations-2.14.0.jar +0 -0
- data/vendor/jar-dependencies/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar +0 -0
- data/vendor/jar-dependencies/com/google/guava/guava/31.1-jre/guava-31.1-jre.jar +0 -0
- data/vendor/jar-dependencies/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar +0 -0
- data/vendor/jar-dependencies/com/google/http-client/google-http-client/1.42.2/google-http-client-1.42.2.jar +0 -0
- data/vendor/jar-dependencies/com/google/http-client/google-http-client-gson/1.42.2/google-http-client-gson-1.42.2.jar +0 -0
- data/vendor/jar-dependencies/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar +0 -0
- data/vendor/jar-dependencies/com/google/protobuf/protobuf-java/3.21.4/protobuf-java-3.21.4.jar +0 -0
- data/vendor/jar-dependencies/com/google/protobuf/protobuf-java-util/3.21.4/protobuf-java-util-3.21.4.jar +0 -0
- data/vendor/jar-dependencies/com/google/re2j/re2j/1.6/re2j-1.6.jar +0 -0
- data/vendor/jar-dependencies/commons-codec/commons-codec/1.15/commons-codec-1.15.jar +0 -0
- data/vendor/jar-dependencies/commons-logging/commons-logging/1.2/commons-logging-1.2.jar +0 -0
- data/vendor/jar-dependencies/io/grpc/grpc-alts/1.48.0/grpc-alts-1.48.0.jar +0 -0
- data/vendor/jar-dependencies/io/grpc/grpc-api/1.48.0/grpc-api-1.48.0.jar +0 -0
- data/vendor/jar-dependencies/io/grpc/grpc-auth/1.48.0/grpc-auth-1.48.0.jar +0 -0
- data/vendor/jar-dependencies/io/grpc/grpc-context/1.48.0/grpc-context-1.48.0.jar +0 -0
- data/vendor/jar-dependencies/io/grpc/grpc-core/1.48.0/grpc-core-1.48.0.jar +0 -0
- data/vendor/jar-dependencies/io/grpc/grpc-googleapis/1.48.0/grpc-googleapis-1.48.0.jar +0 -0
- data/vendor/jar-dependencies/io/grpc/grpc-grpclb/1.48.0/grpc-grpclb-1.48.0.jar +0 -0
- data/vendor/jar-dependencies/io/grpc/grpc-netty-shaded/1.48.0/grpc-netty-shaded-1.48.0.jar +0 -0
- data/vendor/jar-dependencies/io/grpc/grpc-protobuf/1.48.0/grpc-protobuf-1.48.0.jar +0 -0
- data/vendor/jar-dependencies/io/grpc/grpc-protobuf-lite/1.48.0/grpc-protobuf-lite-1.48.0.jar +0 -0
- data/vendor/jar-dependencies/io/grpc/grpc-services/1.48.0/grpc-services-1.48.0.jar +0 -0
- data/vendor/jar-dependencies/io/grpc/grpc-stub/1.48.0/grpc-stub-1.48.0.jar +0 -0
- data/vendor/jar-dependencies/io/grpc/grpc-xds/1.48.0/grpc-xds-1.48.0.jar +0 -0
- data/vendor/jar-dependencies/io/opencensus/opencensus-api/0.31.1/opencensus-api-0.31.1.jar +0 -0
- data/vendor/jar-dependencies/io/opencensus/opencensus-contrib-http-util/0.31.1/opencensus-contrib-http-util-0.31.1.jar +0 -0
- data/vendor/jar-dependencies/io/opencensus/opencensus-proto/0.2.0/opencensus-proto-0.2.0.jar +0 -0
- data/vendor/jar-dependencies/io/perfmark/perfmark-api/0.25.0/perfmark-api-0.25.0.jar +0 -0
- data/vendor/jar-dependencies/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar +0 -0
- data/vendor/jar-dependencies/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar +0 -0
- data/vendor/jar-dependencies/org/apache/httpcomponents/httpcore/4.4.15/httpcore-4.4.15.jar +0 -0
- data/vendor/jar-dependencies/org/checkerframework/checker-qual/3.23.0/checker-qual-3.23.0.jar +0 -0
- data/vendor/jar-dependencies/org/codehaus/mojo/animal-sniffer-annotations/1.21/animal-sniffer-annotations-1.21.jar +0 -0
- data/vendor/jar-dependencies/org/conscrypt/conscrypt-openjdk-uber/2.5.2/conscrypt-openjdk-uber-2.5.2.jar +0 -0
- data/vendor/jar-dependencies/org/logstash/inputs/plugin/1.2.2/plugin-1.2.2.jar +0 -0
- data/vendor/jar-dependencies/org/threeten/threetenbp/1.6.0/threetenbp-1.6.0.jar +0 -0
- metadata +89 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc1279ce3f75158f4a960136826fc80a0a936ab358ca1d05b5d673eaaf05ce10
|
4
|
+
data.tar.gz: dfa594834563c91e1a482ab8ad5bcb4c64702a99dc2678751d1070bb21285858
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18ab4cc3cfd54e55a32fe89d4e0847d027ab1e7eeb7a5f9dbf3abd0591597a9b4cf56f2da5fec71a43f3a08e1458169de0301bab6d1cff04a9b6ecfbe08c88a7
|
7
|
+
data.tar.gz: 4a274d96d6f67f9555755c7465b9c9d97586d789f29a37853f5a782ff2e0698c760828036c3eabc002abbd322889fedb994b77cf9cbfa8bee0412117b4c6c7a5
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
## 1.2.2
|
2
|
+
- Updated dependencies forcing this plugin to be compatible only with Logstash >= 8.2.0 [#58](https://github.com/logstash-plugins/logstash-input-google_pubsub/pull/58)
|
3
|
+
|
4
|
+
## 1.2.1
|
5
|
+
- Fixed dependency conflicts with logstash-output-google_pubsub by using the same client library [logstash-output-google_pubsub#7](https://github.com/logstash-plugins/logstash-output-google_pubsub/issues/7)
|
6
|
+
|
7
|
+
## 1.2.0
|
8
|
+
- Change to Java client
|
9
|
+
- Add `create_subscription` setting. Fixes [#9](https://github.com/logstash-plugins/logstash-input-google_pubsub/issues/9)
|
10
|
+
|
1
11
|
## 1.1.0
|
2
12
|
- Add additional attributes in the `[@metadata][pubsub_message]` field. Fixes [#7](https://github.com/logstash-plugins/logstash-input-google_pubsub/issues/7)
|
3
13
|
|
data/CONTRIBUTORS
ADDED
@@ -0,0 +1,23 @@
|
|
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
|
+
|
6
|
+
* DeDe Morton (dedemorton)
|
7
|
+
* Eric Johnson (erjohnso)
|
8
|
+
* Google LLC
|
9
|
+
* Jake Landis (jakelandis)
|
10
|
+
* Jakub Sacha (jakubsacha)
|
11
|
+
* James Bloomer (jamesbloomer)
|
12
|
+
* João Duarte (jsvd)
|
13
|
+
* Jordan Sissel (jordansissel)
|
14
|
+
* Joseph Lewis III (josephlewis42)
|
15
|
+
* Pier-Hugues Pellerin (ph)
|
16
|
+
* Scott Brenner (ScottBrenner)
|
17
|
+
* Suyog Rao (suyograo)
|
18
|
+
* Sven Widén (SvenW)
|
19
|
+
|
20
|
+
Note: If you've sent us patches, bug reports, or otherwise contributed to
|
21
|
+
Logstash, and you aren't on the list above and want to be, please let us know
|
22
|
+
and we'll make sure you're here. Contributions from folks like you are what make
|
23
|
+
open source awesome.
|
data/LICENSE
CHANGED
@@ -1,13 +1,202 @@
|
|
1
|
-
Copyright (c) 2012-2018 Elasticsearch <http://www.elastic.co>
|
2
1
|
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
6
5
|
|
7
|
-
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
8
7
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright 2020 Elastic and contributors
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Logstash Plugin
|
2
2
|
|
3
|
-
[![Travis Build Status](https://travis-ci.
|
3
|
+
[![Travis Build Status](https://travis-ci.com/logstash-plugins/logstash-input-google_pubsub.svg)](https://travis-ci.com/logstash-plugins/logstash-input-google_pubsub)
|
4
4
|
|
5
5
|
This is a [Logstash](https://github.com/elastic/logstash) input plugin for
|
6
6
|
[Google Pub/Sub](https://cloud.google.com/pubsub/). The plugin can subscribe
|
@@ -130,6 +130,7 @@ Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/log
|
|
130
130
|
- Install dependencies
|
131
131
|
```sh
|
132
132
|
bundle install
|
133
|
+
rake install_jars
|
133
134
|
```
|
134
135
|
|
135
136
|
#### Test
|
data/docs/index.asciidoc
CHANGED
@@ -133,6 +133,11 @@ input {
|
|
133
133
|
# outside of GCE, you will need to specify the service account's
|
134
134
|
# JSON key file below.
|
135
135
|
#json_key_file => "/home/erjohnso/pkey.json"
|
136
|
+
|
137
|
+
# Should the plugin attempt to create the subscription on startup?
|
138
|
+
# This is not recommended for security reasons but may be useful in
|
139
|
+
# some cases.
|
140
|
+
#create_subscription => false
|
136
141
|
}
|
137
142
|
}
|
138
143
|
output { stdout { codec => rubydebug } }
|
@@ -185,6 +190,7 @@ This plugin supports the following configuration options plus the <<plugins-{typ
|
|
185
190
|
| <<plugins-{type}s-{plugin}-subscription>> |<<string,string>>|Yes
|
186
191
|
| <<plugins-{type}s-{plugin}-topic>> |<<string,string>>|Yes
|
187
192
|
| <<plugins-{type}s-{plugin}-include_metadata>> |<<boolean,boolean>>|No
|
193
|
+
| <<plugins-{type}s-{plugin}-create_subscription>> |<<boolean,boolean>>|No
|
188
194
|
|=======================================================================
|
189
195
|
|
190
196
|
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
@@ -250,6 +256,18 @@ The subscription will be created automatically by the plugin.
|
|
250
256
|
|
251
257
|
If set true, will include the full message data in the `[@metadata][pubsub_message]` field.
|
252
258
|
|
259
|
+
[id="plugins-{type}s-{plugin}-create_subscription"]
|
260
|
+
===== `create_subscription`
|
261
|
+
|
262
|
+
added[1.2.0]
|
263
|
+
|
264
|
+
* Value type is <<boolean,boolean>>
|
265
|
+
* Default value is `false`.
|
266
|
+
|
267
|
+
If true, the plugin will try to create the subscription before publishing.
|
268
|
+
Note: this requires additional permissions to be granted to the client and is _not_
|
269
|
+
recommended for most use-cases.
|
270
|
+
|
253
271
|
[id="plugins-{type}s-{plugin}-common-options"]
|
254
272
|
include::{include_path}/{type}.asciidoc[]
|
255
273
|
|
@@ -19,8 +19,8 @@
|
|
19
19
|
require "logstash/inputs/base"
|
20
20
|
require "logstash/namespace"
|
21
21
|
|
22
|
-
|
23
|
-
require
|
22
|
+
require 'java'
|
23
|
+
require 'logstash-input-google_pubsub_jars.rb'
|
24
24
|
|
25
25
|
# This is a https://github.com/elastic/logstash[Logstash] input plugin for
|
26
26
|
# https://cloud.google.com/pubsub/[Google Pub/Sub]. The plugin can subscribe
|
@@ -123,38 +123,70 @@ require "google/api_client"
|
|
123
123
|
# ----------------------------------
|
124
124
|
#
|
125
125
|
# ==== Metadata and Attributes
|
126
|
-
#
|
127
|
-
# The original Pub/Sub message is preserved in the special Logstash
|
126
|
+
#
|
127
|
+
# The original Pub/Sub message is preserved in the special Logstash
|
128
128
|
# `[@metadata][pubsub_message]` field so you can fetch:
|
129
|
-
#
|
129
|
+
#
|
130
130
|
# * Message attributes
|
131
131
|
# * The origiginal base64 data
|
132
132
|
# * Pub/Sub message ID for de-duplication
|
133
133
|
# * Publish time
|
134
|
-
#
|
134
|
+
#
|
135
135
|
# You MUST extract any fields you want in a filter prior to the data being sent
|
136
136
|
# to an output because Logstash deletes `@metadata` fields otherwise.
|
137
|
-
#
|
137
|
+
#
|
138
138
|
# See the PubsubMessage
|
139
139
|
# https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage[documentation]
|
140
140
|
# for a full description of the fields.
|
141
|
-
#
|
141
|
+
#
|
142
142
|
# Example to get the message ID:
|
143
|
-
#
|
143
|
+
#
|
144
144
|
# [source,ruby]
|
145
|
-
# ----------------------------------
|
145
|
+
# ----------------------------------
|
146
146
|
# input {google_pubsub {...}}
|
147
|
-
#
|
147
|
+
#
|
148
148
|
# filter {
|
149
149
|
# mutate {
|
150
150
|
# add_field => { "messageId" => "%{[@metadata][pubsub_message][messageId]}" }
|
151
151
|
# }
|
152
152
|
# }
|
153
|
-
#
|
153
|
+
#
|
154
154
|
# output {...}
|
155
155
|
# ----------------------------------
|
156
156
|
#
|
157
|
+
|
157
158
|
class LogStash::Inputs::GooglePubSub < LogStash::Inputs::Base
|
159
|
+
class MessageReceiver
|
160
|
+
include com.google.cloud.pubsub.v1.MessageReceiver
|
161
|
+
|
162
|
+
def initialize(&blk)
|
163
|
+
@block = blk
|
164
|
+
end
|
165
|
+
|
166
|
+
def receiveMessage(message, consumer)
|
167
|
+
@block.call(message)
|
168
|
+
consumer.ack()
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
java_import 'com.google.api.core.ApiService$Listener'
|
173
|
+
class SubscriberListener < Listener
|
174
|
+
def initialize(&blk)
|
175
|
+
@block = blk
|
176
|
+
end
|
177
|
+
|
178
|
+
def failed(from, failure)
|
179
|
+
@block.call(from, failure)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
include_package 'com.google.api.gax.batching'
|
184
|
+
include_package 'com.google.api.gax.core'
|
185
|
+
include_package 'com.google.auth.oauth2'
|
186
|
+
include_package 'com.google.common.util.concurrent'
|
187
|
+
include_package 'com.google.cloud.pubsub.v1'
|
188
|
+
include_package 'com.google.pubsub.v1'
|
189
|
+
include_package 'com.google.protobuf.util'
|
158
190
|
config_name "google_pubsub"
|
159
191
|
|
160
192
|
# Google Cloud Project ID (name, not number)
|
@@ -176,140 +208,81 @@ class LogStash::Inputs::GooglePubSub < LogStash::Inputs::Base
|
|
176
208
|
# If set true, will include the full message data in the `[@metadata][pubsub_message]` field.
|
177
209
|
config :include_metadata, :validate => :boolean, :required => false, :default => false
|
178
210
|
|
211
|
+
# If true, the plugin will try to create the subscription before publishing.
|
212
|
+
# Note: this requires additional permissions to be granted to the client and is _not_
|
213
|
+
# recommended for most use-cases.
|
214
|
+
config :create_subscription, :validate => :boolean, :required => false, :default => false
|
215
|
+
|
179
216
|
# If undefined, Logstash will complain, even if codec is unused.
|
180
217
|
default :codec, "plain"
|
181
218
|
|
182
|
-
private
|
183
|
-
def request(options)
|
184
|
-
begin
|
185
|
-
@logger.debug("Sending an API request")
|
186
|
-
result = @client.execute(options)
|
187
|
-
rescue ArgumentError => e
|
188
|
-
@logger.debug("Authorizing...")
|
189
|
-
@client.authorization.fetch_access_token!
|
190
|
-
@logger.debug("...authorized")
|
191
|
-
request(options)
|
192
|
-
rescue Faraday::TimeoutError => e
|
193
|
-
@logger.debug("Request timeout, re-trying request")
|
194
|
-
request(options)
|
195
|
-
end
|
196
|
-
end # def request
|
197
|
-
|
198
219
|
public
|
199
220
|
def register
|
200
221
|
@logger.debug("Registering Google PubSub Input: project_id=#{@project_id}, topic=#{@topic}, subscription=#{@subscription}")
|
201
|
-
@
|
202
|
-
@subscription = "projects/#{@project_id}/subscriptions/#{@subscription}"
|
203
|
-
@subscription_exists = false
|
204
|
-
|
205
|
-
# TODO(erjohnso): read UA data from the gemspec
|
206
|
-
@client = Google::APIClient.new(
|
207
|
-
:application_name => 'logstash-input-google_pubsub',
|
208
|
-
:application_version => '0.9.0'
|
209
|
-
)
|
222
|
+
@subscription_id = "projects/#{@project_id}/subscriptions/#{@subscription}"
|
210
223
|
|
211
|
-
# Initialize the pubsub API client
|
212
|
-
@pubsub = @client.discovered_api('pubsub', 'v1')
|
213
|
-
|
214
|
-
# Handle various kinds of auth (JSON or Application Default Creds)
|
215
|
-
# NOTE: Cannot use 'googleauth' gem since there are dependency conflicts
|
216
|
-
# - googleauth ~> 0.5 requires mime-data-types that requires ruby2
|
217
|
-
# - googleauth ~> 0.3 requires multi_json 1.11.0 that conflicts
|
218
|
-
# with logstash-2.3.2's multi_json 1.11.3
|
219
224
|
if @json_key_file
|
220
|
-
@
|
221
|
-
|
222
|
-
key_json = File.open(file_path, "r", &:read)
|
223
|
-
key_json = JSON.parse(key_json)
|
224
|
-
unless key_json.key?("client_email") || key_json.key?("private_key")
|
225
|
-
raise Google::APIClient::ClientError, "Invalid JSON credentials data."
|
226
|
-
end
|
227
|
-
signing_key = ::Google::APIClient::KeyUtils.load_from_pem(key_json["private_key"], "notasecret")
|
228
|
-
@client.authorization = Signet::OAuth2::Client.new(
|
229
|
-
:audience => "https://accounts.google.com/o/oauth2/token",
|
230
|
-
:auth_provider_x509_cert_url => "https://www.googleapis.com/oauth2/v1/certs",
|
231
|
-
:client_x509_cert_url => "https://www.googleapis.com/robot/v1/metadata/x509/#{key_json['client_email']}",
|
232
|
-
:issuer => "#{key_json['client_email']}",
|
233
|
-
:scope => %w(https://www.googleapis.com/auth/cloud-platform),
|
234
|
-
:signing_key => signing_key,
|
235
|
-
:token_credential_uri => "https://accounts.google.com/o/oauth2/token"
|
225
|
+
@credentialsProvider = FixedCredentialsProvider.create(
|
226
|
+
ServiceAccountCredentials.fromStream(java.io.FileInputStream.new(@json_key_file))
|
236
227
|
)
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
end # def register
|
228
|
+
end
|
229
|
+
@topic_name = ProjectTopicName.of(@project_id, @topic)
|
230
|
+
@subscription_name = ProjectSubscriptionName.of(@project_id, @subscription)
|
231
|
+
end
|
232
|
+
|
233
|
+
def stop
|
234
|
+
@subscriber.stopAsync().awaitTerminated() if @subscriber != nil
|
235
|
+
end
|
246
236
|
|
247
237
|
def run(queue)
|
248
238
|
# Attempt to create the subscription
|
249
|
-
if
|
250
|
-
@logger.debug("Creating subscription #{
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
:ackDeadlineSeconds => 15
|
257
|
-
}
|
258
|
-
)
|
259
|
-
if result.error? and result.status != 409
|
260
|
-
raise Google::APIClient::ClientError, "Error #{result.status}: #{result.error_message}"
|
239
|
+
if @create_subscription
|
240
|
+
@logger.debug("Creating subscription #{@subscription_id}")
|
241
|
+
subscriptionAdminClient = SubscriptionAdminClient.create
|
242
|
+
begin
|
243
|
+
subscriptionAdminClient.createSubscription(@subscription_name, @topic_name, PushConfig.getDefaultInstance(), 0)
|
244
|
+
rescue
|
245
|
+
@logger.info("Subscription already exists")
|
261
246
|
end
|
262
|
-
|
263
|
-
end # if !@subscription
|
264
|
-
|
265
|
-
@logger.debug("Pulling messages from sub '#{subscription}'")
|
266
|
-
while !stop?
|
267
|
-
# Pull and queue messages
|
268
|
-
messages = []
|
269
|
-
result = request(
|
270
|
-
:api_method => @pubsub.projects.subscriptions.pull,
|
271
|
-
:parameters => {'subscription' => @subscription},
|
272
|
-
:body_object => {
|
273
|
-
:returnImmediately => false,
|
274
|
-
:maxMessages => @max_messages
|
275
|
-
}
|
276
|
-
)
|
247
|
+
end
|
277
248
|
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
249
|
+
@logger.debug("Pulling messages from sub '#{@subscription_id}'")
|
250
|
+
handler = MessageReceiver.new do |message|
|
251
|
+
# handle incoming message, then ack/nack the received message
|
252
|
+
data = message.getData().toStringUtf8()
|
253
|
+
@codec.decode(data) do |event|
|
254
|
+
event.set("host", event.get("host") || @host)
|
255
|
+
event.set("[@metadata][pubsub_message]", extract_metadata(message)) if @include_metadata
|
256
|
+
decorate(event)
|
257
|
+
queue << event
|
285
258
|
end
|
259
|
+
end
|
260
|
+
listener = SubscriberListener.new do |from, failure|
|
261
|
+
@logger.error("#{failure}")
|
262
|
+
raise failure
|
263
|
+
end
|
264
|
+
flowControlSettings = FlowControlSettings.newBuilder().setMaxOutstandingElementCount(@max_messages).build()
|
265
|
+
executorProvider = InstantiatingExecutorProvider.newBuilder().setExecutorThreadCount(1).build()
|
266
|
+
subscriberBuilder = Subscriber.newBuilder(@subscription_name, handler)
|
267
|
+
.setFlowControlSettings(flowControlSettings)
|
268
|
+
.setExecutorProvider(executorProvider)
|
269
|
+
.setParallelPullCount(1)
|
286
270
|
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
end
|
296
|
-
end
|
297
|
-
end
|
298
|
-
|
299
|
-
ack_ids = messages.map{ |msg| msg["ackId"] }
|
300
|
-
next if ack_ids.empty?
|
271
|
+
if @credentialsProvider
|
272
|
+
subscriberBuilder.setCredentialsProvider(@credentialsProvider)
|
273
|
+
end
|
274
|
+
@subscriber = subscriberBuilder.build()
|
275
|
+
@subscriber.addListener(listener, MoreExecutors.directExecutor())
|
276
|
+
@subscriber.startAsync()
|
277
|
+
@subscriber.awaitTerminated()
|
278
|
+
end
|
301
279
|
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
end
|
312
|
-
end # if messages
|
313
|
-
end # loop
|
314
|
-
end # def run
|
315
|
-
end # class LogStash::Inputs::GooglePubSub
|
280
|
+
def extract_metadata(java_message)
|
281
|
+
{
|
282
|
+
data: java_message.getData().toStringUtf8(),
|
283
|
+
attributes: java_message.getAttributesMap(),
|
284
|
+
messageId: java_message.getMessageId(),
|
285
|
+
publishTime: Timestamps.toString(java_message.getPublishTime())
|
286
|
+
}
|
287
|
+
end
|
288
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# AUTOGENERATED BY THE GRADLE SCRIPT. DO NOT EDIT.
|
2
|
+
|
3
|
+
require 'jar_dependencies'
|
4
|
+
require_jar('com.google.cloud', 'google-cloud-pubsub', '1.120.13')
|
5
|
+
require_jar('io.grpc', 'grpc-api', '1.48.0')
|
6
|
+
require_jar('io.grpc', 'grpc-context', '1.48.0')
|
7
|
+
require_jar('io.grpc', 'grpc-stub', '1.48.0')
|
8
|
+
require_jar('io.grpc', 'grpc-protobuf', '1.48.0')
|
9
|
+
require_jar('io.grpc', 'grpc-protobuf-lite', '1.48.0')
|
10
|
+
require_jar('com.google.api', 'api-common', '2.2.1')
|
11
|
+
require_jar('javax.annotation', 'javax.annotation-api', '1.3.2')
|
12
|
+
require_jar('com.google.protobuf', 'protobuf-java', '3.21.4')
|
13
|
+
require_jar('com.google.api.grpc', 'proto-google-common-protos', '2.9.2')
|
14
|
+
require_jar('com.google.auth', 'google-auth-library-oauth2-http', '1.8.1')
|
15
|
+
require_jar('com.google.auth', 'google-auth-library-credentials', '1.8.1')
|
16
|
+
require_jar('com.google.http-client', 'google-http-client-gson', '1.42.2')
|
17
|
+
require_jar('com.google.api.grpc', 'proto-google-cloud-pubsub-v1', '1.102.13')
|
18
|
+
require_jar('com.google.auto.value', 'auto-value-annotations', '1.9')
|
19
|
+
require_jar('com.google.guava', 'failureaccess', '1.0.1')
|
20
|
+
require_jar('com.google.guava', 'listenablefuture', '9999.0-empty-to-avoid-conflict-with-guava')
|
21
|
+
require_jar('com.google.code.findbugs', 'jsr305', '3.0.2')
|
22
|
+
require_jar('org.checkerframework', 'checker-qual', '3.23.0')
|
23
|
+
require_jar('com.google.errorprone', 'error_prone_annotations', '2.14.0')
|
24
|
+
require_jar('com.google.j2objc', 'j2objc-annotations', '1.3')
|
25
|
+
require_jar('com.google.api.grpc', 'proto-google-iam-v1', '1.5.2')
|
26
|
+
require_jar('com.google.guava', 'guava', '31.1-jre')
|
27
|
+
require_jar('com.google.api', 'gax', '2.18.7')
|
28
|
+
require_jar('com.google.api', 'gax-grpc', '2.18.7')
|
29
|
+
require_jar('io.grpc', 'grpc-alts', '1.48.0')
|
30
|
+
require_jar('io.grpc', 'grpc-grpclb', '1.48.0')
|
31
|
+
require_jar('org.conscrypt', 'conscrypt-openjdk-uber', '2.5.2')
|
32
|
+
require_jar('io.grpc', 'grpc-auth', '1.48.0')
|
33
|
+
require_jar('io.grpc', 'grpc-netty-shaded', '1.48.0')
|
34
|
+
require_jar('io.grpc', 'grpc-googleapis', '1.48.0')
|
35
|
+
require_jar('io.grpc', 'grpc-xds', '1.48.0')
|
36
|
+
require_jar('io.grpc', 'grpc-services', '1.48.0')
|
37
|
+
require_jar('com.google.re2j', 're2j', '1.6')
|
38
|
+
require_jar('io.opencensus', 'opencensus-proto', '0.2.0')
|
39
|
+
require_jar('com.google.api', 'gax-httpjson', '0.103.7')
|
40
|
+
require_jar('com.google.code.gson', 'gson', '2.9.1')
|
41
|
+
require_jar('com.google.protobuf', 'protobuf-java-util', '3.21.4')
|
42
|
+
require_jar('org.threeten', 'threetenbp', '1.6.0')
|
43
|
+
require_jar('io.opencensus', 'opencensus-api', '0.31.1')
|
44
|
+
require_jar('io.grpc', 'grpc-core', '1.48.0')
|
45
|
+
require_jar('com.google.android', 'annotations', '4.1.1.4')
|
46
|
+
require_jar('org.codehaus.mojo', 'animal-sniffer-annotations', '1.21')
|
47
|
+
require_jar('io.perfmark', 'perfmark-api', '0.25.0')
|
48
|
+
require_jar('com.google.http-client', 'google-http-client', '1.42.2')
|
49
|
+
require_jar('org.apache.httpcomponents', 'httpclient', '4.5.13')
|
50
|
+
require_jar('commons-logging', 'commons-logging', '1.2')
|
51
|
+
require_jar('commons-codec', 'commons-codec', '1.15')
|
52
|
+
require_jar('org.apache.httpcomponents', 'httpcore', '4.4.15')
|
53
|
+
require_jar('io.opencensus', 'opencensus-contrib-http-util', '0.31.1')
|
54
|
+
require_jar('org.logstash.inputs', 'plugin', '1.2.2')
|
@@ -1,13 +1,13 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-google_pubsub'
|
3
|
-
s.version = '
|
3
|
+
s.version = ::File.read('version').split("\n").first
|
4
4
|
s.licenses = ['Apache-2.0']
|
5
5
|
s.summary = "Consume events from a Google Cloud PubSub service"
|
6
6
|
s.description = "This gem is a Logstash input 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
7
|
s.authors = ["Eric Johnson"]
|
8
8
|
s.email = 'erjohnso@google.com'
|
9
9
|
s.homepage = "https://cloud.google.com/pubsub/overview"
|
10
|
-
s.require_paths = ["lib"]
|
10
|
+
s.require_paths = ["lib", "vendor/jar-dependencies"]
|
11
11
|
|
12
12
|
# Files
|
13
13
|
s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
|
@@ -18,12 +18,18 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "input" }
|
19
19
|
|
20
20
|
# Gem dependencies
|
21
|
+
s.add_runtime_dependency 'logstash-core', '>= 8.2.0'
|
21
22
|
s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
|
22
23
|
s.add_runtime_dependency 'logstash-codec-plain'
|
23
24
|
s.add_runtime_dependency 'stud', '>= 0.0.22'
|
24
25
|
# Google dependencies
|
25
|
-
# google-api-client >= 0.9 requires ruby2 which is not currently compatible
|
26
26
|
# with JRuby
|
27
|
-
s.
|
27
|
+
s.requirements << "jar 'com.google.cloud:google-cloud-pubsub', '0.28.0-beta'"
|
28
|
+
s.requirements << "jar 'com.google.api.grpc:proto-google-cloud-pubsub-v1', '0.1.24'"
|
29
|
+
s.requirements << "jar 'com.google.api:gax', '1.14.0'"
|
30
|
+
s.requirements << "jar 'com.google.guava:guava', '20.0'"
|
31
|
+
s.requirements << "jar 'com.google.api:api-common', '1.2.0'"
|
32
|
+
s.requirements << "jar 'com.google.auth:google-auth-library-oauth2-http', '0.9.0'"
|
28
33
|
s.add_development_dependency 'logstash-devutils'
|
34
|
+
s.add_development_dependency 'jar-dependencies', '~> 0.4'
|
29
35
|
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/jar-dependencies/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar
ADDED
Binary file
|
data/vendor/jar-dependencies/com/google/protobuf/protobuf-java/3.21.4/protobuf-java-3.21.4.jar
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/jar-dependencies/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-google_pubsub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: 8.2.0
|
19
|
+
name: logstash-core
|
20
|
+
prerelease: false
|
21
|
+
type: :runtime
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 8.2.0
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
requirement: !ruby/object:Gem::Requirement
|
15
29
|
requirements:
|
@@ -61,37 +75,31 @@ dependencies:
|
|
61
75
|
- !ruby/object:Gem::Dependency
|
62
76
|
requirement: !ruby/object:Gem::Requirement
|
63
77
|
requirements:
|
64
|
-
- - "
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: 0.8.6
|
67
|
-
- - "<"
|
78
|
+
- - ">="
|
68
79
|
- !ruby/object:Gem::Version
|
69
|
-
version: '0
|
70
|
-
name:
|
80
|
+
version: '0'
|
81
|
+
name: logstash-devutils
|
71
82
|
prerelease: false
|
72
|
-
type: :
|
83
|
+
type: :development
|
73
84
|
version_requirements: !ruby/object:Gem::Requirement
|
74
85
|
requirements:
|
75
|
-
- - "
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 0.8.6
|
78
|
-
- - "<"
|
86
|
+
- - ">="
|
79
87
|
- !ruby/object:Gem::Version
|
80
|
-
version: '0
|
88
|
+
version: '0'
|
81
89
|
- !ruby/object:Gem::Dependency
|
82
90
|
requirement: !ruby/object:Gem::Requirement
|
83
91
|
requirements:
|
84
|
-
- - "
|
92
|
+
- - "~>"
|
85
93
|
- !ruby/object:Gem::Version
|
86
|
-
version: '0'
|
87
|
-
name:
|
94
|
+
version: '0.4'
|
95
|
+
name: jar-dependencies
|
88
96
|
prerelease: false
|
89
97
|
type: :development
|
90
98
|
version_requirements: !ruby/object:Gem::Requirement
|
91
99
|
requirements:
|
92
|
-
- - "
|
100
|
+
- - "~>"
|
93
101
|
- !ruby/object:Gem::Version
|
94
|
-
version: '0'
|
102
|
+
version: '0.4'
|
95
103
|
description: This gem is a Logstash input plugin required to be installed on top of
|
96
104
|
the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
|
97
105
|
gem is not a stand-alone program.
|
@@ -102,14 +110,67 @@ extra_rdoc_files: []
|
|
102
110
|
files:
|
103
111
|
- CHANGELOG.md
|
104
112
|
- CONTRIBUTING.md
|
113
|
+
- CONTRIBUTORS
|
105
114
|
- Gemfile
|
106
115
|
- LICENSE
|
107
116
|
- NOTICE.TXT
|
108
117
|
- README.md
|
109
118
|
- docs/index.asciidoc
|
119
|
+
- lib/logstash-input-google_pubsub_jars.rb
|
110
120
|
- lib/logstash/inputs/google_pubsub.rb
|
111
121
|
- logstash-input-google_pubsub.gemspec
|
112
122
|
- spec/inputs/google_pubsub_spec.rb
|
123
|
+
- vendor/jar-dependencies/com/google/android/annotations/4.1.1.4/annotations-4.1.1.4.jar
|
124
|
+
- vendor/jar-dependencies/com/google/api/api-common/2.2.1/api-common-2.2.1.jar
|
125
|
+
- vendor/jar-dependencies/com/google/api/gax-grpc/2.18.7/gax-grpc-2.18.7.jar
|
126
|
+
- vendor/jar-dependencies/com/google/api/gax-httpjson/0.103.7/gax-httpjson-0.103.7.jar
|
127
|
+
- vendor/jar-dependencies/com/google/api/gax/2.18.7/gax-2.18.7.jar
|
128
|
+
- vendor/jar-dependencies/com/google/api/grpc/proto-google-cloud-pubsub-v1/1.102.13/proto-google-cloud-pubsub-v1-1.102.13.jar
|
129
|
+
- vendor/jar-dependencies/com/google/api/grpc/proto-google-common-protos/2.9.2/proto-google-common-protos-2.9.2.jar
|
130
|
+
- vendor/jar-dependencies/com/google/api/grpc/proto-google-iam-v1/1.5.2/proto-google-iam-v1-1.5.2.jar
|
131
|
+
- vendor/jar-dependencies/com/google/auth/google-auth-library-credentials/1.8.1/google-auth-library-credentials-1.8.1.jar
|
132
|
+
- vendor/jar-dependencies/com/google/auth/google-auth-library-oauth2-http/1.8.1/google-auth-library-oauth2-http-1.8.1.jar
|
133
|
+
- vendor/jar-dependencies/com/google/auto/value/auto-value-annotations/1.9/auto-value-annotations-1.9.jar
|
134
|
+
- vendor/jar-dependencies/com/google/cloud/google-cloud-pubsub/1.120.13/google-cloud-pubsub-1.120.13.jar
|
135
|
+
- vendor/jar-dependencies/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar
|
136
|
+
- vendor/jar-dependencies/com/google/code/gson/gson/2.9.1/gson-2.9.1.jar
|
137
|
+
- vendor/jar-dependencies/com/google/errorprone/error_prone_annotations/2.14.0/error_prone_annotations-2.14.0.jar
|
138
|
+
- vendor/jar-dependencies/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar
|
139
|
+
- vendor/jar-dependencies/com/google/guava/guava/31.1-jre/guava-31.1-jre.jar
|
140
|
+
- vendor/jar-dependencies/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
|
141
|
+
- vendor/jar-dependencies/com/google/http-client/google-http-client-gson/1.42.2/google-http-client-gson-1.42.2.jar
|
142
|
+
- vendor/jar-dependencies/com/google/http-client/google-http-client/1.42.2/google-http-client-1.42.2.jar
|
143
|
+
- vendor/jar-dependencies/com/google/j2objc/j2objc-annotations/1.3/j2objc-annotations-1.3.jar
|
144
|
+
- vendor/jar-dependencies/com/google/protobuf/protobuf-java-util/3.21.4/protobuf-java-util-3.21.4.jar
|
145
|
+
- vendor/jar-dependencies/com/google/protobuf/protobuf-java/3.21.4/protobuf-java-3.21.4.jar
|
146
|
+
- vendor/jar-dependencies/com/google/re2j/re2j/1.6/re2j-1.6.jar
|
147
|
+
- vendor/jar-dependencies/commons-codec/commons-codec/1.15/commons-codec-1.15.jar
|
148
|
+
- vendor/jar-dependencies/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
|
149
|
+
- vendor/jar-dependencies/io/grpc/grpc-alts/1.48.0/grpc-alts-1.48.0.jar
|
150
|
+
- vendor/jar-dependencies/io/grpc/grpc-api/1.48.0/grpc-api-1.48.0.jar
|
151
|
+
- vendor/jar-dependencies/io/grpc/grpc-auth/1.48.0/grpc-auth-1.48.0.jar
|
152
|
+
- vendor/jar-dependencies/io/grpc/grpc-context/1.48.0/grpc-context-1.48.0.jar
|
153
|
+
- vendor/jar-dependencies/io/grpc/grpc-core/1.48.0/grpc-core-1.48.0.jar
|
154
|
+
- vendor/jar-dependencies/io/grpc/grpc-googleapis/1.48.0/grpc-googleapis-1.48.0.jar
|
155
|
+
- vendor/jar-dependencies/io/grpc/grpc-grpclb/1.48.0/grpc-grpclb-1.48.0.jar
|
156
|
+
- vendor/jar-dependencies/io/grpc/grpc-netty-shaded/1.48.0/grpc-netty-shaded-1.48.0.jar
|
157
|
+
- vendor/jar-dependencies/io/grpc/grpc-protobuf-lite/1.48.0/grpc-protobuf-lite-1.48.0.jar
|
158
|
+
- vendor/jar-dependencies/io/grpc/grpc-protobuf/1.48.0/grpc-protobuf-1.48.0.jar
|
159
|
+
- vendor/jar-dependencies/io/grpc/grpc-services/1.48.0/grpc-services-1.48.0.jar
|
160
|
+
- vendor/jar-dependencies/io/grpc/grpc-stub/1.48.0/grpc-stub-1.48.0.jar
|
161
|
+
- vendor/jar-dependencies/io/grpc/grpc-xds/1.48.0/grpc-xds-1.48.0.jar
|
162
|
+
- vendor/jar-dependencies/io/opencensus/opencensus-api/0.31.1/opencensus-api-0.31.1.jar
|
163
|
+
- vendor/jar-dependencies/io/opencensus/opencensus-contrib-http-util/0.31.1/opencensus-contrib-http-util-0.31.1.jar
|
164
|
+
- vendor/jar-dependencies/io/opencensus/opencensus-proto/0.2.0/opencensus-proto-0.2.0.jar
|
165
|
+
- vendor/jar-dependencies/io/perfmark/perfmark-api/0.25.0/perfmark-api-0.25.0.jar
|
166
|
+
- vendor/jar-dependencies/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar
|
167
|
+
- vendor/jar-dependencies/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
|
168
|
+
- vendor/jar-dependencies/org/apache/httpcomponents/httpcore/4.4.15/httpcore-4.4.15.jar
|
169
|
+
- vendor/jar-dependencies/org/checkerframework/checker-qual/3.23.0/checker-qual-3.23.0.jar
|
170
|
+
- vendor/jar-dependencies/org/codehaus/mojo/animal-sniffer-annotations/1.21/animal-sniffer-annotations-1.21.jar
|
171
|
+
- vendor/jar-dependencies/org/conscrypt/conscrypt-openjdk-uber/2.5.2/conscrypt-openjdk-uber-2.5.2.jar
|
172
|
+
- vendor/jar-dependencies/org/logstash/inputs/plugin/1.2.2/plugin-1.2.2.jar
|
173
|
+
- vendor/jar-dependencies/org/threeten/threetenbp/1.6.0/threetenbp-1.6.0.jar
|
113
174
|
homepage: https://cloud.google.com/pubsub/overview
|
114
175
|
licenses:
|
115
176
|
- Apache-2.0
|
@@ -120,6 +181,7 @@ post_install_message:
|
|
120
181
|
rdoc_options: []
|
121
182
|
require_paths:
|
122
183
|
- lib
|
184
|
+
- vendor/jar-dependencies
|
123
185
|
required_ruby_version: !ruby/object:Gem::Requirement
|
124
186
|
requirements:
|
125
187
|
- - ">="
|
@@ -130,9 +192,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
192
|
- - ">="
|
131
193
|
- !ruby/object:Gem::Version
|
132
194
|
version: '0'
|
133
|
-
requirements:
|
134
|
-
|
135
|
-
|
195
|
+
requirements:
|
196
|
+
- jar 'com.google.cloud:google-cloud-pubsub', '0.28.0-beta'
|
197
|
+
- jar 'com.google.api.grpc:proto-google-cloud-pubsub-v1', '0.1.24'
|
198
|
+
- jar 'com.google.api:gax', '1.14.0'
|
199
|
+
- jar 'com.google.guava:guava', '20.0'
|
200
|
+
- jar 'com.google.api:api-common', '1.2.0'
|
201
|
+
- jar 'com.google.auth:google-auth-library-oauth2-http', '0.9.0'
|
202
|
+
rubygems_version: 3.1.6
|
136
203
|
signing_key:
|
137
204
|
specification_version: 4
|
138
205
|
summary: Consume events from a Google Cloud PubSub service
|