logstash-output-sumologic 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTORS +2 -2
- data/README.md +38 -15
- data/lib/logstash/outputs/sumologic.rb +3 -3
- data/logstash-output-sumologic.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c38585a7a41b17574d0139b49b68f96dd86c6caf
|
4
|
+
data.tar.gz: 51dab0e2adc69cbbb76d8573d95f74198b0d4520
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d072897edd66361b757354053630f442b68fb9735694ef29967637050dacb6b1566517056dda16cc40f7ee68f4a9539089250e2defc55a2bc7247511fa28064
|
7
|
+
data.tar.gz: 0cfa190f22c120bff2e5a3b9b009960c39011c970c57957465339b52314dd027e39b4801f6978ede25b94fc307a6637c56121a0c3699a956d5f2bc8948ea37b5
|
data/CONTRIBUTORS
CHANGED
@@ -3,9 +3,9 @@ reports, or in general have helped Sumo Logic plug-in along its way.
|
|
3
3
|
|
4
4
|
Contributors:
|
5
5
|
* Bin Yi (bin3377)
|
6
|
-
*
|
6
|
+
* Brian Goleno (bgoleno)
|
7
7
|
* Jacek Migdal (jakozaur)
|
8
|
-
*
|
8
|
+
* Chris Dessonville (cddude229)
|
9
9
|
|
10
10
|
Note: If you've sent us patches, bug reports, or otherwise contributed to
|
11
11
|
Sumo Logic plug-in, and you aren't on the list above and want to be, please let us know
|
data/README.md
CHANGED
@@ -6,44 +6,67 @@ It is fully free and fully open source. The license is Apache 2.0, meaning you a
|
|
6
6
|
## Getting Started
|
7
7
|
|
8
8
|
### 1. Create a Sumo Logic HTTP source
|
9
|
-
|
10
|
-
|
9
|
+
Create a [Sumo Logic](https://www.sumologic.com/) free account if you currently don't have one.
|
10
|
+
|
11
|
+
Create a [HTTP source](http://help.sumologic.com/Send_Data/Sources/HTTP_Source) in your account and get the URL for this source. It should be something like:
|
11
12
|
```
|
12
13
|
https://events.sumologic.net/receiver/v1/http/XXXXXXXXXX
|
13
14
|
```
|
14
15
|
|
15
16
|
### 2. Install LogStash on your machine
|
16
|
-
|
17
|
-
|
18
|
-
### 3. Build plugin gem and install to LogStash
|
19
|
-
- Build your plugin gem
|
17
|
+
Following this [instruction](https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html) to download and install LogStash. This plugin requires Logstash 2.3 or higher to work.
|
20
18
|
|
19
|
+
### 3. Build your plugin gem
|
21
20
|
In your local Git clone, running:
|
22
21
|
```sh
|
23
22
|
gem build logstash-output-sumologic.gemspec
|
24
23
|
```
|
25
|
-
|
26
24
|
You will get a .gem file as `logstash-output-sumologic-1.0.0.gem`
|
27
25
|
|
28
|
-
|
29
|
-
|
26
|
+
### 4. Install plugin into LogStash
|
30
27
|
In the Logstash home, running:
|
31
28
|
```sh
|
32
29
|
bin/logstash-plugin install <path of .gem>
|
33
30
|
```
|
34
31
|
|
35
|
-
###
|
32
|
+
### 5. Start Logstash and send log
|
36
33
|
In the Logstash home, running:
|
37
34
|
```sh
|
38
35
|
bin/logstash -e 'input{stdin{}}output{sumologic{url=>"<url from step 1>"}}'
|
39
36
|
```
|
40
|
-
|
41
37
|
This will send any input from console to Sumo Logic cloud service.
|
42
38
|
|
43
|
-
###
|
44
|
-
|
39
|
+
### 6. Get result from Sumo Logic web app
|
40
|
+
Logon to Sumo Logic [web app](https://prod-www.sumologic.net/ui/) and run [Search](http://help.sumologic.com/Search) or [Live Tail](http://help.sumologic.com/Search/Live_Tail)
|
45
41
|
|
46
|
-
###
|
42
|
+
### Furthermore
|
47
43
|
- Try it with different input/filter/codec plugins
|
48
44
|
- Start LogStash as a service/daemon in your production environment
|
49
|
-
- Report
|
45
|
+
- Report any issue or idea through [Git Hub](https://github.com/SumoLogic/logstash-output-sumologic)
|
46
|
+
|
47
|
+
## Parameters
|
48
|
+
This plugin is based on [logstash-mixin-http_client](https://github.com/logstash-plugins/logstash-mixin-http_client) thus it supports all parameters like proxy, authentication, retry, etc.
|
49
|
+
|
50
|
+
And it supports following additional prarmeters:
|
51
|
+
```
|
52
|
+
# The URL to send logs to. This should be given when creating a HTTP Source
|
53
|
+
# on Sumo Logic web app. See http://help.sumologic.com/Send_Data/Sources/HTTP_Source
|
54
|
+
config :url, :validate => :string, :required => true
|
55
|
+
|
56
|
+
# Include extra HTTP headers on request if needed
|
57
|
+
config :extra_headers, :validate => :hash, :default => []
|
58
|
+
|
59
|
+
# The formatter of message, by default is message with timestamp and host as prefix
|
60
|
+
config :format, :validate => :string, :default => "%{@timestamp} %{host} %{message}"
|
61
|
+
|
62
|
+
# Hold messages for at least (x) seconds as a pile; 0 means sending every events immediately
|
63
|
+
config :interval, :validate => :number, :default => 0
|
64
|
+
|
65
|
+
# Compress the payload
|
66
|
+
config :compress, :validate => :boolean, :default => false
|
67
|
+
|
68
|
+
```
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
@@ -18,14 +18,14 @@ class LogStash::Outputs::SumoLogic < LogStash::Outputs::Base
|
|
18
18
|
|
19
19
|
config_name "sumologic"
|
20
20
|
|
21
|
-
# The
|
22
|
-
# on Sumo Logic web app http://help.sumologic.com/Send_Data/Sources/HTTP_Source
|
21
|
+
# The URL to send logs to. This should be given when creating a HTTP Source
|
22
|
+
# on Sumo Logic web app. See http://help.sumologic.com/Send_Data/Sources/HTTP_Source
|
23
23
|
config :url, :validate => :string, :required => true
|
24
24
|
|
25
25
|
# Include extra HTTP headers on request if needed
|
26
26
|
config :extra_headers, :validate => :hash, :default => []
|
27
27
|
|
28
|
-
# The formatter of message, by default is message with timestamp as prefix
|
28
|
+
# The formatter of message, by default is message with timestamp and host as prefix
|
29
29
|
config :format, :validate => :string, :default => "%{@timestamp} %{host} %{message}"
|
30
30
|
|
31
31
|
# Hold messages for at least (x) seconds as a pile; 0 means sending every events immediately
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-sumologic'
|
3
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.1"
|
4
4
|
s.licenses = ["Apache-2.0"]
|
5
5
|
s.summary = "Deliever the log to Sumo Logic cloud service."
|
6
|
-
s.description = "This gem is a Logstash plugin
|
6
|
+
s.description = "This gem is a Logstash output plugin to deliver the log to Sumo Logic cloud service. Go to https://github.com/SumoLogic/logstash-output-sumologic for getting help, reporting issues, etc."
|
7
7
|
s.authors = ["Sumo Logic"]
|
8
8
|
s.email = "byi@sumologic.com"
|
9
9
|
s.homepage = "http://www.sumologic.com"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-sumologic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sumo Logic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core
|
@@ -58,9 +58,9 @@ dependencies:
|
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
|
-
description: This gem is a Logstash plugin
|
62
|
-
|
63
|
-
|
61
|
+
description: This gem is a Logstash output plugin to deliver the log to Sumo Logic
|
62
|
+
cloud service. Go to https://github.com/SumoLogic/logstash-output-sumologic for
|
63
|
+
getting help, reporting issues, etc.
|
64
64
|
email: byi@sumologic.com
|
65
65
|
executables: []
|
66
66
|
extensions: []
|