logstash-output-file 4.2.1 → 4.2.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
  SHA256:
3
- metadata.gz: e3e6df96b8e8987eaeb62b48f7be2df97ea74326231d8557d563398f1bb8d9a5
4
- data.tar.gz: 8e8fa39f3960c4860340ef16d018f6e28fdeec2ace2a34e556b1b19a50806da4
3
+ metadata.gz: c5d14cba1cbaf243240e2473742196661c7f1bce4d33c3481a74aecf702db61b
4
+ data.tar.gz: 549b84b9a98dcf53bf0015e4aed4297e2f6d6a3ad3e5a4b587d2c6d83aab8071
5
5
  SHA512:
6
- metadata.gz: 3acf0df3cfad62b494dc6e69a8536b1a3cb57cbcc061c03fd3964dde64e3fb00085c6e2715551ddbeda348ca14e07fb6886fb13f0f1f961e547674e3b5320666
7
- data.tar.gz: d4cf144fff27f3ead7b07277c211f7470a96562c1bf807b3a05a397e9ca4772a78181c9cd1775ec19f534751b38063e9c506b8b714f3c474b932b17b9548882f
6
+ metadata.gz: 21e184fc5ce387e10b07910c95e6fc476a6e1f00bf531eff95c32d930da11c1191d6f7026f7b90ff0f8c91e22a6bc51f5706e7ddb22cbf5b525b0c41bf296971
7
+ data.tar.gz: '0880e0cbc6a742602d42b48afbead841cb480743ecd5de7f3bbf308c753a138c5fe5c31afa0755479ece1fe9c7b1e515ac8e08b9ecb7305d4dc46542cd4ecc43'
@@ -1,3 +1,6 @@
1
+ ## 4.2.2
2
+ - Add feature `write_behavior` to the documentation #58
3
+
1
4
  ## 4.2.1
2
5
  - Bugfix: Move require of flores into the spec file instead of main file.rb
3
6
 
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012–2016 Elasticsearch <http://www.elastic.co>
1
+ Copyright (c) 2012-2018 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.
@@ -48,6 +48,7 @@ This plugin supports the following configuration options plus the <<plugins-{typ
48
48
  | <<plugins-{type}s-{plugin}-flush_interval>> |<<number,number>>|No
49
49
  | <<plugins-{type}s-{plugin}-gzip>> |<<boolean,boolean>>|No
50
50
  | <<plugins-{type}s-{plugin}-path>> |<<string,string>>|Yes
51
+ | <<plugins-{type}s-{plugin}-write_behavior>> |<<string,string>>|No
51
52
  |=======================================================================
52
53
 
53
54
  Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
@@ -56,16 +57,16 @@ output plugins.
56
57
  &nbsp;
57
58
 
58
59
  [id="plugins-{type}s-{plugin}-create_if_deleted"]
59
- ===== `create_if_deleted`
60
+ ===== `create_if_deleted`
60
61
 
61
62
  * Value type is <<boolean,boolean>>
62
63
  * Default value is `true`
63
64
 
64
- If the configured file is deleted, but an event is handled by the plugin,
65
+ If the configured file is deleted, but an event is handled by the plugin,
65
66
  the plugin will recreate the file. Default => true
66
67
 
67
68
  [id="plugins-{type}s-{plugin}-dir_mode"]
68
- ===== `dir_mode`
69
+ ===== `dir_mode`
69
70
 
70
71
  * Value type is <<number,number>>
71
72
  * Default value is `-1`
@@ -76,7 +77,7 @@ Setting it to -1 uses default OS value.
76
77
  Example: `"dir_mode" => 0750`
77
78
 
78
79
  [id="plugins-{type}s-{plugin}-file_mode"]
79
- ===== `file_mode`
80
+ ===== `file_mode`
80
81
 
81
82
  * Value type is <<number,number>>
82
83
  * Default value is `-1`
@@ -87,7 +88,7 @@ Setting it to -1 uses default OS value.
87
88
  Example: `"file_mode" => 0640`
88
89
 
89
90
  [id="plugins-{type}s-{plugin}-filename_failure"]
90
- ===== `filename_failure`
91
+ ===== `filename_failure`
91
92
 
92
93
  * Value type is <<string,string>>
93
94
  * Default value is `"_filepath_failures"`
@@ -96,7 +97,7 @@ If the generated path is invalid, the events will be saved
96
97
  into this file and inside the defined path.
97
98
 
98
99
  [id="plugins-{type}s-{plugin}-flush_interval"]
99
- ===== `flush_interval`
100
+ ===== `flush_interval`
100
101
 
101
102
  * Value type is <<number,number>>
102
103
  * Default value is `2`
@@ -105,7 +106,7 @@ Flush interval (in seconds) for flushing writes to log files.
105
106
  0 will flush on every message.
106
107
 
107
108
  [id="plugins-{type}s-{plugin}-gzip"]
108
- ===== `gzip`
109
+ ===== `gzip`
109
110
 
110
111
  * Value type is <<boolean,boolean>>
111
112
  * Default value is `false`
@@ -113,7 +114,7 @@ Flush interval (in seconds) for flushing writes to log files.
113
114
  Gzip the output stream before writing to disk.
114
115
 
115
116
  [id="plugins-{type}s-{plugin}-path"]
116
- ===== `path`
117
+ ===== `path`
117
118
 
118
119
  * This is a required setting.
119
120
  * Value type is <<string,string>>
@@ -130,7 +131,14 @@ E.g.: `path => "./test-%{+YYYY-MM-dd}.txt"` to create
130
131
  If you use an absolute path you cannot start with a dynamic string.
131
132
  E.g: `/%{myfield}/`, `/test-%{myfield}/` are not valid paths
132
133
 
134
+ [id="plugins-{type}s-{plugin}-write_behavior"]
135
+ ===== `write_behavior`
133
136
 
137
+ * Value type is <<string,string>>
138
+ * Default value is `append`
139
+
140
+ If `append`, the file will be opened for appending and each new event will be written at the end of the file.
141
+ If `overwrite`, the file will be truncated before writing and only the most recent event will appear in the file.
134
142
 
135
143
  [id="plugins-{type}s-{plugin}-common-options"]
136
- include::{include_path}/{type}.asciidoc[]
144
+ 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.2.1'
4
+ s.version = '4.2.2'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Writes 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"
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.2.1
4
+ version: 4.2.2
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-24 00:00:00.000000000 Z
11
+ date: 2018-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement