Giter Club home page Giter Club logo

Comments (10)

tagomoris avatar tagomoris commented on June 4, 2024

You can get output you want by output_include_tag false and output_include_time false.
I'll add this option on README.

from fluent-plugin-webhdfs.

tagomoris avatar tagomoris commented on June 4, 2024

Update on 0bbbb5f

from fluent-plugin-webhdfs.

bmpandrade avatar bmpandrade commented on June 4, 2024

Thanks.
One more thing, is it possible to insert time and tag inside the record?

from fluent-plugin-webhdfs.

tagomoris avatar tagomoris commented on June 4, 2024

I'm sorry that it's not supported by current versions of fluent-plugin-webhdfs.
I think that it seems useful for some users, so I'm waiting patches!

from fluent-plugin-webhdfs.

bmpandrade avatar bmpandrade commented on June 4, 2024

I'll try to make one.

One thing, where do i find output_include_tag and output_include_time params and config?

from fluent-plugin-webhdfs.

tagomoris avatar tagomoris commented on June 4, 2024

That features are from fluent-mixin-plaintextformatter.
See: https://github.com/tagomoris/fluent-mixin-plaintextformatter

FYI: mixins to insert time and tag are SetTimeKeyMixin and SetTagKeyMixin in fluentd core:
https://github.com/fluent/fluentd/blob/master/lib/fluent/mixin.rb#L129
For example: https://github.com/fluent/fluent-plugin-s3/blob/master/lib/fluent/plugin/out_s3.rb#L22

from fluent-plugin-webhdfs.

asyd avatar asyd commented on June 4, 2024

I support _tag and _time in the json message! hope i'll find free time to submit a patch

from fluent-plugin-webhdfs.

tagomoris avatar tagomoris commented on June 4, 2024

@asyd 👍

from fluent-plugin-webhdfs.

asyd avatar asyd commented on June 4, 2024

I succeeded to get tag and time in the json message using reformer plugin:

<source>
  type syslog
  port 5140
  bind 0.0.0.0
  tag system
</source>

<match system.**>
  type record_reformer
  output_tag syslog.${host}
  <record>
    time ${time}
    message ${message}
    facility ${tag_suffix[1]}
  </record>
</match>

<match syslog.**>
  type forest
  subtype webhdfs
  remove_prefix syslog
  <template>
    namenode 127.0.0.1:50070
    path /fluentd/${tag}/%Y%m%d.log
    flush_interval 10s
    username nobody
    output_include_time false
    output_include_tag  false
  </template>
</match>

from fluent-plugin-webhdfs.

tagomoris avatar tagomoris commented on June 4, 2024

Open another issue for more ideas and patches.

from fluent-plugin-webhdfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.