logstash-filter-date 3.2.0 → 3.2.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
  SHA256:
3
- metadata.gz: 8ea85b9a739ee3c2f7074203a7a30d7db4d37615541b126b5372e2d118260d4b
4
- data.tar.gz: 106e2c9d67c60fa1ce5eea4ca4e27654aa416a264ed704e06cbdafc5e054b1b4
3
+ metadata.gz: acaae4f07bc5115a72912039e65d94e0036d7cb13eb426f5a6da08728db6e347
4
+ data.tar.gz: 5b52406d8576e434a23b4b7a9d30ce9ca4699e8ef16640151964067d7f799a58
5
5
  SHA512:
6
- metadata.gz: 8051731609e613b09430d809b077ffcf48e3151fcc5ab5affaed09dd8da3f1a8dc7b4c39a90468e8f32599609881900abd9f5c6f4dc3f94b1f891705fd7ccd7b
7
- data.tar.gz: e1b8552ede171c1ea0dc77398395c9fdaeb1b79ece9e8dabe7d61c58a94c23f44d712f91950a0adfbb8c1bafce64c4bf7aafea8312c3d2b41e53f726639030a4
6
+ metadata.gz: 0c6ec611ae7343d02ca09326de16c80d39d6aace82bd7eb159a9ff9e33ff038915dad79cd58760ae83fdeb613e526636cb4274ff948ec8512c96374de43a0ded
7
+ data.tar.gz: b7c9daffcf5364c87f529b4c7e473b50a0b88498777ed33b95e5012cac7770bf33c2d71f4f34ac0d8d5266b126fabd7f7b9613d3cdbd24767799d18dc520535e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 3.2.1
2
+ - Fix date syntax docs list formatting [#166](https://github.com/logstash-plugins/logstash-filter-date/pull/166)
3
+
1
4
  ## 3.2.0
2
5
  - Add `precision` setting to support nanosecond precision timestamps [#165](https://github.com/logstash-plugins/logstash-filter-date/pull/165)
3
6
  - `ms` (default): timestamps are stored with millisecond precision
data/docs/index.asciidoc CHANGED
@@ -111,61 +111,60 @@ indicate the form of that value (2-digit month, full month name, etc).
111
111
 
112
112
  Here's what you can use to parse dates and times:
113
113
 
114
- [horizontal]
115
- y:: year
116
- yyyy::: full year number. Example: `2015`.
117
- yy::: two-digit year. Example: `15` for the year 2015.
114
+ * `y`: year
115
+ ** `yyyy`: full year number. Example: `2015`.
116
+ ** `yy`: two-digit year. Example: `15` for the year 2015.
118
117
 
119
- M:: month of the year
120
- M::: minimal-digit month. Example: `1` for January and `12` for December.
121
- MM::: two-digit month. zero-padded if needed. Example: `01` for January and `12` for December
122
- MMM::: abbreviated month text. Example: `Jan` for January. Note: The language used depends on your locale. See the `locale` setting for how to change the language.
123
- MMMM::: full month text, Example: `January`. Note: The language used depends on your locale.
118
+ * `M`: month of the year
119
+ ** `M`: minimal-digit month. Example: `1` for January and `12` for December.
120
+ ** `MM`: two-digit month. zero-padded if needed. Example: `01` for January and `12` for December
121
+ ** `MMM`: abbreviated month text. Example: `Jan` for January. Note: The language used depends on your locale. See the `locale` setting for how to change the language.
122
+ ** `MMMM`: full month text, Example: `January`. Note: The language used depends on your locale.
124
123
 
125
- d:: day of the month
126
- d::: minimal-digit day. Example: `1` for the 1st of the month.
127
- dd::: two-digit day, zero-padded if needed. Example: `01` for the 1st of the month.
124
+ * `d`: day of the month
125
+ ** `d`: minimal-digit day. Example: `1` for the 1st of the month.
126
+ ** `dd`: two-digit day, zero-padded if needed. Example: `01` for the 1st of the month.
128
127
 
129
- H:: hour of the day (24-hour clock)
130
- H::: minimal-digit hour. Example: `0` for midnight.
131
- HH::: two-digit hour, zero-padded if needed. Example: `00` for midnight.
128
+ * `H`: hour of the day (24-hour clock)
129
+ ** `H`: minimal-digit hour. Example: `0` for midnight.
130
+ ** `HH`: two-digit hour, zero-padded if needed. Example: `00` for midnight.
132
131
 
133
- m:: minutes of the hour (60 minutes per hour)
134
- m::: minimal-digit minutes. Example: `0`.
135
- mm::: two-digit minutes, zero-padded if needed. Example: `00`.
132
+ * `m`: minutes of the hour (60 minutes per hour)
133
+ ** `m`: minimal-digit minutes. Example: `0`.
134
+ ** `mm`: two-digit minutes, zero-padded if needed. Example: `00`.
136
135
 
137
- s:: seconds of the minute (60 seconds per minute)
138
- s::: minimal-digit seconds. Example: `0`.
139
- ss::: two-digit seconds, zero-padded if needed. Example: `00`.
136
+ * `s`: seconds of the minute (60 seconds per minute)
137
+ ** `s`: minimal-digit seconds. Example: `0`.
138
+ ** `ss`: two-digit seconds, zero-padded if needed. Example: `00`.
140
139
 
141
- S:: fraction of a second
142
- S::: tenths of a second. Example: `0` for a subsecond value `012`
143
- SS::: hundredths of a second. Example: `01` for a subsecond value `01`
144
- SSS::: milliseconds. Example: `012` for a subsecond value `012`
145
- SSSSSS::: microseconds. Example: `012345`
146
- SSSSSSSSS::: nanoseconds. Example: `012345678`
140
+ * `S`: fraction of a second
141
+ ** `S`: tenths of a second. Example: `0` for a subsecond value `012`
142
+ ** `SS`: hundredths of a second. Example: `01` for a subsecond value `01`
143
+ ** `SSS`: milliseconds. Example: `012` for a subsecond value `012`
144
+ ** `SSSSSS`: microseconds. Example: `012345`
145
+ ** `SSSSSSSSS`: nanoseconds. Example: `012345678`
147
146
 
148
- V:: time-zone ID
149
- VV::: time zone ID. Example: `America/Los_Angeles`. Note: This is only supported by `java.time` parsing.
147
+ * `V`: time-zone ID
148
+ ** `VV`: time zone ID. Example: `America/Los_Angeles`. Note: This is only supported by `java.time` parsing.
150
149
 
151
- Z:: time zone offset or identity
152
- Z::: Timezone offset structured as HHmm (hour and minutes offset from Zulu/UTC). Example: `-0700`.
153
- ZZ::: Timezone offset structured as HH:mm (colon in between hour and minute offsets). Example: `-07:00`.
154
- ZZZ::: Timezone identity. Example: `America/Los_Angeles`. Note: Valid IDs are listed on the http://joda-time.sourceforge.net/timezones.html[Joda.org available time zones page].
150
+ * `Z`: time zone offset or identity
151
+ ** `Z`: Timezone offset structured as HHmm (hour and minutes offset from Zulu/UTC). Example: `-0700`.
152
+ ** `ZZ`: Timezone offset structured as HH:mm (colon in between hour and minute offsets). Example: `-07:00`.
153
+ ** `ZZZ`: Timezone identity. Example: `America/Los_Angeles`. Note: Valid IDs are listed on the http://joda-time.sourceforge.net/timezones.html[Joda.org available time zones page].
155
154
 
156
- z:: time zone names. *Time zone names ('z') cannot be parsed.*
155
+ * `z`: time zone names. *Time zone names (`z`) cannot be parsed.*
157
156
 
158
- w:: week of the year
159
- w::: minimal-digit week. Example: `1`.
160
- ww::: two-digit week, zero-padded if needed. Example: `01`.
157
+ * `w`: week of the year
158
+ ** `w`: minimal-digit week. Example: `1`.
159
+ ** `ww`: two-digit week, zero-padded if needed. Example: `01`.
161
160
 
162
- D:: day of the year
161
+ * `D`: day of the year
163
162
 
164
- e:: day of the week (number)
163
+ * `e`: day of the week (number)
165
164
 
166
- E:: day of the week (text)
167
- E, EE, EEE::: Abbreviated day of the week. Example: `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat`, `Sun`. Note: The actual language of this will depend on your locale.
168
- EEEE::: The full text day of the week. Example: `Monday`, `Tuesday`, ... Note: The actual language of this will depend on your locale.
165
+ * `E`: day of the week (text)
166
+ ** `E`, `EE`, `EEE`: Abbreviated day of the week. Example: `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat`, `Sun`. Note: The actual language of this will depend on your locale.
167
+ ** `EEEE`: The full text day of the week. Example: `Monday`, `Tuesday`, ... Note: The actual language of this will depend on your locale.
169
168
 
170
169
  For non-formatting syntax, you'll need to put single-quote characters around the value. For example, if you were parsing ISO8601 time, "2015-01-01T01:12:23" that little "T" isn't a valid time format, and you want to say "literally, a T", your format would be this: "yyyy-MM-dd'T'HH:mm:ss"
171
170
 
@@ -83,58 +83,57 @@ class LogStash::Filters::Date < LogStash::Filters::Base
83
83
  #
84
84
  # Here's what you can use to parse dates and times:
85
85
  #
86
- # [horizontal]
87
- # y:: year
88
- # yyyy::: full year number. Example: `2015`.
89
- # yy::: two-digit year. Example: `15` for the year 2015.
90
- #
91
- # M:: month of the year
92
- # M::: minimal-digit month. Example: `1` for January and `12` for December.
93
- # MM::: two-digit month. zero-padded if needed. Example: `01` for January and `12` for December
94
- # MMM::: abbreviated month text. Example: `Jan` for January. Note: The language used depends on your locale. See the `locale` setting for how to change the language.
95
- # MMMM::: full month text, Example: `January`. Note: The language used depends on your locale.
96
- #
97
- # d:: day of the month
98
- # d::: minimal-digit day. Example: `1` for the 1st of the month.
99
- # dd::: two-digit day, zero-padded if needed. Example: `01` for the 1st of the month.
100
- #
101
- # H:: hour of the day (24-hour clock)
102
- # H::: minimal-digit hour. Example: `0` for midnight.
103
- # HH::: two-digit hour, zero-padded if needed. Example: `00` for midnight.
104
- #
105
- # m:: minutes of the hour (60 minutes per hour)
106
- # m::: minimal-digit minutes. Example: `0`.
107
- # mm::: two-digit minutes, zero-padded if needed. Example: `00`.
108
- #
109
- # s:: seconds of the minute (60 seconds per minute)
110
- # s::: minimal-digit seconds. Example: `0`.
111
- # ss::: two-digit seconds, zero-padded if needed. Example: `00`.
112
- #
113
- # S:: fraction of a second
114
- # S::: tenths of a second. Example: `0` for a subsecond value `012`
115
- # SS::: hundredths of a second. Example: `01` for a subsecond value `01`
116
- # SSS::: milliseconds. Example: `012` for a subsecond value `012`
117
- # SSSSSS::: microseconds.
118
- # SSSSSSSSS::: nanoseconds.
119
- #
120
- # Z:: time zone offset or identity
121
- # Z::: Timezone offset structured as HHmm (hour and minutes offset from Zulu/UTC). Example: `-0700`.
122
- # ZZ::: Timezone offset structured as HH:mm (colon in between hour and minute offsets). Example: `-07:00`.
123
- # ZZZ::: Timezone identity. Example: `America/Los_Angeles`. Note: Valid IDs are listed on the http://joda-time.sourceforge.net/timezones.html[Joda.org available time zones page].
124
- #
125
- # z:: time zone names. *Time zone names ('z') cannot be parsed.*
126
- #
127
- # w:: week of the year
128
- # w::: minimal-digit week. Example: `1`.
129
- # ww::: two-digit week, zero-padded if needed. Example: `01`.
130
- #
131
- # D:: day of the year
132
- #
133
- # e:: day of the week (number)
134
- #
135
- # E:: day of the week (text)
136
- # E, EE, EEE::: Abbreviated day of the week. Example: `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat`, `Sun`. Note: The actual language of this will depend on your locale.
137
- # EEEE::: The full text day of the week. Example: `Monday`, `Tuesday`, ... Note: The actual language of this will depend on your locale.
86
+ # * `y`: year
87
+ # ** `yyyy`: full year number. Example: `2015`.
88
+ # ** `yy`: two-digit year. Example: `15` for the year 2015.
89
+ #
90
+ # * `M`: month of the year
91
+ # ** `M`: minimal-digit month. Example: `1` for January and `12` for December.
92
+ # ** `MM`: two-digit month. zero-padded if needed. Example: `01` for January and `12` for December
93
+ # ** `MMM`: abbreviated month text. Example: `Jan` for January. Note: The language used depends on your locale. See the `locale` setting for how to change the language.
94
+ # ** `MMMM`: full month text, Example: `January`. Note: The language used depends on your locale.
95
+ #
96
+ # * `d`: day of the month
97
+ # ** `d`: minimal-digit day. Example: `1` for the 1st of the month.
98
+ # ** `dd`: two-digit day, zero-padded if needed. Example: `01` for the 1st of the month.
99
+ #
100
+ # * `H`: hour of the day (24-hour clock)
101
+ # ** `H`: minimal-digit hour. Example: `0` for midnight.
102
+ # ** `HH`: two-digit hour, zero-padded if needed. Example: `00` for midnight.
103
+ #
104
+ # * `m`: minutes of the hour (60 minutes per hour)
105
+ # ** `m`: minimal-digit minutes. Example: `0`.
106
+ # ** `mm`: two-digit minutes, zero-padded if needed. Example: `00`.
107
+ #
108
+ # * `s`: seconds of the minute (60 seconds per minute)
109
+ # ** `s`: minimal-digit seconds. Example: `0`.
110
+ # ** `ss`: two-digit seconds, zero-padded if needed. Example: `00`.
111
+ #
112
+ # * `S`: fraction of a second
113
+ # ** `S`: tenths of a second. Example: `0` for a subsecond value `012`
114
+ # ** `SS`: hundredths of a second. Example: `01` for a subsecond value `01`
115
+ # ** `SSS`: milliseconds. Example: `012` for a subsecond value `012`
116
+ # ** `SSSSSS`: microseconds.
117
+ # ** `SSSSSSSSS`: nanoseconds.
118
+ #
119
+ # * `Z`: time zone offset or identity
120
+ # ** `Z`: Timezone offset structured as HHmm (hour and minutes offset from Zulu/UTC). Example: `-0700`.
121
+ # ** `ZZ`: Timezone offset structured as HH:mm (colon in between hour and minute offsets). Example: `-07:00`.
122
+ # ** `ZZZ`: Timezone identity. Example: `America/Los_Angeles`. Note: Valid IDs are listed on the http://joda-time.sourceforge.net/timezones.html[Joda.org available time zones page].
123
+ #
124
+ # * `z`: time zone names. *Time zone names (`z`) cannot be parsed.*
125
+ #
126
+ # * `w`: week of the year
127
+ # ** `w`: minimal-digit week. Example: `1`.
128
+ # ** `ww`: two-digit week, zero-padded if needed. Example: `01`.
129
+ #
130
+ # * `D`: day of the year
131
+ #
132
+ # * `e`: day of the week (number)
133
+ #
134
+ # * `E`: day of the week (text)
135
+ # ** `E`, `EE`, `EEE`: Abbreviated day of the week. Example: `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat`, `Sun`. Note: The actual language of this will depend on your locale.
136
+ # ** `EEEE`: The full text day of the week. Example: `Monday`, `Tuesday`, ... Note: The actual language of this will depend on your locale.
138
137
  #
139
138
  # For non-formatting syntax, you'll need to put single-quote characters around the value. For example, if you were parsing ISO8601 time, "2015-01-01T01:12:23" that little "T" isn't a valid time format, and you want to say "literally, a T", your format would be this: "yyyy-MM-dd'T'HH:mm:ss"
140
139
  #
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-date'
4
- s.version = '3.2.0'
4
+ s.version = '3.2.1'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Parses dates from fields to use as the Logstash timestamp for an event"
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"
@@ -92,57 +92,56 @@ class LogStash::Filters::DateRuby < LogStash::Filters::Base
92
92
  #
93
93
  # Here's what you can use to parse dates and times:
94
94
  #
95
- # [horizontal]
96
- # y:: year
97
- # yyyy::: full year number. Example: `2015`.
98
- # yy::: two-digit year. Example: `15` for the year 2015.
95
+ # * `y`: year
96
+ # ** `yyyy`: full year number. Example: `2015`.
97
+ # ** `yy`: two-digit year. Example: `15` for the year 2015.
99
98
  #
100
- # M:: month of the year
101
- # M::: minimal-digit month. Example: `1` for January and `12` for December.
102
- # MM::: two-digit month. zero-padded if needed. Example: `01` for January and `12` for December
103
- # MMM::: abbreviated month text. Example: `Jan` for January. Note: The language used depends on your locale. See the `locale` setting for how to change the language.
104
- # MMMM::: full month text, Example: `January`. Note: The language used depends on your locale.
99
+ # * `M`: month of the year
100
+ # ** `M`: minimal-digit month. Example: `1` for January and `12` for December.
101
+ # ** `MM`: two-digit month. zero-padded if needed. Example: `01` for January and `12` for December
102
+ # ** `MMM`: abbreviated month text. Example: `Jan` for January. Note: The language used depends on your locale. See the `locale` setting for how to change the language.
103
+ # ** `MMMM`: full month text, Example: `January`. Note: The language used depends on your locale.
105
104
  #
106
- # d:: day of the month
107
- # d::: minimal-digit day. Example: `1` for the 1st of the month.
108
- # dd::: two-digit day, zero-padded if needed. Example: `01` for the 1st of the month.
105
+ # * `d`: day of the month
106
+ # ** `d`: minimal-digit day. Example: `1` for the 1st of the month.
107
+ # ** `dd`: two-digit day, zero-padded if needed. Example: `01` for the 1st of the month.
109
108
  #
110
- # H:: hour of the day (24-hour clock)
111
- # H::: minimal-digit hour. Example: `0` for midnight.
112
- # HH::: two-digit hour, zero-padded if needed. Example: `00` for midnight.
109
+ # * `H`: hour of the day (24-hour clock)
110
+ # ** `H`: minimal-digit hour. Example: `0` for midnight.
111
+ # ** `HH`: two-digit hour, zero-padded if needed. Example: `00` for midnight.
113
112
  #
114
- # m:: minutes of the hour (60 minutes per hour)
115
- # m::: minimal-digit minutes. Example: `0`.
116
- # mm::: two-digit minutes, zero-padded if needed. Example: `00`.
113
+ # * `m`: minutes of the hour (60 minutes per hour)
114
+ # ** `m`: minimal-digit minutes. Example: `0`.
115
+ # ** `mm`: two-digit minutes, zero-padded if needed. Example: `00`.
117
116
  #
118
- # s:: seconds of the minute (60 seconds per minute)
119
- # s::: minimal-digit seconds. Example: `0`.
120
- # ss::: two-digit seconds, zero-padded if needed. Example: `00`.
117
+ # * `s`: seconds of the minute (60 seconds per minute)
118
+ # ** `s`: minimal-digit seconds. Example: `0`.
119
+ # ** `ss`: two-digit seconds, zero-padded if needed. Example: `00`.
121
120
  #
122
- # S:: fraction of a second
123
- # *Maximum precision is milliseconds (`SSS`). Beyond that, zeroes are appended.*
124
- # S::: tenths of a second. Example: `0` for a subsecond value `012`
125
- # SS::: hundredths of a second. Example: `01` for a subsecond value `01`
126
- # SSS::: thousandths of a second. Example: `012` for a subsecond value `012`
121
+ # * `S`: fraction of a second
122
+ # ** Maximum precision is milliseconds (`SSS`). Beyond that, zeroes are appended.
123
+ # ** `S`: tenths of a second. Example: `0` for a subsecond value `012`
124
+ # ** `SS`: hundredths of a second. Example: `01` for a subsecond value `01`
125
+ # ** `SSS`: thousandths of a second. Example: `012` for a subsecond value `012`
127
126
  #
128
- # Z:: time zone offset or identity
129
- # Z::: Timezone offset structured as HHmm (hour and minutes offset from Zulu/UTC). Example: `-0700`.
130
- # ZZ::: Timezone offset structured as HH:mm (colon in between hour and minute offsets). Example: `-07:00`.
131
- # ZZZ::: Timezone identity. Example: `America/Los_Angeles`. Note: Valid IDs are listed on the http://joda-time.sourceforge.net/timezones.html[Joda.org available time zones page].
127
+ # * `Z`: time zone offset or identity
128
+ # ** `Z`: Timezone offset structured as HHmm (hour and minutes offset from Zulu/UTC). Example: `-0700`.
129
+ # ** `ZZ`: Timezone offset structured as HH:mm (colon in between hour and minute offsets). Example: `-07:00`.
130
+ # ** `ZZZ`: Timezone identity. Example: `America/Los_Angeles`. Note: Valid IDs are listed on the http://joda-time.sourceforge.net/timezones.html[Joda.org available time zones page].
132
131
  #
133
- # z:: time zone names. *Time zone names ('z') cannot be parsed.*
132
+ # * `z`: time zone names. *Time zone names (`z`) cannot be parsed.*
134
133
  #
135
- # w:: week of the year
136
- # w::: minimal-digit week. Example: `1`.
137
- # ww::: two-digit week, zero-padded if needed. Example: `01`.
134
+ # * `w`: week of the year
135
+ # ** `w`: minimal-digit week. Example: `1`.
136
+ # ** `ww`: two-digit week, zero-padded if needed. Example: `01`.
138
137
  #
139
- # D:: day of the year
138
+ # * `D`: day of the year
140
139
  #
141
- # e:: day of the week (number)
140
+ # * `e`: day of the week (number)
142
141
  #
143
- # E:: day of the week (text)
144
- # E, EE, EEE::: Abbreviated day of the week. Example: `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat`, `Sun`. Note: The actual language of this will depend on your locale.
145
- # EEEE::: The full text day of the week. Example: `Monday`, `Tuesday`, ... Note: The actual language of this will depend on your locale.
142
+ # * `E`: day of the week (text)
143
+ # ** `E`, `EE`, `EEE`: Abbreviated day of the week. Example: `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat`, `Sun`. Note: The actual language of this will depend on your locale.
144
+ # ** `EEEE`: The full text day of the week. Example: `Monday`, `Tuesday`, ... Note: The actual language of this will depend on your locale.
146
145
  #
147
146
  # For non-formatting syntax, you'll need to put single-quote characters around the value. For example, if you were parsing ISO8601 time, "2015-01-01T01:12:23" that little "T" isn't a valid time format, and you want to say "literally, a T", your format would be this: "yyyy-MM-dd'T'HH:mm:ss"
148
147
  #
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-date
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-03-03 00:00:00.000000000 Z
10
+ date: 2026-05-07 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: logstash-core-plugin-api