jahan

请教一个 grok 的匹配分割问题, hive 中的^A 分隔符怎么表示?\A

  •  
  •   jahan · Feb 20, 2018 · 2796 views
    This topic created in 3008 days ago, the information mentioned may be changed or developed.

    需要匹配这个串,可是在 https://github.com/kkos/oniguruma/blob/master/doc/RE#L400 里面找不到^A 怎么表示。 Nokia^A20180101^A1999.99 ^A RM-356 ^A1 ^A/UCWEB8.9.0.253/50/999^A20171209 字符串^A 日期^A 金额(decimal)^A 字符^A 整型 integer^A 字符串^A 日期 请教一下这种类型的串怎么用 gork 过滤呢?

    另外看了下面的链接 https://www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html 很不明白一个 NUMBER 和一个 IP 就从串里择出来相应的字段? NUMBEER\IP 这种类似保留字段的哪里来的呢?

    %{NUMBER:duration} %{IP:client}

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1278 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 17:07 · PVG 01:07 · LAX 10:07 · JFK 13:07
    ♥ Do have faith in what you're doing.