- copy docs for match

This commit is contained in:
Jordan Sissel 2012-12-27 15:13:12 -08:00
parent c217522eb8
commit ff40032de2

View file

@ -47,17 +47,47 @@ class LogStash::Filters::Date < LogStash::Filters::Base
# 2011-04-19T03:44:01.103Z # 2011-04-19T03:44:01.103Z
# * "UNIX" - will parse unix time in seconds since epoch # * "UNIX" - will parse unix time in seconds since epoch
# * "UNIX_MS" - will parse unix time in milliseconds since epoch # * "UNIX_MS" - will parse unix time in milliseconds since epoch
# * "TAI64N" - will parse tai64n time values
# #
# For example, if you have a field 'logdate' and with a value that looks like 'Aug 13 2010 00:03:44' # For example, if you have a field 'logdate' and with a value that looks like
# 'Aug 13 2010 00:03:44'
# you would use this configuration: # you would use this configuration:
# #
# logdate => "MMM dd yyyy HH:mm:ss" # logdate => "MMM dd YYYY HH:mm:ss"
# #
# [dateformats]: http://download.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html # [dateformats]: http://download.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html
config /[A-Za-z0-9_-]+/, :validate => :array config /[A-Za-z0-9_-]+/, :validate => :array
# An array with field name first, and format patterns following, [ field, formats... ] # The date formats allowed are anything allowed by Joda-Time (java time
# Using this more than once will have unpredictable results, so only use it once per date filter. # library), generally: [java.text.SimpleDateFormat][dateformats]
#
# An array with field name first, and format patterns following, [ field,
# formats... ]
#
# If your time field has multiple possible formats, you can do this:
#
# match => [ "logdate", "MMM dd YYY HH:mm:ss",
# "MMM d YYY HH:mm:ss", "ISO8601" ]
#
# The above will match a syslog (rfc3164) or iso8601 timestamp.
#
# There are a few special exceptions, the following format literals exist
# to help you save time and ensure correctness of date parsing.
#
# * "ISO8601" - should parse any valid ISO8601 timestamp, such as
# 2011-04-19T03:44:01.103Z
# * "UNIX" - will parse unix time in seconds since epoch
# * "UNIX_MS" - will parse unix time in milliseconds since epoch
# * "TAI64N" - will parse tai64n time values
#
# For example, if you have a field 'logdate' and with a value that looks like
# 'Aug 13 2010 00:03:44', you would use this configuration:
#
# filter {
# date {
# match => [ "logdate", "MMM dd YYYY HH:mm:ss" ]
# }
# }
config :match, :validate => :array, :default => [] config :match, :validate => :array, :default => []
# LOGSTASH-34 # LOGSTASH-34