logstash-output-file 4.0.1 → 4.0.2

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: adaf924485fd1bb625fde5bd5461cace6c429c08
4
- data.tar.gz: bf174048dd7393c9183a9c56765df469dee688b2
3
+ metadata.gz: e143e3304bce2de4661eda2c3530f0c12d9fb92c
4
+ data.tar.gz: 2dce1e652301a8aac23edf284b43d9dba7ace304
5
5
  SHA512:
6
- metadata.gz: 3a0dbd7eace73e237997122f6441c8ad00f9dcf982f6533be8002dcc0bf2ee1cdcd15e705f1c2bc5ffed59eb639dd4650c8e71fb6875dd9edccfc2d4053e0709
7
- data.tar.gz: f8dcaf8b47a11076224b889d903310e0a03ab44d0e1795ec0f1df15d4a7845079389cf62336c042d5c10e38caf90c9a48573e9360796ce740a5f09b6b6830035
6
+ metadata.gz: 9458c1873ac9a0f2d8a1dc723cd772bb1f9a5e14a202eb34ccab67199e0a281de790933c9bb8b19c31253448313ad780e027768dc14f06ae009598ef6a1bc621
7
+ data.tar.gz: 06dff36877a2a496473fdf11c123712833f4572f9bf57e5e71a28e0286fdd12917edd67eabeee0936d3c149019bd8c3b2b3f2358fa08d297764486ab61353024
data/Gemfile CHANGED
@@ -1,4 +1,11 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in logstash-mass_effect.gemspec
4
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,136 @@
1
+ :plugin: file
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
+ === File output plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ This output writes events to files on disk. You can use fields
24
+ from the event as parts of the filename and/or path.
25
+
26
+ By default, this output writes one event per line in **json** format.
27
+ You can customise the line format using the `line` codec like
28
+ [source,ruby]
29
+ output {
30
+ file {
31
+ path => ...
32
+ codec => line { format => "custom format: %{message}"}
33
+ }
34
+ }
35
+
36
+ [id="plugins-{type}s-{plugin}-options"]
37
+ ==== File Output Configuration Options
38
+
39
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
40
+
41
+ [cols="<,<,<",options="header",]
42
+ |=======================================================================
43
+ |Setting |Input type|Required
44
+ | <<plugins-{type}s-{plugin}-create_if_deleted>> |<<boolean,boolean>>|No
45
+ | <<plugins-{type}s-{plugin}-dir_mode>> |<<number,number>>|No
46
+ | <<plugins-{type}s-{plugin}-file_mode>> |<<number,number>>|No
47
+ | <<plugins-{type}s-{plugin}-filename_failure>> |<<string,string>>|No
48
+ | <<plugins-{type}s-{plugin}-flush_interval>> |<<number,number>>|No
49
+ | <<plugins-{type}s-{plugin}-gzip>> |<<boolean,boolean>>|No
50
+ | <<plugins-{type}s-{plugin}-path>> |<<string,string>>|Yes
51
+ |=======================================================================
52
+
53
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
54
+ output plugins.
55
+
56
+ &nbsp;
57
+
58
+ [id="plugins-{type}s-{plugin}-create_if_deleted"]
59
+ ===== `create_if_deleted`
60
+
61
+ * Value type is <<boolean,boolean>>
62
+ * Default value is `true`
63
+
64
+ If the configured file is deleted, but an event is handled by the plugin,
65
+ the plugin will recreate the file. Default => true
66
+
67
+ [id="plugins-{type}s-{plugin}-dir_mode"]
68
+ ===== `dir_mode`
69
+
70
+ * Value type is <<number,number>>
71
+ * Default value is `-1`
72
+
73
+ Dir access mode to use. Note that due to the bug in jruby system umask
74
+ is ignored on linux: https://github.com/jruby/jruby/issues/3426
75
+ Setting it to -1 uses default OS value.
76
+ Example: `"dir_mode" => 0750`
77
+
78
+ [id="plugins-{type}s-{plugin}-file_mode"]
79
+ ===== `file_mode`
80
+
81
+ * Value type is <<number,number>>
82
+ * Default value is `-1`
83
+
84
+ File access mode to use. Note that due to the bug in jruby system umask
85
+ is ignored on linux: https://github.com/jruby/jruby/issues/3426
86
+ Setting it to -1 uses default OS value.
87
+ Example: `"file_mode" => 0640`
88
+
89
+ [id="plugins-{type}s-{plugin}-filename_failure"]
90
+ ===== `filename_failure`
91
+
92
+ * Value type is <<string,string>>
93
+ * Default value is `"_filepath_failures"`
94
+
95
+ If the generated path is invalid, the events will be saved
96
+ into this file and inside the defined path.
97
+
98
+ [id="plugins-{type}s-{plugin}-flush_interval"]
99
+ ===== `flush_interval`
100
+
101
+ * Value type is <<number,number>>
102
+ * Default value is `2`
103
+
104
+ Flush interval (in seconds) for flushing writes to log files.
105
+ 0 will flush on every message.
106
+
107
+ [id="plugins-{type}s-{plugin}-gzip"]
108
+ ===== `gzip`
109
+
110
+ * Value type is <<boolean,boolean>>
111
+ * Default value is `false`
112
+
113
+ Gzip the output stream before writing to disk.
114
+
115
+ [id="plugins-{type}s-{plugin}-path"]
116
+ ===== `path`
117
+
118
+ * This is a required setting.
119
+ * Value type is <<string,string>>
120
+ * There is no default value for this setting.
121
+
122
+ The path to the file to write. Event fields can be used here,
123
+ like `/var/log/logstash/%{host}/%{application}`
124
+ One may also utilize the path option for date-based log
125
+ rotation via the joda time format. This will use the event
126
+ timestamp.
127
+ E.g.: `path => "./test-%{+YYYY-MM-dd}.txt"` to create
128
+ `./test-2013-05-29.txt`
129
+
130
+ If you use an absolute path you cannot start with a dynamic string.
131
+ E.g: `/%{myfield}/`, `/test-%{myfield}/` are not valid paths
132
+
133
+
134
+
135
+ [id="plugins-{type}s-{plugin}-common-options"]
136
+ include::{include_path}/{type}.asciidoc[]
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-file'
4
- s.version = '4.0.1'
4
+ s.version = '4.0.2'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This output will write events to files on disk"
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','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-output-file
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
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-15 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
@@ -98,6 +98,7 @@ files:
98
98
  - LICENSE
99
99
  - NOTICE.TXT
100
100
  - README.md
101
+ - docs/index.asciidoc
101
102
  - lib/logstash/outputs/file.rb
102
103
  - logstash-output-file.gemspec
103
104
  - spec/outputs/file_spec.rb