logstash-input-journald 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e66e7ea2ac0e27fa72d0afa56f1155a4a35cb100
4
- data.tar.gz: '058578d043dd4dd5c73c05b079ac43ecea0a345c'
3
+ metadata.gz: 2289e38054e2912a37201477a160aa23f030c0fd
4
+ data.tar.gz: 041eaf55b394d5edda8f5530a22b34dc0a9110b7
5
5
  SHA512:
6
- metadata.gz: f144034ee78d5313f08fa92d86fc55b2fdd4f362118edead14af7b45e2ce008303f0f49d01cdddacd76a7b1f480838888a322e55275661b986a571652ee569a7
7
- data.tar.gz: 16356621025d6c0c56670499c187c1acd21e03e7be77c981facf3e46bcdea6127c7cce7ed5d77bf72c821b7fbd62b0624d4e8a8a6eb23c974051dacb6293b487
6
+ metadata.gz: 6e7d55c233d75b1ca4630407af309eac93adf6ddbb4e7d371bd9f6e16f0953e4f1edb8b877adac5b57c1a3232fc2b07dd338d2e5e54124cb1a2d50bfb61e10cb
7
+ data.tar.gz: 797e7fb382313909402ed1db8809c01d1ea3b36b4c823953858cd1d5b3c6dff5100a593131cfaad9dca3af1ffa2946253c75997dffddd0482bdb3a5a39b7d349
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,152 @@
1
+ :plugin: journald
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
+ === Journald input plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ Pull events from a local systemd journal.
24
+
25
+ See requirements https://github.com/ledbettj/systemd-journal
26
+
27
+ [id="plugins-{type}s-{plugin}-options"]
28
+ ==== Journald Input Configuration Options
29
+
30
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
31
+
32
+ [cols="<,<,<",options="header",]
33
+ |=======================================================================
34
+ |Setting |Input type|Required
35
+ | <<plugins-{type}s-{plugin}-filter>> |<<hash,hash>>|No
36
+ | <<plugins-{type}s-{plugin}-flags>> |<<string,string>>, one of `[0, 1, 2, 4]`|No
37
+ | <<plugins-{type}s-{plugin}-lowercase>> |<<boolean,boolean>>|No
38
+ | <<plugins-{type}s-{plugin}-path>> |<<string,string>>|No
39
+ | <<plugins-{type}s-{plugin}-seekto>> |<<string,string>>, one of `["head", "tail"]`|No
40
+ | <<plugins-{type}s-{plugin}-sincedb_path>> |<<string,string>>|No
41
+ | <<plugins-{type}s-{plugin}-sincedb_write_interval>> |<<number,number>>|No
42
+ | <<plugins-{type}s-{plugin}-thisboot>> |<<boolean,boolean>>|No
43
+ | <<plugins-{type}s-{plugin}-threads>> |<<number,number>>|No
44
+ | <<plugins-{type}s-{plugin}-wait_timeout>> |<<number,number>>|No
45
+ |=======================================================================
46
+
47
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
48
+ input plugins.
49
+
50
+ &nbsp;
51
+
52
+ [id="plugins-{type}s-{plugin}-filter"]
53
+ ===== `filter`
54
+
55
+ * Value type is <<hash,hash>>
56
+ * Default value is `{}`
57
+
58
+ Filter on events. Not heavily tested.
59
+
60
+
61
+ [id="plugins-{type}s-{plugin}-flags"]
62
+ ===== `flags`
63
+
64
+ * Value can be any of: `0`, `1`, `2`, `4`
65
+ * Default value is `0`
66
+
67
+ System journal flags
68
+ 0 = all avalable
69
+ 1 = local only
70
+ 2 = runtime only
71
+ 4 = system only
72
+
73
+
74
+ [id="plugins-{type}s-{plugin}-lowercase"]
75
+ ===== `lowercase`
76
+
77
+ * Value type is <<boolean,boolean>>
78
+ * Default value is `false`
79
+
80
+ Lowercase annoying UPPERCASE fieldnames. (May clobber existing fields)
81
+
82
+
83
+ [id="plugins-{type}s-{plugin}-path"]
84
+ ===== `path`
85
+
86
+ * Value type is <<string,string>>
87
+ * Default value is `"/var/log/journal"`
88
+
89
+ Path to read journal files from
90
+
91
+
92
+ [id="plugins-{type}s-{plugin}-seekto"]
93
+ ===== `seekto`
94
+
95
+ * Value can be any of: `head`, `tail`
96
+ * Default value is `"tail"`
97
+
98
+ Where in the journal to start capturing logs
99
+ Options: head, tail
100
+
101
+ [id="plugins-{type}s-{plugin}-sincedb_path"]
102
+ ===== `sincedb_path`
103
+
104
+ * Value type is <<string,string>>
105
+ * There is no default value for this setting.
106
+
107
+ Where to write the sincedb database (keeps track of the current
108
+ position of the journal). The default will write
109
+ the sincedb file to matching `$HOME/.sincedb_journal`
110
+
111
+
112
+ [id="plugins-{type}s-{plugin}-sincedb_write_interval"]
113
+ ===== `sincedb_write_interval`
114
+
115
+ * Value type is <<number,number>>
116
+ * Default value is `15`
117
+
118
+ How often (in seconds) to write a since database with the current position of
119
+ the journal.
120
+
121
+
122
+ [id="plugins-{type}s-{plugin}-thisboot"]
123
+ ===== `thisboot`
124
+
125
+ * Value type is <<boolean,boolean>>
126
+ * Default value is `true`
127
+
128
+ Filter logs since the system booted (only relevant with seekto => "head")
129
+
130
+
131
+ [id="plugins-{type}s-{plugin}-threads"]
132
+ ===== `threads`
133
+
134
+ * Value type is <<number,number>>
135
+ * Default value is `1`
136
+
137
+
138
+
139
+ [id="plugins-{type}s-{plugin}-wait_timeout"]
140
+ ===== `wait_timeout`
141
+
142
+ * Value type is <<number,number>>
143
+ * Default value is `3000000`
144
+
145
+ The max timeout in microsends to wait for new events from the journal.
146
+ Set to -1 to wait indefinitely. Setting this to a large value will
147
+ result in delayed shutdown of the plugin.
148
+
149
+
150
+
151
+ [id="plugins-{type}s-{plugin}-common-options"]
152
+ include::{include_path}/{type}.asciidoc[]
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-journald'
4
- s.version = '2.0.0'
4
+ s.version = '2.0.1'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Read events from local systemd journal"
7
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"
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.require_paths = ["lib"]
12
12
 
13
13
  # Files
14
- s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','Gemfile','LICENSE']
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,17 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-journald
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - stuart-warren
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-23 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
- name: logstash-core-plugin-api
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
16
  - - ">="
@@ -20,8 +19,9 @@ dependencies:
20
19
  - - "<="
21
20
  - !ruby/object:Gem::Version
22
21
  version: '2.99'
23
- type: :runtime
22
+ name: logstash-core-plugin-api
24
23
  prerelease: false
24
+ type: :runtime
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
@@ -31,106 +31,104 @@ dependencies:
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2.99'
33
33
  - !ruby/object:Gem::Dependency
34
- name: logstash-codec-plain
35
34
  requirement: !ruby/object:Gem::Requirement
36
35
  requirements:
37
36
  - - ">="
38
37
  - !ruby/object:Gem::Version
39
38
  version: '0'
40
- type: :runtime
39
+ name: logstash-codec-plain
41
40
  prerelease: false
41
+ type: :runtime
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  - !ruby/object:Gem::Dependency
48
- name: logstash-codec-line
49
48
  requirement: !ruby/object:Gem::Requirement
50
49
  requirements:
51
50
  - - ">="
52
51
  - !ruby/object:Gem::Version
53
52
  version: '0'
54
- type: :runtime
53
+ name: logstash-codec-line
55
54
  prerelease: false
55
+ type: :runtime
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
61
  - !ruby/object:Gem::Dependency
62
- name: logstash-codec-json
63
62
  requirement: !ruby/object:Gem::Requirement
64
63
  requirements:
65
64
  - - ">="
66
65
  - !ruby/object:Gem::Version
67
66
  version: '0'
68
- type: :runtime
67
+ name: logstash-codec-json
69
68
  prerelease: false
69
+ type: :runtime
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  - !ruby/object:Gem::Dependency
76
- name: logstash-codec-json_lines
77
76
  requirement: !ruby/object:Gem::Requirement
78
77
  requirements:
79
78
  - - ">="
80
79
  - !ruby/object:Gem::Version
81
80
  version: '0'
82
- type: :runtime
81
+ name: logstash-codec-json_lines
83
82
  prerelease: false
83
+ type: :runtime
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  - !ruby/object:Gem::Dependency
90
- name: ffi
91
90
  requirement: !ruby/object:Gem::Requirement
92
91
  requirements:
93
92
  - - ">="
94
93
  - !ruby/object:Gem::Version
95
94
  version: '0'
96
- type: :runtime
95
+ name: ffi
97
96
  prerelease: false
97
+ type: :runtime
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  - !ruby/object:Gem::Dependency
104
- name: systemd-journal
105
104
  requirement: !ruby/object:Gem::Requirement
106
105
  requirements:
107
106
  - - "~>"
108
107
  - !ruby/object:Gem::Version
109
108
  version: 1.2.2
110
- type: :runtime
109
+ name: systemd-journal
111
110
  prerelease: false
111
+ type: :runtime
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
116
  version: 1.2.2
117
117
  - !ruby/object:Gem::Dependency
118
- name: logstash-devutils
119
118
  requirement: !ruby/object:Gem::Requirement
120
119
  requirements:
121
120
  - - ">="
122
121
  - !ruby/object:Gem::Version
123
122
  version: '0'
124
- type: :development
123
+ name: logstash-devutils
125
124
  prerelease: false
125
+ type: :development
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - ">="
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
- description: This gem is a Logstash plugin required to be installed on top of the
132
- Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
133
- gem is not a stand-alone program
131
+ 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
134
132
  email: stuart.warren@ocado.com
135
133
  executables: []
136
134
  extensions: []
@@ -140,6 +138,7 @@ files:
140
138
  - Gemfile
141
139
  - LICENSE
142
140
  - README.md
141
+ - docs/index.asciidoc
143
142
  - lib/logstash/inputs/journald.rb
144
143
  - logstash-input-journald.gemspec
145
144
  - spec/inputs/journald_spec.rb
@@ -149,7 +148,7 @@ licenses:
149
148
  metadata:
150
149
  logstash_plugin: 'true'
151
150
  logstash_group: input
152
- post_install_message:
151
+ post_install_message:
153
152
  rdoc_options: []
154
153
  require_paths:
155
154
  - lib
@@ -164,9 +163,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
163
  - !ruby/object:Gem::Version
165
164
  version: '0'
166
165
  requirements: []
167
- rubyforge_project:
168
- rubygems_version: 2.5.2
169
- signing_key:
166
+ rubyforge_project:
167
+ rubygems_version: 2.4.8
168
+ signing_key:
170
169
  specification_version: 4
171
170
  summary: Read events from local systemd journal
172
171
  test_files: