grok 正则也支持常规正则
2016-08-29 17:40:01,19 INFO com.zjzc.common.utils.HttpUtil - 请求接口: https://www.zjcap.cn/pay/interface/querypayorder, 耗时=-173 

^\s*%{TIMESTAMP_ISO8601}

{
  "TIMESTAMP_ISO8601": [
    [
      "2016-08-29 17:40:01,19"
    ]
  ],
  "YEAR": [
    [
      "2016"
    ]
  ],
  "MONTHNUM": [
    [
      "08"
    ]
  ],
  "MONTHDAY": [
    [
      "29"
    ]
  ],
  "HOUR": [
    [
      "17",
      null
    ]
  ],
  "MINUTE": [
    [
      "40",
      null
    ]
  ],
  "SECOND": [
    [
      "01,19"
    ]
  ],
  "ISO8601_TIMEZONE": [
    [
      null
    ]
  ]
}

阅读更多
个人分类: Logstash
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

grok 正则也支持常规正则

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭