Sha256: aaa29835a2bdf0475d68d790994387f7a3ea31bde8082260fabc3ea083b10eb2

Contents?: true

Size: 1.65 KB

Versions: 9

Compression:

Stored size: 1.65 KB

Contents

<match event.*>
  type norikra
  norikra localhost:26571

  <server>
    execute yes # (default)no
    path    /home/user/.rbenv/versions/jruby-1.7.4/bin/norikra
  </server>

  remove_tag_prefix event

  target_map_tag yes
  # or
  # target_map_key KEYNAME
  # or
  # target_string TARGET_STRING

  <default>
    include *
    exclude yyyymmdd,hhmmss
    exclude_regexp f_.*
    # OR
    # exclude *
    # include foo,bar,baz
    # include_regexp status.*
    field_boolean flag
    field_int status
    field_long    duration,bytes

    <query>
      name pv_${target}
      expression SELECT count(*) AS cnt FROM ${target}.win:time_batch(1 minutes) WHERE not flag
      tag pv.${target}
      fetch_interval 15s # default -> time_batch / 4 ? -> (none) -> 60s
      # fetch_interval is ignored when <events> section specified
    </query>
    <query>
      name errors_${target}
      expression SELECT count(*) AS cnt FROM ${target}.win:time_batch(1 minutes) WHERE status >= 500
      tag errors.${target}
      fetch_interval 15s
    </query>
  </default>

  <target search>
    field_int display

    <query>
      name search_words
      expression SELECT count(distinct query_search) AS cnt FROM ${target}.win:time_batch(1 minutes) WHERE query_search.length() > 0
      tag search.words
    </query>
    <query>
      name search_rate
      expression SELECT count(*) AS cnt FROM ${target}.win:time_batch(1 minutes) WHERE query_search.length() > 0
      tag search.rate
    </query>
  </target>

  <events>
    method sweep # listen(not implemented)
    tag query_name
    # tag field FIELDNAME
    # tag string TAG_STRING
    tag_prefix cep
    sweep_interval 5s
  </events>
</match>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fluent-plugin-norikra-0.0.9 example/example1.conf
fluent-plugin-norikra-0.0.8 example/example1.conf
fluent-plugin-norikra-0.0.7 example/example1.conf
fluent-plugin-norikra-0.0.6 example/example1.conf
fluent-plugin-norikra-0.0.5 example/example1.conf
fluent-plugin-norikra-0.0.4 example/example1.conf
fluent-plugin-norikra-0.0.3 example/example1.conf
fluent-plugin-norikra-0.0.2 example/example1.conf
fluent-plugin-norikra-0.0.1 example/example1.conf