logstash-output-mongodb 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +10 -1
- data/docs/index.asciidoc +134 -0
- data/logstash-output-mongodb.gemspec +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42db8788f1850cc89ca19169434a1df05502a09d
|
4
|
+
data.tar.gz: d68f1dd1cdd0e0bb4fd25424c4c7a1bf3c5cf4ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8e3878c8d4de54f3fdd2f205a8a5e5020038ce8fff5b8b71d5e68cac13470fbebb57365b060536fbd517ebc69ad8649496a6eb1a48d78fd52ce31671f8507e7
|
7
|
+
data.tar.gz: 430965efab532e7e7890fdd5bca26d48ae598150e3e1a429ee56312fa2278f4fffc1bc5f31c5457309ebcde8254e78110ef5762d35b925333d906f02b5067852
|
data/Gemfile
CHANGED
@@ -1,2 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
-
|
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
|
data/docs/index.asciidoc
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
:plugin: mongodb
|
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
|
+
=== Mongodb output plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
This output writes events to MongoDB.
|
24
|
+
|
25
|
+
[id="plugins-{type}s-{plugin}-options"]
|
26
|
+
==== Mongodb Output Configuration Options
|
27
|
+
|
28
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
29
|
+
|
30
|
+
[cols="<,<,<",options="header",]
|
31
|
+
|=======================================================================
|
32
|
+
|Setting |Input type|Required
|
33
|
+
| <<plugins-{type}s-{plugin}-bulk>> |<<boolean,boolean>>|No
|
34
|
+
| <<plugins-{type}s-{plugin}-bulk_interval>> |<<number,number>>|No
|
35
|
+
| <<plugins-{type}s-{plugin}-bulk_size>> |<<number,number>>|No
|
36
|
+
| <<plugins-{type}s-{plugin}-collection>> |<<string,string>>|Yes
|
37
|
+
| <<plugins-{type}s-{plugin}-database>> |<<string,string>>|Yes
|
38
|
+
| <<plugins-{type}s-{plugin}-generateId>> |<<boolean,boolean>>|No
|
39
|
+
| <<plugins-{type}s-{plugin}-isodate>> |<<boolean,boolean>>|No
|
40
|
+
| <<plugins-{type}s-{plugin}-retry_delay>> |<<number,number>>|No
|
41
|
+
| <<plugins-{type}s-{plugin}-uri>> |<<string,string>>|Yes
|
42
|
+
|=======================================================================
|
43
|
+
|
44
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
45
|
+
output plugins.
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
[id="plugins-{type}s-{plugin}-bulk"]
|
50
|
+
===== `bulk`
|
51
|
+
|
52
|
+
* Value type is <<boolean,boolean>>
|
53
|
+
* Default value is `false`
|
54
|
+
|
55
|
+
Bulk insert flag, set to true to allow bulk insertion, else it will insert events one by one.
|
56
|
+
|
57
|
+
[id="plugins-{type}s-{plugin}-bulk_interval"]
|
58
|
+
===== `bulk_interval`
|
59
|
+
|
60
|
+
* Value type is <<number,number>>
|
61
|
+
* Default value is `2`
|
62
|
+
|
63
|
+
Bulk interval, Used to insert events periodically if the "bulk" flag is activated.
|
64
|
+
|
65
|
+
[id="plugins-{type}s-{plugin}-bulk_size"]
|
66
|
+
===== `bulk_size`
|
67
|
+
|
68
|
+
* Value type is <<number,number>>
|
69
|
+
* Default value is `900`
|
70
|
+
|
71
|
+
Bulk events number, if the number of events to insert into a collection raise that limit, it will be bulk inserted
|
72
|
+
whatever the bulk interval value (mongodb hard limit is 1000).
|
73
|
+
|
74
|
+
[id="plugins-{type}s-{plugin}-collection"]
|
75
|
+
===== `collection`
|
76
|
+
|
77
|
+
* This is a required setting.
|
78
|
+
* Value type is <<string,string>>
|
79
|
+
* There is no default value for this setting.
|
80
|
+
|
81
|
+
The collection to use. This value can use `%{foo}` values to dynamically
|
82
|
+
select a collection based on data in the event.
|
83
|
+
|
84
|
+
[id="plugins-{type}s-{plugin}-database"]
|
85
|
+
===== `database`
|
86
|
+
|
87
|
+
* This is a required setting.
|
88
|
+
* Value type is <<string,string>>
|
89
|
+
* There is no default value for this setting.
|
90
|
+
|
91
|
+
The database to use.
|
92
|
+
|
93
|
+
[id="plugins-{type}s-{plugin}-generateId"]
|
94
|
+
===== `generateId`
|
95
|
+
|
96
|
+
* Value type is <<boolean,boolean>>
|
97
|
+
* Default value is `false`
|
98
|
+
|
99
|
+
If true, an "_id" field will be added to the document before insertion.
|
100
|
+
The "_id" field will use the timestamp of the event and overwrite an existing
|
101
|
+
"_id" field in the event.
|
102
|
+
|
103
|
+
[id="plugins-{type}s-{plugin}-isodate"]
|
104
|
+
===== `isodate`
|
105
|
+
|
106
|
+
* Value type is <<boolean,boolean>>
|
107
|
+
* Default value is `false`
|
108
|
+
|
109
|
+
If true, store the @timestamp field in MongoDB as an ISODate type instead
|
110
|
+
of an ISO8601 string. For more information about this, see
|
111
|
+
http://www.mongodb.org/display/DOCS/Dates.
|
112
|
+
|
113
|
+
[id="plugins-{type}s-{plugin}-retry_delay"]
|
114
|
+
===== `retry_delay`
|
115
|
+
|
116
|
+
* Value type is <<number,number>>
|
117
|
+
* Default value is `3`
|
118
|
+
|
119
|
+
The number of seconds to wait after failure before retrying.
|
120
|
+
|
121
|
+
[id="plugins-{type}s-{plugin}-uri"]
|
122
|
+
===== `uri`
|
123
|
+
|
124
|
+
* This is a required setting.
|
125
|
+
* Value type is <<string,string>>
|
126
|
+
* There is no default value for this setting.
|
127
|
+
|
128
|
+
A MongoDB URI to connect to.
|
129
|
+
See http://docs.mongodb.org/manual/reference/connection-string/.
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
134
|
+
include::{include_path}/{type}.asciidoc[]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-mongodb'
|
3
|
-
s.version = '3.1.
|
3
|
+
s.version = '3.1.1'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Store events into MongoDB"
|
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[
|
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-mongodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
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
|
@@ -84,6 +84,7 @@ files:
|
|
84
84
|
- LICENSE
|
85
85
|
- NOTICE.TXT
|
86
86
|
- README.md
|
87
|
+
- docs/index.asciidoc
|
87
88
|
- lib/logstash/outputs/bson/big_decimal.rb
|
88
89
|
- lib/logstash/outputs/bson/logstash_event.rb
|
89
90
|
- lib/logstash/outputs/bson/logstash_timestamp.rb
|