logstash-output-elasticsearch-shield 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/Gemfile +3 -0
- data/LICENSE +416 -0
- data/README.md +50 -0
- data/Rakefile +8 -0
- data/lib/logstash/outputs/elasticsearch/shield.rb +72 -0
- data/logstash-output-elasticsearch-shield.gemspec +26 -0
- data/spec/outputs/shield_spec.rb +8 -0
- data/vendor.json +6 -0
- metadata +83 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cb7105df1fd2ded0ff42017e7372ee5b97717ee0
|
4
|
+
data.tar.gz: bb0a7725de5d0976ca85699c72488d99d9281bef
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0adfa5279265844472ee9dce009a9644165c8c766dc849599156324c910fae3f5a07a19b28ae7b76d0940d3c1471a2bd6fcf461b7efc39e72d5da98504233b0c
|
7
|
+
data.tar.gz: 12d4582a005f238aedc97e00c79feb1662d20738528479147d23dd6f2f3db39ab72f0b49936cd187c53def9ea76a68c6b6f951802404bca2f1e7e0e042d8c987
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,416 @@
|
|
1
|
+
SHIELD SOFTWARE LICENSE AGREEMENT
|
2
|
+
|
3
|
+
READ THIS AGREEMENT CAREFULLY, WHICH CONSTITUTES A LEGALLY BINDING AGREEMENT AND GOVERNS YOUR USE OF ELASTICSEARCH'S
|
4
|
+
SHIELD SOFTWARE. BY INSTALLING AND/OR USING THE SHIELD SOFTWARE, YOU ARE INDICATING THAT YOU AGREE TO THE TERMS AND
|
5
|
+
CONDITIONS SET FORTH IN THIS AGREEMENT. IF YOU DO NOT AGREE WITH SUCH TERMS AND CONDITIONS, YOU MAY NOT INSTALL OR USE
|
6
|
+
THE SHIELD SOFTWARE.
|
7
|
+
|
8
|
+
This SHIELD SOFTWARE LICENSE AGREEMENT (this "Agreement") is entered into by and between the applicable Elasticsearch
|
9
|
+
entity referred to in Attachment 1 below ("Elasticsearch") and the person or entity ("You") that has downloaded
|
10
|
+
Elasticsearch's Shield software to which this Agreement is attached ("Shield Software"). This Agreement is effective as
|
11
|
+
of the date an applicable ordering document ("Order Form") is entered into by Elasticsearch and You (the "Effective
|
12
|
+
Date").
|
13
|
+
|
14
|
+
1. SOFTWARE LICENSE AND RESTRICTIONS
|
15
|
+
|
16
|
+
1.1 License Grants.
|
17
|
+
|
18
|
+
(a) 30 Day Free Trial License. Subject to the terms and conditions of this Agreement, Elasticsearch agrees to grant,
|
19
|
+
and does hereby grant to You for a period of thirty (30) days from the Effective Date (the "Trial Term"), solely for
|
20
|
+
Your internal business operations, a limited, non-exclusive, non-transferable, fully paid up, right and license
|
21
|
+
(without the right to grant or authorize sublicenses) to: (i) install and use the object code version of the Shield
|
22
|
+
Software; (ii) use, and distribute internally a reasonable number of copies of the documentation, if any, provided with
|
23
|
+
the Shield Software ("Documentation"), provided that You must include on such copies all Elasticsearch trademarks, trade
|
24
|
+
names, logos and notices present on the Documentation as originally provided to You by Elasticsearch; (iii) permit third
|
25
|
+
party contractors performing services on Your behalf to use the Shield Software and Documentation as set forth in (i)
|
26
|
+
and (ii) above, provided that such use must be solely for Your benefit, and You shall be responsible for all acts and
|
27
|
+
omissions of such contractors in connection with their use of the Shield Software. For the avoidance of doubt, You
|
28
|
+
understand and agree that upon the expiration of the Trial Term, Your license to use the Shield Software will terminate,
|
29
|
+
unless you purchase a Qualifying Subscription (as defined below) for Elasticsearch support services.
|
30
|
+
|
31
|
+
(b) Fee-Bearing Production License. Subject to the terms and conditions of this Agreement and complete payment of any
|
32
|
+
and all applicable fees for a Gold or Platinum production subscription for support services for Elasticsearch open
|
33
|
+
source software (in each case, a "Qualifying Subscription"), Elasticsearch agrees to grant, and does hereby grant to You
|
34
|
+
during the term of the applicable Qualifying Subscription, and for the restricted scope of this Agreement, solely for
|
35
|
+
Your internal business operations, a limited, non-exclusive, non-transferable right and license (without the right to
|
36
|
+
grant or authorize sublicenses) to: (i) install and use the object code version of the Shield Software, subject to any
|
37
|
+
applicable quantitative limitations set forth in the applicable Order Form; (ii) use, and distribute internally a
|
38
|
+
reasonable number of copies of the Documentation, if any, provided with the Shield Software, provided that You must
|
39
|
+
include on such copies all Elasticsearch trademarks, trade names, logos and notices present on the Documentation as
|
40
|
+
originally provided to You by Elasticsearch; (iii) permit third party contractors performing services on Your behalf to
|
41
|
+
use the Shield Software and Documentation as set forth in (i) and (ii) above, provided that such use must be solely for
|
42
|
+
Your benefit, and You shall be responsible for all acts and omissions of such contractors in connection with their use
|
43
|
+
of the Shield Software.
|
44
|
+
|
45
|
+
1.2 Reservation of Rights; Restrictions. As between Elasticsearch and You, Elasticsearch owns all right title and
|
46
|
+
interest in and to the Shield Software and any derivative works thereof, and except as expressly set forth in Section
|
47
|
+
1.1 above, no other license to the Shield Software is granted to You by implication, estoppel or otherwise. You agree
|
48
|
+
not to: (i) prepare derivative works from, modify, copy or use the Shield Software in any manner except as expressly
|
49
|
+
permitted in this Agreement or applicable law; (ii) transfer, sell, rent, lease, distribute, sublicense, loan or
|
50
|
+
otherwise transfer the Shield Software in whole or in part to any third party; (iii) use the Shield Software for
|
51
|
+
providing time-sharing services, any software-as-a-service offering ("SaaS"), service bureau services or as part of an
|
52
|
+
application services provider or other service offering; (iv) alter or remove any proprietary notices in the Shield
|
53
|
+
Software; or (v) make available to any third party any analysis of the results of operation of the Shield Software,
|
54
|
+
including benchmarking results, without the prior written consent of Elasticsearch. The Shield Software may contain or
|
55
|
+
be provided with open source libraries, components, utilities and other open source software (collectively, "Open Source
|
56
|
+
Software"), which Open Source Software may have applicable license terms as identified on a website designated by
|
57
|
+
Elasticsearch or otherwise provided with the Shield Software or Documentation. Notwithstanding anything to the contrary
|
58
|
+
herein, use of the Open Source Software shall be subject to the license terms and conditions applicable to such Open
|
59
|
+
Source Software, to the extent required by the applicable licensor (which terms shall not restrict the license rights
|
60
|
+
granted to You hereunder, but may contain additional rights).
|
61
|
+
|
62
|
+
1.3 Open Source. The Shield Software may contain or be provided with open source libraries, components, utilities and
|
63
|
+
other open source software (collectively, "Open Source"), which Open Source may have applicable license terms as
|
64
|
+
identified on a website designated by Elasticsearch or otherwise provided with the applicable Software or Documentation.
|
65
|
+
Notwithstanding anything to the contrary herein, use of the Open Source shall be subject to the applicable Open Source
|
66
|
+
license terms and conditions to the extent required by the applicable licensor (which terms shall not restrict the
|
67
|
+
license rights granted to You hereunder but may contain additional rights).
|
68
|
+
|
69
|
+
1.4 Audit Rights. You agree that Elasticsearch shall have the right, upon five (5) business days' notice to You, to
|
70
|
+
audit Your use of the Shield Software for compliance with any quantitative limitations on Your use of the Shield
|
71
|
+
Software that are set forth in the applicable Order Form. You agree to provide Elasticsearch with the necessary access
|
72
|
+
to the Shield Software to conduct such an audit either (i) remotely, or (ii) if remote performance is not possible, at
|
73
|
+
Your facilities, during normal business hours and no more than one (1) time in any twelve (12) month period. In the
|
74
|
+
event any such audit reveals that You have used the Shield Software in excess of the applicable quantitative
|
75
|
+
limitations, You agree to promptly pay to Elasticsearch an amount equal to the difference between the fees actually paid
|
76
|
+
and the fees that You should have paid to remain in compliance with such quantitative limitations. This Section 1.3
|
77
|
+
shall survive for a period of two (2) years from the termination or expiration of this Agreement.
|
78
|
+
|
79
|
+
2. TERM AND TERMINATION
|
80
|
+
|
81
|
+
2.1 Term. This Agreement shall commence on the Effective Date, and shall continue in force for the license term set
|
82
|
+
forth in the applicable Order Form, unless earlier terminated under Section 2.2 below, provided, however, that if You do
|
83
|
+
not purchase a Qualifying Subscription prior to the expiration of the Trial Term, this Agreement will expire at the end
|
84
|
+
of the Trial Term.
|
85
|
+
|
86
|
+
2.2 Termination. Either party may, upon written notice to the other party, terminate this Agreement for material
|
87
|
+
breach by the other party automatically and without any other formality, if such party has failed to cure such material
|
88
|
+
breach within thirty (30) days of receiving written notice of such material breach from the non-breaching party.
|
89
|
+
Notwithstanding the foregoing, this Agreement shall automatically terminate in the event that You intentionally breach
|
90
|
+
the scope of the license granted in Section 1.1 of this Agreement.
|
91
|
+
|
92
|
+
2.3 Post Termination or Expiration. Upon termination or expiration of this Agreement, for any reason, You shall
|
93
|
+
promptly cease the use of the Shield Software and Documentation and destroy (and certify to Elasticsearch in writing the
|
94
|
+
fact of such destruction), or return to Elasticsearch, all copies of the Shield Software and Documentation then in Your
|
95
|
+
possession or under Your control.
|
96
|
+
|
97
|
+
2.4 Survival. Sections 2.3, 2.4, 3, 4 and 5 shall survive any termination or expiration of this Agreement.
|
98
|
+
|
99
|
+
3. DISCLAIMER OF WARRANTIES
|
100
|
+
|
101
|
+
TO THE MAXIMUM EXTENT PERMITTED UNDER APPLICABLE LAW, THE SHIELD SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
|
102
|
+
KIND, AND ELASTICSEARCH AND ITS LICENSORS MAKE NO WARRANTIES WHETHER EXPRESSED, IMPLIED OR STATUTORY REGARDING OR
|
103
|
+
RELATING TO THE SHIELD SOFTWARE OR DOCUMENTATION. TO THE MAXIMUM EXTENT PERMITTED UNDER APPLICABLE LAW, ELASTICSEARCH
|
104
|
+
AND ITS LICENSORS SPECIFICALLY DISCLAIM ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
105
|
+
NON-INFRINGEMENT WITH RESPECT TO THE SHIELD SOFTWARE AND DOCUMENTATION, AND WITH RESPECT TO THE USE OF THE FOREGOING.
|
106
|
+
FURTHER, ELASTICSEARCH DOES NOT WARRANT RESULTS OF USE OR THAT THE SHIELD SOFTWARE WILL BE ERROR FREE OR THAT THE USE OF
|
107
|
+
THE SHIELD SOFTWARE WILL BE UNINTERRUPTED.
|
108
|
+
|
109
|
+
4. LIMITATION OF LIABILITY
|
110
|
+
|
111
|
+
4.1 Disclaimer of Certain Damages. IN NO EVENT SHALL YOU OR ELASTICSEARCH OR ITS LICENSORS BE LIABLE FOR ANY LOSS OF
|
112
|
+
PROFITS, LOSS OF USE, BUSINESS INTERRUPTION, LOSS OF DATA, COST OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
|
113
|
+
SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND IN CONNECTION WITH OR ARISING OUT OF THE USE OR INABILITY TO
|
114
|
+
USE THE SHIELD SOFTWARE, OR THE PERFORMANCE OF OR FAILURE TO PERFORM THIS AGREEMENT, WHETHER ALLEGED AS A BREACH OF
|
115
|
+
CONTRACT OR TORTIOUS CONDUCT, INCLUDING NEGLIGENCE, EVEN IF THE RESPONSIBLE PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
116
|
+
SUCH DAMAGES. THE LIMITATIONS OF LIABILITY SET FORTH IN THIS SECTION 4.1 SHALL NOT APPLY TO A BREACH THROUGH GROSS
|
117
|
+
NEGLIGENCE OR INTENTIONAL MISCONDUCT BY YOU OF THE SCOPE OF THE LICENSE GRANTED IN SECTION 1.1 OR TO ANY OTHER LIABILITY
|
118
|
+
THAT CANNOT BE EXCLUDED OR LIMITED UNDER APPLICABLE LAW.
|
119
|
+
|
120
|
+
4.2 Damages Cap. IN NO EVENT SHALL ELASTICSEARCH'S OR ITS LICENSORS' AGGREGATE, CUMULATIVE LIABILITY UNDER THIS
|
121
|
+
AGREEMENT EXCEED THE AMOUNT YOU PAID, IN THE TWELVE (12) MONTHS IMMEDIATELY PRIOR TO THE EVENT GIVING RISE TO LIABILITY,
|
122
|
+
UNDER THE ELASTICSEARCH SUPPORT SERVICES AGREEMENT PURSUANT TO WHICH YOU PURCHASED THE QUALIFYING SUBSCRIPTION, PROVIDED
|
123
|
+
THAT IF YOU ARE USING THE SHIELD SOFTWARE UNDER A TRIAL LICENSE PURSUANT TO SECTION 1.1(a), IN NO EVENT SHALL
|
124
|
+
ELASTICSEARCH'S AGGREGATE, CUMULATIVE LIABILITY UNDER THIS AGREEMENT EXCEED ONE THOUSAND DOLLARS ($1,000).
|
125
|
+
|
126
|
+
4.3 YOU AGREE THAT THE FOREGOING LIMITATIONS, EXCLUSIONS AND DISCLAIMERS ARE A REASONABLE ALLOCATION OF THE RISK
|
127
|
+
BETWEEN THE PARTIES AND WILL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, EVEN IF ANY REMEDY FAILS IN ITS
|
128
|
+
ESSENTIAL PURPOSE.
|
129
|
+
|
130
|
+
5. MISCELLANEOUS
|
131
|
+
|
132
|
+
This Agreement, including Attachment 1 hereto, which is hereby incorporated herein by this reference, completely and
|
133
|
+
exclusively states the entire agreement of the parties regarding the subject matter herein, and it supersedes, and its
|
134
|
+
terms govern, all prior proposals, agreements, or other communications between the parties, oral or written, regarding
|
135
|
+
such subject matter. For the avoidance of doubt, the parties hereby expressly acknowledge and agree that if You issue
|
136
|
+
any purchase order or similar document in connection with its purchase of a license to the Shield Software, You will do
|
137
|
+
so only for Your internal, administrative purposes and not with the intent to provide any contractual terms. This
|
138
|
+
Agreement may not be modified except by a subsequently dated, written amendment that expressly amends this Agreement and
|
139
|
+
which is signed on behalf of Elasticsearch and You, by duly authorized representatives. If any provision(s) hereof is
|
140
|
+
held unenforceable, this Agreement will continue without said provision and be interpreted to reflect the original
|
141
|
+
intent of the parties.
|
142
|
+
|
143
|
+
|
144
|
+
ATTACHMENT 1
|
145
|
+
|
146
|
+
ADDITIONAL TERMS AND CONDITIONS
|
147
|
+
|
148
|
+
A. The following additional terms and conditions apply to all Customers with principal offices in the United States of
|
149
|
+
America:
|
150
|
+
|
151
|
+
(1) Applicable Elasticsearch Entity. The entity providing the license is Elasticsearch, Inc., a Delaware corporation.
|
152
|
+
|
153
|
+
(2) Government Rights. The Shield Software product is "Commercial Computer Software," as that term is defined in 48
|
154
|
+
(C.F.R. 2.101, and as the term is used in 48 C.F.R. Part 12, and is a Commercial Item comprised of "commercial computer
|
155
|
+
(software" and "commercial computer software documentation". If acquired by or on behalf of a civilian agency, the U.S.
|
156
|
+
(Government acquires this commercial computer software and/or commercial computer software documentation subject to the
|
157
|
+
(terms of this Agreement, as specified in 48 C.F.R. 12.212 Computer Software) and 12.211 Technical Data) of the Federal
|
158
|
+
(Acquisition Regulation "FAR") and its successors. If acquired by or on behalf of any agency within the Department of
|
159
|
+
(Defense "DOD"), the U.S. Government acquires this commercial computer software and/or commercial computer software
|
160
|
+
(documentation subject to the terms of the Elasticsearch Software License Agreement as specified in 48 C.F.R. 227.7202-3
|
161
|
+
(and 48 C.F.R. 227.7202-4 of the DOD FAR Supplement "DFARS") and its successors, and consistent with 48 C.F.R. 227.7202.
|
162
|
+
(This U.S. Government Rights clause, consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202 is in lieu of, and
|
163
|
+
(supersedes, any other FAR, DFARS, or other clause or provision that addresses Government rights in computer software,
|
164
|
+
(computer software documentation or technical data related to the Shield Software under this Agreement and in any
|
165
|
+
(Subcontract under which this commercial computer software and commercial computer software documentation is acquired or
|
166
|
+
(licensed.
|
167
|
+
|
168
|
+
(3) Export Control. You acknowledge that the goods, software and technology acquired from Elasticsearch are subject to
|
169
|
+
(U.S. export control laws and regulations, including but not limited to the International Traffic In Arms Regulations
|
170
|
+
("ITAR") 22 C.F.R. Parts 120-130 2010)); the Export Administration Regulations "EAR") 15 C.F.R. Parts 730-774 2010));
|
171
|
+
(the U.S. antiboycott regulations in the EAR and U.S. Department of the Treasury regulations; the economic sanctions
|
172
|
+
(regulations and guidelines of the U.S. Department of the Treasury, Office of Foreign Assets Control, and the USA
|
173
|
+
(Patriot Act Title III of Pub. L. 107-56, signed into law October 26, 2001), as amended. You are now and will remain in
|
174
|
+
(the future compliant with all such export control laws and regulations, and will not export, re-export, otherwise
|
175
|
+
(transfer any Elasticsearch goods, software or technology or disclose any Elasticsearch software or technology to any
|
176
|
+
(person contrary to such laws or regulations. You acknowledge that remote access to the Shield Software may in certain
|
177
|
+
(circumstances be considered a re-export of Shield Software, and accordingly, may not be granted in contravention of
|
178
|
+
(U.S. export control laws and regulations.
|
179
|
+
|
180
|
+
(4) Governing Law. This Agreement will be governed by the laws of the State of California, without regard to its
|
181
|
+
(conflict of laws principles. This Agreement shall not be governed by the 1980 UN Convention on Contracts for the
|
182
|
+
(International Sale of Goods. All suits hereunder will be brought solely in Federal Court for the Northern District of
|
183
|
+
(California, or if that court lacks subject matter jurisdiction, in any California State Court located in Santa Clara
|
184
|
+
(County. The parties hereby irrevocably waive any and all claims and defenses either might otherwise have in any such
|
185
|
+
(action or proceeding in any of such courts based upon any alleged lack of personal jurisdiction, improper venue, forum
|
186
|
+
(non conveniens or any similar claim or defense.
|
187
|
+
|
188
|
+
B. The following additional terms and conditions apply to all Customers with principal offices in Canada:
|
189
|
+
|
190
|
+
(1) Applicable Elasticsearch Entity. The entity providing the license is Elasticsearch B.C. Ltd., a corporation
|
191
|
+
(incorporated under laws of the Province of British Columbia.
|
192
|
+
|
193
|
+
(2) Export Control. You acknowledge that the goods, software and technology acquired from Elasticsearch are subject to
|
194
|
+
the restrictions and controls set out in Section A(3) above as well as those imposed by the Export and Import Permits
|
195
|
+
Act (Canada) and the regulations thereunder and that you will comply with all applicable laws and regulations. Without
|
196
|
+
limitation, You acknowledge that the Marvel Software, or any portion thereof, will not be exported: (a) to any country
|
197
|
+
on Canada's Area Control List; (b) to any country subject to UN Security Council embargo or action; or (c) contrary to
|
198
|
+
Canada's Export Control List Item 5505. You are now and will remain in the future compliant with all such export control
|
199
|
+
laws and regulations, and will not export, re-export, otherwise transfer any Elasticsearch goods, software or technology
|
200
|
+
or disclose any Elasticsearch software or technology to any person contrary to such laws or regulations. You will not
|
201
|
+
export or re-export the Marvel Software, or any portion thereof, directly or indirectly, in violation of the Canadian
|
202
|
+
export administration laws and regulations to any country or end user, or to any end user who you know or have reason to
|
203
|
+
know will utilize them in the design, development or production of nuclear, chemical or biological weapons. You further
|
204
|
+
acknowledge that the Marvel Software product may include technical data subject to such Canadian export regulations.
|
205
|
+
Elasticsearch does not represent that the Marvel Software is appropriate or available for use in all countries.
|
206
|
+
Elasticsearch prohibits accessing materials from countries or states where contents are illegal. You are using the
|
207
|
+
Marvel Software on your own initiative and you are responsible for compliance with all applicable laws. You hereby agree
|
208
|
+
to indemnify Elasticsearch and its affiliates from any claims, actions, liability or expenses (including reasonable
|
209
|
+
lawyers' fees) resulting from Your failure to act in accordance with the acknowledgements, agreements, and
|
210
|
+
representations in this Section B(2).
|
211
|
+
|
212
|
+
(3) Governing Law and Dispute Resolution. This Agreement shall be governed by the Province of Ontario and the federal
|
213
|
+
laws of Canada applicable therein without regard to conflict of laws provisions. The parties hereby irrevocably waive
|
214
|
+
any and all claims and defenses either might otherwise have in any such action or proceeding in any of such courts based
|
215
|
+
upon any alleged lack of personal jurisdiction, improper venue, forum non conveniens or any similar claim or defense.
|
216
|
+
Any dispute, claim or controversy arising out of or relating to this Agreement or the existence, breach, termination,
|
217
|
+
enforcement, interpretation or validity thereof, including the determination of the scope or applicability of this
|
218
|
+
agreement to arbitrate, (each, a "Dispute"), which the parties are unable to resolve after good faith negotiations,
|
219
|
+
shall be submitted first to the upper management level of the parties. The parties, through their upper management level
|
220
|
+
representatives shall meet within thirty (30) days of the Dispute being referred to them and if the parties are unable
|
221
|
+
to resolve such Dispute within thirty (30) days of meeting, the parties agree to seek to resolve the Dispute through
|
222
|
+
mediation with ADR Chambers in the City of Toronto, Ontario, Canada before pursuing any other proceedings. The costs of
|
223
|
+
the mediator shall be shared equally by the parties. If the Dispute has not been resolved within thirty (30) days of the
|
224
|
+
notice to desire to mediate, any party may terminate the mediation and proceed to arbitration and the matter shall be
|
225
|
+
referred to and finally resolved by arbitration at ADR Chambers pursuant to the general ADR Chambers Rules for
|
226
|
+
Arbitration in the City of Toronto, Ontario, Canada. The arbitration shall proceed in accordance with the provisions of
|
227
|
+
the Arbitration Act (Ontario). The arbitral panel shall consist of three (3) arbitrators, selected as follows: each
|
228
|
+
party shall appoint one (1) arbitrator; and those two (2) arbitrators shall discuss and select a chairman. If the two
|
229
|
+
(2) party-appointed arbitrators are unable to agree on the chairman, the chairman shall be selected in accordance with
|
230
|
+
the applicable rules of the arbitration body. Each arbitrator shall be independent of each of the parties. The
|
231
|
+
arbitrators shall have the authority to grant specific performance and to allocate between the parties the costs of
|
232
|
+
arbitration (including service fees, arbitrator fees and all other fees related to the arbitration) in such equitable
|
233
|
+
manner as the arbitrators may determine. The prevailing party in any arbitration shall be entitled to receive
|
234
|
+
reimbursement of its reasonable expenses incurred in connection therewith. Judgment upon the award so rendered may be
|
235
|
+
entered in a court having jurisdiction or application may be made to such court for judicial acceptance of any award and
|
236
|
+
an order of enforcement, as the case may be. Notwithstanding the foregoing, Elasticsearch shall have the right to
|
237
|
+
institute an action in a court of proper jurisdiction for preliminary injunctive relief pending a final decision by the
|
238
|
+
arbitrator, provided that a permanent injunction and damages shall only be awarded by the arbitrator. The language to
|
239
|
+
be used in the arbitral proceedings shall be English.
|
240
|
+
|
241
|
+
(4) Language. Any translation of this Agreement is done for local requirements and in the event of a dispute between
|
242
|
+
(the English and any non-English version, the English version of this Agreement shall govern. At the request of the
|
243
|
+
(parties, the official language of this Agreement and all communications and documents relating hereto is the English
|
244
|
+
(language, and the English-language version shall govern all interpretation of the Agreement. Ë la demande des parties,
|
245
|
+
(la langue officielle de la prŽsente convention ainsi que toutes communications et tous documents s'y rapportant est la
|
246
|
+
(langue anglaise, et la version anglaise est celle qui rŽgit toute interprŽtation de la prŽsente convention.
|
247
|
+
|
248
|
+
(5) Disclaimer of Warranties. For Customers with principal offices in the Province of QuŽbec, the following new
|
249
|
+
(sentence is to be added to the end of Section 3: "SOME JURISDICTIONS DO NOT ALLOW LIMITATIONS OR EXCLUSIONS OF CERTAIN
|
250
|
+
(TYPES OF DAMAGES AND/OR WARRANTIES AND CONDITIONS. THE LIMITATIONS, EXCLUSIONS AND DISCLAIMERS SET FORTH IN THIS
|
251
|
+
(AGREEMENT SHALL NOT APPLY IF AND ONLY IF AND TO THE EXTENT THAT THE LAWS OF A COMPETENT JURISDICTION REQUIRE
|
252
|
+
(LIABILITIES BEYOND AND DESPITE THESE LIMITATIONS, EXCLUSIONS AND DISCLAIMERS."
|
253
|
+
|
254
|
+
(6) Limitation of Liability. For Customers with principal offices in the Province of QuŽbec, the following new
|
255
|
+
(sentence is to be added to the end of Section 4.1: "SOME JURISDICTIONS DO NOT ALLOW LIMITATIONS OR EXCLUSIONS OF
|
256
|
+
(CERTAIN TYPES OF DAMAGES AND/OR WARRANTIES AND CONDITIONS. THE LIMITATIONS, EXCLUSIONS AND DISCLAIMERS SET FORTH IN
|
257
|
+
(THIS AGREEMENT SHALL NOT APPLY IF AND ONLY IF AND TO THE EXTENT THAT THE LAWS OF A COMPETENT JURISDICTION REQUIRE
|
258
|
+
(LIABILITIES BEYOND AND DESPITE THESE LIMITATIONS, EXCLUSIONS AND DISCLAIMERS."
|
259
|
+
|
260
|
+
C. The following additional terms and conditions apply to all Customers with principal offices outside of the United
|
261
|
+
States of America and Canada:
|
262
|
+
|
263
|
+
(1) Applicable Elasticsearch Entity. The entity providing the license in Germany is Elasticsearch Gmbh; in France is
|
264
|
+
(Elasticsearch SARL, in the United Kingdom is Elasticsearch Ltd, in Australia is Elasticsearch Pty Ltd., in Japan is
|
265
|
+
(Elasticsearch KK, and in all other countries is Elasticsearch BV.
|
266
|
+
|
267
|
+
(2) Choice of Law. This Agreement shall be governed by and construed in accordance with the laws of the State of New
|
268
|
+
(York, without reference to or application of choice of law rules or principles. Notwithstanding any choice of law
|
269
|
+
(provision or otherwise, the Uniform Computer Information Transactions Act UCITA) and the United Nations Convention on
|
270
|
+
(the International Sale of Goods shall not apply.
|
271
|
+
|
272
|
+
(3) Arbitration. Any dispute, claim or controversy arising out of or relating to this Agreement or the existence,
|
273
|
+
(breach, termination, enforcement, interpretation or validity thereof, including the determination of the scope or
|
274
|
+
(applicability of this agreement to arbitrate, each, a "Dispute") shall be referred to and finally resolved by
|
275
|
+
(arbitration under the rules and at the location identified below. The arbitral panel shall consist of three 3)
|
276
|
+
(arbitrators, selected as follows: each party shall appoint one 1) arbitrator; and those two 2) arbitrators shall
|
277
|
+
(discuss and select a chairman. If the two party-appointed arbitrators are unable to agree on the chairman, the chairman
|
278
|
+
(shall be selected in accordance with the applicable rules of the arbitration body. Each arbitrator shall be independent
|
279
|
+
(of each of the parties. The arbitrators shall have the authority to grant specific performance and to allocate between
|
280
|
+
(the parties the costs of arbitration including service fees, arbitrator fees and all other fees related to the
|
281
|
+
(arbitration) in such equitable manner as the arbitrators may determine. The prevailing party in any arbitration shall
|
282
|
+
(be entitled to receive reimbursement of its reasonable expenses incurred in connection therewith. Judgment upon the
|
283
|
+
(award so rendered may be entered in a court having jurisdiction or application may be made to such court for judicial
|
284
|
+
(acceptance of any award and an order of enforcement, as the case may be. Notwithstanding the foregoing, Elasticsearch
|
285
|
+
(shall have the right to institute an action in a court of proper jurisdiction for preliminary injunctive relief pending
|
286
|
+
(a final decision by the arbitrator, provided that a permanent injunction and damages shall only be awarded by the
|
287
|
+
(arbitrator. The language to be used in the arbitral proceedings shall be English.
|
288
|
+
|
289
|
+
(a) In addition, the following terms only apply to Customers with principal offices within Europe, the Middle East or
|
290
|
+
(Africa EMEA):
|
291
|
+
|
292
|
+
Arbitration Rules and Location. Any Dispute shall be referred to and finally resolved by arbitration under the London
|
293
|
+
Court of International Arbitration ("LCIA") Rules (which Rules are deemed to be incorporated by reference into this
|
294
|
+
clause) on the basis that the governing law is the law of the State of New York, USA. The seat, or legal place, of
|
295
|
+
arbitration shall be London, England.
|
296
|
+
|
297
|
+
(b) In addition, the following terms only apply to Customers with principal offices within Asia Pacific, Australia &
|
298
|
+
(New Zealand:
|
299
|
+
|
300
|
+
Arbitration Rules and Location. Any Dispute shall be referred to and finally resolved by arbitration under the Rules of
|
301
|
+
Conciliation and Arbitration of the International Chamber of Commerce ("ICC") in force on the date when the notice of
|
302
|
+
arbitration is submitted in accordance with such Rules (which Rules are deemed to be incorporated by reference into this
|
303
|
+
clause) on the basis that the governing law is the law of the State of New York, USA. The seat, or legal place, of
|
304
|
+
arbitration shall be Singapore.
|
305
|
+
|
306
|
+
(c) In addition, the following terms only apply to Customers with principal offices within the Americas excluding North
|
307
|
+
(America):
|
308
|
+
|
309
|
+
Arbitration Rules and Location. Any Dispute shall be referred to and finally resolved by arbitration under
|
310
|
+
International Dispute Resolution Procedures of the American Arbitration Association ("AAA") in force on the date when
|
311
|
+
the notice of arbitration is submitted in accordance with such Procedures (which Procedures are deemed to be
|
312
|
+
incorporated by reference into this clause) on the basis that the governing law is the law of the State of New York,
|
313
|
+
USA. The seat, or legal place, of arbitration shall be New York, New York, USA.
|
314
|
+
|
315
|
+
(4) In addition, for Customers with principal offices within the UK, the following new sentence is added to the end of
|
316
|
+
(Section 4.1:
|
317
|
+
|
318
|
+
Nothing in this Agreement shall have effect so as to limit or exclude a party's liability for death or personal injury
|
319
|
+
caused by negligence or for fraud including fraudulent misrepresentation and this Section 4.1 shall take effect subject
|
320
|
+
to this provision.
|
321
|
+
|
322
|
+
(5) In addition, for Customers with principal offices within France, Sections 1.2, 3 and 4.1 of the Agreement are
|
323
|
+
(deleted and replaced with the following new Sections 1.2, 3 and 4.1:
|
324
|
+
|
325
|
+
1.2 Reservation of Rights; Restrictions. Elasticsearch owns all right title and interest in and to the Shield Software
|
326
|
+
and any derivative works thereof, and except as expressly set forth in Section 1.1 above, no other license to the Shield
|
327
|
+
Software is granted to You by implication, or otherwise. You agree not to prepare derivative works from, modify, copy or
|
328
|
+
use the Shield Software in any manner except as expressly permitted in this Agreement; provided that You may copy the
|
329
|
+
Shield Software for archival purposes, only where such software is provided on a non-durable medium; and You may
|
330
|
+
decompile the Shield Software, where necessary for interoperability purposes and where necessary for the correction of
|
331
|
+
errors making the software unfit for its intended purpose, if such right is not reserved by Elasticsearch as editor of
|
332
|
+
the Shield Software. Pursuant to article L122-6-1 of the French intellectual property code, Elasticsearch reserves the
|
333
|
+
right to correct any bugs as necessary for the Shield Software to serve its intended purpose. You agree not to: (i)
|
334
|
+
transfer, sell, rent, lease, distribute, sublicense, loan or otherwise transfer the Shield Software in whole or in part
|
335
|
+
to any third party; (ii) use the Shield Software for providing time-sharing services, any software-as-a-service
|
336
|
+
offering ("SaaS"), service bureau services or as part of an application services provider or other service offering;
|
337
|
+
(iii) alter or remove any proprietary notices in the Shield Software; or (iv) make available to any third party any
|
338
|
+
analysis of the results of operation of the Shield Software, including benchmarking results, without the prior written
|
339
|
+
consent of Elasticsearch.
|
340
|
+
|
341
|
+
3. DISCLAIMER OF WARRANTIES
|
342
|
+
|
343
|
+
TO THE MAXIMUM EXTENT PERMITTED UNDER APPLICABLE LAW, THE SHIELD SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
|
344
|
+
KIND, AND ELASTICSEARCH AND ITS LICENSORS MAKE NO WARRANTIES WHETHER EXPRESSED, IMPLIED OR STATUTORY REGARDING OR
|
345
|
+
RELATING TO THE SHIELD SOFTWARE OR DOCUMENTATION. TO THE MAXIMUM EXTENT PERMITTED UNDER APPLICABLE LAW, ELASTICSEARCH
|
346
|
+
AND ITS LICENSORS SPECIFICALLY DISCLAIM ALL IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE WITH RESPECT TO THE
|
347
|
+
SHIELD SOFTWARE AND DOCUMENTATION, AND WITH RESPECT TO THE USE OF THE FOREGOING. FURTHER, ELASTICSEARCH DOES NOT
|
348
|
+
WARRANT RESULTS OF USE OR THAT THE SHIELD SOFTWARE WILL BE ERROR FREE OR THAT THE USE OF THE SHIELD SOFTWARE WILL BE
|
349
|
+
UNINTERRUPTED.
|
350
|
+
|
351
|
+
4.1 Disclaimer of Certain Damages. IN NO EVENT SHALL YOU OR ELASTICSEARCH OR ITS LICENSORS BE LIABLE FOR ANY LOSS OF
|
352
|
+
PROFITS, LOSS OF USE, BUSINESS INTERRUPTION, LOSS OF DATA, COST OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT OR
|
353
|
+
UNFORESEEABLE DAMAGES OF ANY KIND IN CONNECTION WITH OR ARISING OUT OF THE USE OR INABILITY TO USE THE SHIELD SOFTWARE,
|
354
|
+
OR THE PERFORMANCE OF OR FAILURE TO PERFORM THIS AGREEMENT, WHETHER ALLEGED AS A BREACH OF CONTRACT OR TORTIOUS CONDUCT,
|
355
|
+
INCLUDING NEGLIGENCE. THE LIMITATIONS OF LIABILITY SET FORTH IN THIS SECTION 4.1 SHALL NOT APPLY TO A BREACH, THROUGH
|
356
|
+
GROSS NEGLIGENCE OR INTENTIONAL MISCONDUCT BY YOU, OF THE SCOPE OF THE LICENSE GRANTED IN SECTION 1.1, OR IN CASE OF
|
357
|
+
DEATH OR PERSONAL INJURY.
|
358
|
+
|
359
|
+
(6) In addition, for Customers with principal offices within Australia, Sections 4.1, 4.2 and 4.3 of the Agreement are
|
360
|
+
(deleted and replaced with the following new Sections 4.1, 4.2 and 4.3:
|
361
|
+
|
362
|
+
4.1 Disclaimer of Certain Damages. Subject to clause 4.3, a party is not liable for Consequential Loss however caused
|
363
|
+
(including by the negligence of that party) suffered or incurred by the other party in connection with this agreement.
|
364
|
+
"Consequential Loss" means loss of revenues, loss of reputation, indirect loss, loss of profits, consequential loss,
|
365
|
+
loss of actual or anticipated savings, indirect loss, lost opportunities, including opportunities to enter into
|
366
|
+
arrangements with third parties, loss or damage in connection with claims against by third parties, or loss or
|
367
|
+
corruption or data.
|
368
|
+
|
369
|
+
4.2 Damages Cap. SUBJECT TO CLAUSES 4.1 AND 4.3, ANY LIABILITY OF ELASTICSEARCH FOR ANY LOSS OR DAMAGE, HOWEVER CAUSED
|
370
|
+
(INCLUDING BY THE NEGLIGENCE OF ELASTICSEARCH), SUFFERED BY YOU IN CONNECTION WITH THIS AGREEMENT IS LIMITED TO THE
|
371
|
+
AMOUNT YOU PAID, IN THE TWELVE (12) MONTHS IMMEDIATELY PRIOR TO THE EVENT GIVING RISE TO LIABILITY, UNDER THE
|
372
|
+
ELASTICSEARCH SUPPORT SERVICES AGREEMENT IN CONNECTION WITH WHICH YOU OBTAINED THE LICENSE TO USE THE SHIELD SOFTWARE.
|
373
|
+
THE LIMITATION SET OUT IN THIS SECTION 4.2 IS AN AGGREGATE LIMIT FOR ALL CLAIMS, WHENEVER MADE.
|
374
|
+
|
375
|
+
4.3 Limitation and Disclaimer Exceptions. If the Competition and Consumer Act 2010 (Cth) or any other legislation or
|
376
|
+
any other legislation states that there is a guarantee in relation to any good or service supplied by Elasticsearch in
|
377
|
+
connection with this agreement, and Elasticsearch's liability for failing to comply with that guarantee cannot be
|
378
|
+
excluded but may be limited, Sections 4.1 and 4.2 do not apply to that liability and instead Elasticsearch's liability
|
379
|
+
for such failure is limited (at Elasticsearch's election) to, in the case of a supply of goods, the Elasticsearch
|
380
|
+
replacing the goods or supplying equivalent goods or repairing the goods, or in the case of a supply of services,
|
381
|
+
Elasticsearch supplying the services again or paying the cost of having the services supplied again.
|
382
|
+
|
383
|
+
(7) In addition, for Customers with principal offices within Japan, Sections 1.2, 3 and 4.1 of the Agreement are
|
384
|
+
(deleted and replaced with the following new Sections 1.2, 3 and 4.1:
|
385
|
+
|
386
|
+
1.2 Reservation of Rights; Restrictions. As between Elasticsearch and You, Elasticsearch owns all right title and
|
387
|
+
interest in and to the Shield Software and any derivative works thereof, and except as expressly set forth in Section
|
388
|
+
1.1 above, no other license to the Shield Software is granted to You by implication or otherwise. You agree not to: (i)
|
389
|
+
prepare derivative works from, modify, copy or use the Shield Software in any manner except as expressly permitted in
|
390
|
+
this Agreement or applicable law; (ii) transfer, sell, rent, lease, distribute, sublicense, loan or otherwise transfer
|
391
|
+
the Shield Software in whole or in part to any third party; (iii) use the Shield Software for providing time-sharing
|
392
|
+
services, any software-as-a-service offering ("SaaS"), service bureau services or as part of an application services
|
393
|
+
provider or other service offering; (iv) alter or remove any proprietary notices in the Shield Software; or (v) make
|
394
|
+
available to any third party any analysis of the results of operation of the Shield Software, including benchmarking
|
395
|
+
results, without the prior written consent of Elasticsearch.
|
396
|
+
|
397
|
+
3. DISCLAIMER OF WARRANTIES TO THE MAXIMUM EXTENT PERMITTED UNDER APPLICABLE LAW, THE SHIELD SOFTWARE IS PROVIDED "AS
|
398
|
+
IS" WITHOUT WARRANTY OF ANY KIND, AND ELASTICSEARCH AND ITS LICENSORS MAKE NO WARRANTIES WHETHER EXPRESSED, IMPLIED OR
|
399
|
+
STATUTORY REGARDING OR RELATING TO THE SHIELD SOFTWARE OR DOCUMENTATION. TO THE MAXIMUM EXTENT PERMITTED UNDER
|
400
|
+
APPLICABLE LAW, ELASTICSEARCH AND ITS LICENSORS SPECIFICALLY DISCLAIM ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
|
401
|
+
FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT WITH RESPECT TO THE SHIELD SOFTWARE AND DOCUMENTATION, AND WITH RESPECT TO
|
402
|
+
THE USE OF THE FOREGOING. FURTHER, ELASTICSEARCH DOES NOT WARRANT RESULTS OF USE OR THAT THE SHIELD SOFTWARE WILL BE
|
403
|
+
ERROR FREE OR THAT THE USE OF THE SHIELD SOFTWARE WILL BE UNINTERRUPTED.
|
404
|
+
|
405
|
+
4.1 Disclaimer of Certain Damages. IN NO EVENT SHALL YOU OR ELASTICSEARCH OR ITS LICENSORS BE LIABLE FOR ANY LOSS OF
|
406
|
+
PROFITS, LOSS OF USE, BUSINESS INTERRUPTION, LOSS OF DATA, COST OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY
|
407
|
+
SPECIALINDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND IN CONNECTION WITH OR ARISING OUT OF THE USE
|
408
|
+
OR INABILITY TO USE THE SHIELD SOFTWARE, OR THE PERFORMANCE OF OR FAILURE TO PERFORM THIS AGREEMENT, WHETHER ALLEGED AS
|
409
|
+
A BREACH OF CONTRACT OR TORTIOUS CONDUCT, INCLUDING NEGLIGENCE, EVEN IF THE RESPONSIBLE PARTY HAS BEEN ADVISED OF THE
|
410
|
+
POSSIBILITY OF SUCH DAMAGES. THE LIMITATIONS OF LIABILITY SET FORTH IN THIS SECTION 4.1 SHALL NOT APPLY TO A BREACH
|
411
|
+
THROUGH GROSS NEGLIGENCE OR INTENTIONAL MISCONDUCT BY YOU OF THE SCOPE OF THE LICENSE GRANTED IN SECTION 1.1 OR TO ANY
|
412
|
+
OTHER LIABILITY THAT CANNOT BE EXCLUDED OR LIMITED UNDER APPLICABLE LAW.
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
data/README.md
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
## Using transport client to connect to Shield
|
2
|
+
|
3
|
+
1. build gem:
|
4
|
+
|
5
|
+
`gem build logstash-output-elasticsearch-shield.gemspec`
|
6
|
+
|
7
|
+
2. clone logstash:
|
8
|
+
|
9
|
+
`git clone https://github.com/elasticsearch/logstash.git`
|
10
|
+
|
11
|
+
3. install gem and other plugins in the logstash dir:
|
12
|
+
|
13
|
+
```
|
14
|
+
cd logstash
|
15
|
+
rake bootstrap
|
16
|
+
bin/plugin install logstash-output-elasticsearch
|
17
|
+
bin/plugin install /tmp/logstash-output-elasticsearch-shield-0.1.5.gem
|
18
|
+
# install other needed plugins
|
19
|
+
bin/plugin install logstash-input-generator
|
20
|
+
bin/plugin install logstash-output-stdout
|
21
|
+
bin/plugin install logstash-codec-rubydebug
|
22
|
+
```
|
23
|
+
|
24
|
+
4. create a config file
|
25
|
+
|
26
|
+
```
|
27
|
+
input {
|
28
|
+
generator { count => 1 }
|
29
|
+
}
|
30
|
+
output {
|
31
|
+
elasticsearch {
|
32
|
+
host => "node01"
|
33
|
+
protocol => "transport"
|
34
|
+
node_name => "logstash"
|
35
|
+
cluster => "themess"
|
36
|
+
user => "logstash"
|
37
|
+
password => "lsdata"
|
38
|
+
ssl => true
|
39
|
+
truststore => "/tmp/truststore.jks"
|
40
|
+
truststore_password => "test"
|
41
|
+
keystore => "/tmp/node02keystore.jks"
|
42
|
+
keystore_password => "test"
|
43
|
+
}
|
44
|
+
stdout { codec => rubydebug }
|
45
|
+
}
|
46
|
+
```
|
47
|
+
|
48
|
+
5. run logstash
|
49
|
+
|
50
|
+
`bin/logstash -f shield.conf`
|
data/Rakefile
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
require 'base64'
|
2
|
+
|
3
|
+
module LogStash::Outputs::ElasticSearch::Shield
|
4
|
+
|
5
|
+
def self.included(base)
|
6
|
+
base.extend(ClassMethods)
|
7
|
+
base.create_options
|
8
|
+
base.branch_ssl_setup
|
9
|
+
base.branch_auth_setup
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.create_client_config(arg); {}; end
|
13
|
+
|
14
|
+
module ClassMethods
|
15
|
+
def create_options
|
16
|
+
|
17
|
+
# Use the specified JKS keystore
|
18
|
+
config :keystore, :validate => :path
|
19
|
+
|
20
|
+
# Set the keystore password
|
21
|
+
config :keystore_password, :validate => :password
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
def branch_ssl_setup
|
26
|
+
alias_method :setup_http_ssl, :setup_ssl
|
27
|
+
define_method(:setup_ssl) do
|
28
|
+
@protocol =~ /http/ ? setup_http_ssl : _setup_transport_ssl
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def branch_auth_setup
|
33
|
+
alias_method :setup_http_auth, :setup_basic_auth
|
34
|
+
define_method(:setup_basic_auth) do
|
35
|
+
@protocol =~ /http/ ? setup_http_auth : _setup_nothing
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def _setup_nothing; {}; end
|
41
|
+
|
42
|
+
def _setup_transport_ssl
|
43
|
+
|
44
|
+
settings = {}
|
45
|
+
|
46
|
+
if @protocol == "node" && (@ssl || @user || @password) then
|
47
|
+
@logger.warn "Shield is not supported on \"node\" protocol: switching to \"transport\".."
|
48
|
+
@protocol = "transport"
|
49
|
+
end
|
50
|
+
|
51
|
+
jars = Dir.glob(::File.dirname(__FILE__) + "/../../../../vendor/*.jar")
|
52
|
+
jars.each {|jar| $CLASSPATH << jar}
|
53
|
+
|
54
|
+
if @ssl
|
55
|
+
settings['shield.transport.ssl'] = @ssl
|
56
|
+
settings['shield.ssl.keystore.path'] = @keystore if @keystore
|
57
|
+
settings['shield.ssl.keystore.password'] = @keystore_password.value if @keystore_password
|
58
|
+
settings['shield.transport.ssl.truststore.path'] = @truststore if @truststore
|
59
|
+
settings['shield.transport.ssl.truststore.password'] = @truststore_password.value if @truststore_password
|
60
|
+
end
|
61
|
+
|
62
|
+
if @user && @password
|
63
|
+
settings['request.headers.Authorization'] =
|
64
|
+
'Basic ' + Base64.strict_encode64(@user + ':' + @password.value)
|
65
|
+
end
|
66
|
+
|
67
|
+
settings
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
|
72
|
+
LogStash::Outputs::ElasticSearch.instance_eval{ include LogStash::Outputs::ElasticSearch::Shield }
|
@@ -0,0 +1,26 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
|
3
|
+
s.name = 'logstash-output-elasticsearch-shield'
|
4
|
+
s.version = '0.1.1'
|
5
|
+
s.licenses = ['SHIELD SOFTWARE LICENSE AGREEMENT']
|
6
|
+
s.summary = "Shield plugin for the Elasticsearch Output"
|
7
|
+
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"
|
8
|
+
s.authors = ["Elasticsearch"]
|
9
|
+
s.email = 'info@elasticsearch.com'
|
10
|
+
s.homepage = "http://www.elasticsearch.org/guide/en/logstash/current/index.html"
|
11
|
+
s.require_paths = ["lib"]
|
12
|
+
|
13
|
+
# Files
|
14
|
+
s.files = `git ls-files`.split($\)
|
15
|
+
|
16
|
+
# Tests
|
17
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
18
|
+
|
19
|
+
# Special flag to let us know this is actually a logstash plugin
|
20
|
+
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
|
21
|
+
|
22
|
+
# Gem dependencies
|
23
|
+
s.add_runtime_dependency 'logstash-output-elasticsearch', '<= 0.1.9'
|
24
|
+
|
25
|
+
s.add_development_dependency 'logstash-devutils'
|
26
|
+
end
|
data/vendor.json
ADDED
metadata
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: logstash-output-elasticsearch-shield
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Elasticsearch
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-01-30 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: 0.1.9
|
19
|
+
name: logstash-output-elasticsearch
|
20
|
+
prerelease: false
|
21
|
+
type: :runtime
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - <=
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.1.9
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
name: logstash-devutils
|
34
|
+
prerelease: false
|
35
|
+
type: :development
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
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
|
42
|
+
email: info@elasticsearch.com
|
43
|
+
executables: []
|
44
|
+
extensions: []
|
45
|
+
extra_rdoc_files: []
|
46
|
+
files:
|
47
|
+
- .gitignore
|
48
|
+
- Gemfile
|
49
|
+
- LICENSE
|
50
|
+
- README.md
|
51
|
+
- Rakefile
|
52
|
+
- lib/logstash/outputs/elasticsearch/shield.rb
|
53
|
+
- logstash-output-elasticsearch-shield.gemspec
|
54
|
+
- spec/outputs/shield_spec.rb
|
55
|
+
- vendor.json
|
56
|
+
homepage: http://www.elasticsearch.org/guide/en/logstash/current/index.html
|
57
|
+
licenses:
|
58
|
+
- SHIELD SOFTWARE LICENSE AGREEMENT
|
59
|
+
metadata:
|
60
|
+
logstash_plugin: 'true'
|
61
|
+
logstash_group: output
|
62
|
+
post_install_message:
|
63
|
+
rdoc_options: []
|
64
|
+
require_paths:
|
65
|
+
- lib
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
requirements: []
|
77
|
+
rubyforge_project:
|
78
|
+
rubygems_version: 2.1.9
|
79
|
+
signing_key:
|
80
|
+
specification_version: 4
|
81
|
+
summary: Shield plugin for the Elasticsearch Output
|
82
|
+
test_files:
|
83
|
+
- spec/outputs/shield_spec.rb
|