Skip to content

Conversation

@repeatedly
Copy link
Owner

For better performance compared to record_transformer but several features are not supported.

  • tag_suffix, tag_prefix
  • dynamic key placeholder

@repeatedly
Copy link
Owner Author

Performance check with 100,000 nginx logs/sec traffic with fluent-agent-hydra.
Here is configuration:

<source>
  @type forward
</source>

<filter hydra.**>
  @type record_modifier
  <record>
    foo bar
    tag ${tag}.suffix
    tag_prefix ${tag_parts[0]}
  </record>
</filter>

<filter ydra.**>
  @type record_transformer
  <record>
    foo bar
    tag ${tag}.suffix
    tag_prefix ${tag_parts[0]}
  </record>
</filter>

<match hydra.access>
  @type flowcounter_simple
</match>
  • record_transformer

record_transformer result

  • record_modifier with define_method

record_modifier with define_method

  • record_modifier with string eval (patch implementation)

 record_modifier with string eval

repeatedly added a commit that referenced this pull request Jan 8, 2016
…amic-expander

Support <record> with dynamic parameter
@repeatedly repeatedly merged commit f294598 into master Jan 8, 2016
@repeatedly repeatedly deleted the support-record-section-with-dynamic-expander branch August 5, 2016 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants