elastic/logstash

Grok custom pattern problem (Can't start with a number) - Logstash 1.5

Open

#3,353 创建于 2015年6月1日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Ruby (3,496 fork)batch import
bughelp wanted

仓库指标

Star
 (14,197 star)
PR 合并指标
 (平均合并 4天 19小时) (30 天内合并 50 个 PR)

描述

Hi,

it was previously OK with Logstash 1.4.2 it now BUG with Logstash 1.5

My pattern file contain a grok pattern with a name starting with a number

Step to reproduce :

1 - Add this pattern to grok patterns :

  • 123_DATE %{YEAR:123_date}
  • YEAR_DATE %{YEAR:year_date}

2 - Start Logstash with the following commands :

  • ./logstash agent -e 'filter { grok { match => ["message","%{123_DATE:year}"] } }'
  • ./logstash agent -e 'filter { grok { match => ["message","%{YEAR_DATE:year}"] } }'

3 - RESULTS

  • Logstash 1.4.2
    • Logstash 1.5

Please correct this or just write it somewhere in red inside the documentation.

EDIT : Please note that a name like this : DATE_123_CUSTOM is ok because the name is not starting with a number. (I've just made the test)

M0dM

贡献者指南