logstash-output-loggly 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23b05abc68f0b0f97dcce808afe058e8379c75fe
4
- data.tar.gz: 9bad41594e9d4f9464fffbebfe410374984142f2
3
+ metadata.gz: 6323456ef07633f6509b6a8dfe8a1e15060efc22
4
+ data.tar.gz: 2bc350d43f9f9f5a7692371a3a2f55c04a6aae5d
5
5
  SHA512:
6
- metadata.gz: f1419b08088c89e0a787b4cb02ba06035dd7be7d1804ff56ffa5c2b2712e3811d221de6cd82f0c3094b6aefcc9ea64624a9f58a822e5d2759a40ee8a389ea920
7
- data.tar.gz: 998805840a88dbce7f9a3b6ff26d9419efe7760b46c8a3a4b8612b62706c8ba13b30f6da472a111af6ef1de711449a5a74c150b9bea54aaef610112fd0594ba4
6
+ metadata.gz: 763663cd842cffa47291f12f6b4bbe3f8ca8065faaa191897c8c1d000d0ce96c7ed85d18f7e347a442970ea29f2b7f8c80de1136b2864455e38c738efcea5a60
7
+ data.tar.gz: e2cf37bed1b83b32c9c157f2ad0611f060840fea5304d7117bd877428c7546348511418b2863cba63c917b178bbedcc968042bf9145da8e212e716664937b3c0
data/Gemfile CHANGED
@@ -1,2 +1,11 @@
1
1
  source 'https://rubygems.org'
2
- gemspec
2
+
3
+ gemspec
4
+
5
+ logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
6
+ use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
7
+
8
+ if Dir.exist?(logstash_path) && use_logstash_source
9
+ gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
10
+ gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
11
+ end
@@ -0,0 +1,164 @@
1
+ :plugin: loggly
2
+ :type: output
3
+
4
+ ///////////////////////////////////////////
5
+ START - GENERATED VARIABLES, DO NOT EDIT!
6
+ ///////////////////////////////////////////
7
+ :version: %VERSION%
8
+ :release_date: %RELEASE_DATE%
9
+ :changelog_url: %CHANGELOG_URL%
10
+ :include_path: ../../../../logstash/docs/include
11
+ ///////////////////////////////////////////
12
+ END - GENERATED VARIABLES, DO NOT EDIT!
13
+ ///////////////////////////////////////////
14
+
15
+ [id="plugins-{type}-{plugin}"]
16
+
17
+ === Loggly output plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ Ugly monkey patch to get around http://jira.codehaus.org/browse/JRUBY-5529
24
+ Got a loggly account? Use logstash to ship logs to Loggly!
25
+
26
+ This is most useful so you can use logstash to parse and structure
27
+ your logs and ship structured, json events to your account at Loggly.
28
+
29
+ To use this, you'll need to use a Loggly input with type 'http'
30
+ and 'json logging' enabled.
31
+
32
+ [id="plugins-{type}s-{plugin}-options"]
33
+ ==== Loggly Output Configuration Options
34
+
35
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
36
+
37
+ [cols="<,<,<",options="header",]
38
+ |=======================================================================
39
+ |Setting |Input type|Required
40
+ | <<plugins-{type}s-{plugin}-can_retry>> |<<boolean,boolean>>|No
41
+ | <<plugins-{type}s-{plugin}-host>> |<<string,string>>|No
42
+ | <<plugins-{type}s-{plugin}-key>> |<<string,string>>|Yes
43
+ | <<plugins-{type}s-{plugin}-proto>> |<<string,string>>|No
44
+ | <<plugins-{type}s-{plugin}-proxy_host>> |<<string,string>>|No
45
+ | <<plugins-{type}s-{plugin}-proxy_password>> |<<password,password>>|No
46
+ | <<plugins-{type}s-{plugin}-proxy_port>> |<<number,number>>|No
47
+ | <<plugins-{type}s-{plugin}-proxy_user>> |<<string,string>>|No
48
+ | <<plugins-{type}s-{plugin}-retry_count>> |<<number,number>>|No
49
+ | <<plugins-{type}s-{plugin}-tag>> |<<string,string>>|No
50
+ |=======================================================================
51
+
52
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
53
+ output plugins.
54
+
55
+ &nbsp;
56
+
57
+ [id="plugins-{type}s-{plugin}-can_retry"]
58
+ ===== `can_retry`
59
+
60
+ * Value type is <<boolean,boolean>>
61
+ * Default value is `true`
62
+
63
+ Can Retry.
64
+ Setting this value true helps user to send multiple retry attempts if the first request fails
65
+
66
+ [id="plugins-{type}s-{plugin}-host"]
67
+ ===== `host`
68
+
69
+ * Value type is <<string,string>>
70
+ * Default value is `"logs-01.loggly.com"`
71
+
72
+ The hostname to send logs to. This should target the loggly http input
73
+ server which is usually "logs-01.loggly.com" (Gen2 account).
74
+ See Loggly HTTP endpoint documentation at
75
+ https://www.loggly.com/docs/http-endpoint/
76
+
77
+ [id="plugins-{type}s-{plugin}-key"]
78
+ ===== `key`
79
+
80
+ * This is a required setting.
81
+ * Value type is <<string,string>>
82
+ * There is no default value for this setting.
83
+
84
+ The loggly http input key to send to.
85
+ This is usually visible in the Loggly 'Inputs' page as something like this:
86
+ ....
87
+ https://logs-01.loggly.net/inputs/abcdef12-3456-7890-abcd-ef0123456789
88
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
89
+ \----------> key <-------------/
90
+ ....
91
+ You can use `%{foo}` field lookups here if you need to pull the api key from
92
+ the event. This is mainly aimed at multitenant hosting providers who want
93
+ to offer shipping a customer's logs to that customer's loggly account.
94
+
95
+ [id="plugins-{type}s-{plugin}-proto"]
96
+ ===== `proto`
97
+
98
+ * Value type is <<string,string>>
99
+ * Default value is `"http"`
100
+
101
+ Should the log action be sent over https instead of plain http
102
+
103
+ [id="plugins-{type}s-{plugin}-proxy_host"]
104
+ ===== `proxy_host`
105
+
106
+ * Value type is <<string,string>>
107
+ * There is no default value for this setting.
108
+
109
+ Proxy Host
110
+
111
+ [id="plugins-{type}s-{plugin}-proxy_password"]
112
+ ===== `proxy_password`
113
+
114
+ * Value type is <<password,password>>
115
+ * Default value is `""`
116
+
117
+ Proxy Password
118
+
119
+ [id="plugins-{type}s-{plugin}-proxy_port"]
120
+ ===== `proxy_port`
121
+
122
+ * Value type is <<number,number>>
123
+ * There is no default value for this setting.
124
+
125
+ Proxy Port
126
+
127
+ [id="plugins-{type}s-{plugin}-proxy_user"]
128
+ ===== `proxy_user`
129
+
130
+ * Value type is <<string,string>>
131
+ * There is no default value for this setting.
132
+
133
+ Proxy Username
134
+
135
+ [id="plugins-{type}s-{plugin}-retry_count"]
136
+ ===== `retry_count`
137
+
138
+ * Value type is <<number,number>>
139
+ * Default value is `5`
140
+
141
+ Retry count.
142
+ It may be possible that the request may timeout due to slow Internet connection
143
+ if such condition appears, retry_count helps in retrying request for multiple times
144
+ It will try to submit request until retry_count and then halt
145
+
146
+ [id="plugins-{type}s-{plugin}-tag"]
147
+ ===== `tag`
148
+
149
+ * Value type is <<string,string>>
150
+ * Default value is `"logstash"`
151
+
152
+ Loggly Tag
153
+ Tag helps you to find your logs in the Loggly dashboard easily
154
+ You can make a search in Loggly using tag as "tag:logstash-contrib"
155
+ or the tag set by you in the config file.
156
+
157
+ You can use %{somefield} to allow for custom tag values.
158
+ Helpful for leveraging Loggly source groups.
159
+ https://www.loggly.com/docs/source-groups/
160
+
161
+
162
+
163
+ [id="plugins-{type}s-{plugin}-common-options"]
164
+ include::{include_path}/{type}.asciidoc[]
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-loggly'
3
- s.version = '3.0.0'
3
+ s.version = '3.0.1'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Got a loggly account? Use logstash to ship logs to Loggly!"
6
6
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.require_paths = ["lib"]
11
11
 
12
12
  # Files
13
- s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
13
+ s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
14
14
 
15
15
  # Tests
16
16
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-loggly
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-09 00:00:00.000000000 Z
11
+ date: 2017-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -70,6 +70,7 @@ files:
70
70
  - LICENSE
71
71
  - NOTICE.TXT
72
72
  - README.md
73
+ - docs/index.asciidoc
73
74
  - lib/logstash/outputs/loggly.rb
74
75
  - logstash-output-loggly.gemspec
75
76
  - spec/outputs/loggly_spec.rb