logstash-input-drupal_dblog 2.0.4-java → 2.0.5-java

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: 89579786fdf5cf50e5b582bee1ef37bc8385e32f
4
- data.tar.gz: edb0a60ee01c9b3ec4c4d9f0bc45c2abd6d330ea
3
+ metadata.gz: b7fe5ebdf943821ce7eafef29bedc86c3dde8ac5
4
+ data.tar.gz: 610192877139c56bf690c28daafbb07132aebbfe
5
5
  SHA512:
6
- metadata.gz: 561ed9774770c3e1c1a20e6df375d7e21689bdc1587fded1a28664b893f2e80d779b3b9fe13dd85fa17ecce83174565313eb327790c9068aefcef00c9878455b
7
- data.tar.gz: 4f288896d62f75d5e0330cc5e51b9e97e895d5c33570aa82859f0ed24fe30316393fad53ce9ca57dca039da36b1fc2f7676dbed947f7f42360cbb2d7437691d8
6
+ metadata.gz: 0b32cd75c7c679f9e5863fbb0175892a7425b9af8142b10cd05bc9314ba7a215e7ae3804bb09cbc59c9f1e99a44f5f2dedb076c6d5eaac4897687f4132e0bdd4
7
+ data.tar.gz: 7022c0a5474d70b9c4542470bc782c4a78db8746142e03ade081f26d32bc7dc752efd2f919144b096368fedcdf007d1a6e42b304e2a54c146d5fedc7f61f6db7
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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012–2015 Elasticsearch <http://www.elastic.co>
1
+ Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Logstash Plugin
2
2
 
3
- [![Build
4
- Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Inputs/job/logstash-plugin-input-drupal_dblog-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Inputs/job/logstash-plugin-input-drupal_dblog-unit/)
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-input-drupal_dblog.svg)](https://travis-ci.org/logstash-plugins/logstash-input-drupal_dblog)
5
4
 
6
5
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
7
6
 
@@ -56,7 +55,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
56
55
  ```
57
56
  - Install plugin
58
57
  ```sh
58
+ # Logstash 2.3 and higher
59
+ bin/logstash-plugin install --no-verify
60
+
61
+ # Prior to Logstash 2.3
59
62
  bin/plugin install --no-verify
63
+
60
64
  ```
61
65
  - Run Logstash with your plugin
62
66
  ```sh
@@ -74,7 +78,12 @@ gem build logstash-filter-awesome.gemspec
74
78
  ```
75
79
  - Install the plugin from the Logstash home
76
80
  ```sh
77
- bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
81
+ # Logstash 2.3 and higher
82
+ bin/logstash-plugin install --no-verify
83
+
84
+ # Prior to Logstash 2.3
85
+ bin/plugin install --no-verify
86
+
78
87
  ```
79
88
  - Start Logstash and proceed to test the plugin
80
89
 
@@ -0,0 +1,102 @@
1
+ :plugin: drupal_dblog
2
+ :type: input
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
+ === Drupal_dblog input plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ Retrieve watchdog log events from a Drupal installation with DBLog enabled.
24
+ The events are pulled out directly from the database.
25
+ The original events are not deleted, and on every consecutive run only new
26
+ events are pulled.
27
+
28
+ The last watchdog event id that was processed is stored in the Drupal
29
+ variable table with the name "logstash_last_wid". Delete this variable or
30
+ set it to 0 if you want to re-import all events.
31
+
32
+ More info on DBLog: http://drupal.org/documentation/modules/dblog
33
+
34
+
35
+ [id="plugins-{type}s-{plugin}-options"]
36
+ ==== Drupal_dblog Input Configuration Options
37
+
38
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
39
+
40
+ [cols="<,<,<",options="header",]
41
+ |=======================================================================
42
+ |Setting |Input type|Required
43
+ | <<plugins-{type}s-{plugin}-add_usernames>> |<<boolean,boolean>>|No
44
+ | <<plugins-{type}s-{plugin}-bulksize>> |<<number,number>>|No
45
+ | <<plugins-{type}s-{plugin}-databases>> |<<hash,hash>>|No
46
+ | <<plugins-{type}s-{plugin}-interval>> |<<number,number>>|No
47
+ |=======================================================================
48
+
49
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
50
+ input plugins.
51
+
52
+ &nbsp;
53
+
54
+ [id="plugins-{type}s-{plugin}-add_usernames"]
55
+ ===== `add_usernames`
56
+
57
+ * Value type is <<boolean,boolean>>
58
+ * Default value is `false`
59
+
60
+ By default, the event only contains the current user id as a field.
61
+ If you whish to add the username as an additional field, set this to true.
62
+
63
+ [id="plugins-{type}s-{plugin}-bulksize"]
64
+ ===== `bulksize`
65
+
66
+ * Value type is <<number,number>>
67
+ * Default value is `5000`
68
+
69
+ The amount of log messages that should be fetched with each query.
70
+ Bulk fetching is done to prevent querying huge data sets when lots of
71
+ messages are in the database.
72
+
73
+ [id="plugins-{type}s-{plugin}-databases"]
74
+ ===== `databases`
75
+
76
+ * Value type is <<hash,hash>>
77
+ * There is no default value for this setting.
78
+
79
+ Specify all drupal databases that you whish to import from.
80
+ This can be as many as you whish.
81
+ The format is a hash, with a unique site name as the key, and a databse
82
+ url as the value.
83
+
84
+ Example:
85
+ [
86
+ "site1", "mysql://user1:password@host1.com/databasename",
87
+ "other_site", "mysql://user2:password@otherhost.com/databasename",
88
+ ...
89
+ ]
90
+
91
+ [id="plugins-{type}s-{plugin}-interval"]
92
+ ===== `interval`
93
+
94
+ * Value type is <<number,number>>
95
+ * Default value is `10`
96
+
97
+ Time between checks in minutes.
98
+
99
+
100
+
101
+ [id="plugins-{type}s-{plugin}-common-options"]
102
+ include::{include_path}/{type}.asciidoc[]
@@ -1,17 +1,17 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-drupal_dblog'
4
- s.version = '2.0.4'
4
+ s.version = '2.0.5'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Retrieve watchdog log events from a Drupal installation with DBLog enabled"
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"
7
+ 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"
8
8
  s.authors = ["Elastic"]
9
9
  s.email = 'info@elastic.co'
10
10
  s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
11
11
  s.require_paths = ["lib"]
12
12
 
13
13
  # Files
14
- s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
14
+ s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
15
15
 
16
16
  # Tests
17
17
  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-input-drupal_dblog
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-24 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
@@ -94,7 +94,7 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- 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
97
+ 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
98
98
  email: info@elastic.co
99
99
  executables: []
100
100
  extensions: []
@@ -106,6 +106,7 @@ files:
106
106
  - LICENSE
107
107
  - NOTICE.TXT
108
108
  - README.md
109
+ - docs/index.asciidoc
109
110
  - lib/logstash-input-drupal_dblog_jars.rb
110
111
  - lib/logstash/inputs/drupal_dblog.rb
111
112
  - lib/logstash/inputs/drupal_dblog/jdbcconnection.rb