Giter Club home page Giter Club logo

Comments (7)

langke93 avatar langke93 commented on August 22, 2024

And also want to reflect the parameters in the document:https://www.elastic.co/guide/en/logstash/2.3/plugins-outputs-webhdfs.html#plugins-outputs-webhdfs-message_format

from logstash-output-webhdfs.

dstore-dbap avatar dstore-dbap commented on August 22, 2024

Hello langke93 !

Thanks for your feedback and problem report. I will have a look at this problem in the next couple of days and get back to you as soon as I have some news.

Take care,
Björn

from logstash-output-webhdfs.

dstore-dbap avatar dstore-dbap commented on August 22, 2024

Hi again!

The configuration option 'message_format' was removed in commit 8f1cf04#diff-d807ea36853d4e0b3acf6ef50b87c259.
Please use the format option of the line output codec instead. E.g.:
output { webhdfs { host => ... .... codec => { line { format => "custom format: %{message}" } } } }

Still, we need to check why the documentation does not reflect the current code and sorry for the confusion, caused by this!

So thank you very much for pointing this out and for your commit! Still, as the default way should be to use the line codec with the format parameter, I will not merge your commit. Not because it's bad or anything ;)

Take care and all the best,
Björn

I will leave this issue open until we found out, why the documentations is not up to date.

from logstash-output-webhdfs.

langke93 avatar langke93 commented on August 22, 2024

output{
webhdfs{
host => "sea2"
standby_host => "sea3"
codec => {line { format => "custom format: %{message}"}}
}
}
tips:
The given configuration is invalid. Reason: Expected one of #, => at line 35, column 20 (byte 1427) after output {
webhdfs{
host => "sea2"
standby_host => "sea3"
codec => {line {:level=>:fatal}

And then I modify:
codec => {line =>{ format => "custom format: %{message}"}}
Then prompt :

Pipeline aborted due to error {:exception=>#<NoMethodError: undefined method `on_event' for ["line", {"format"=>"custom format: %{message}"}]:Array>

from logstash-output-webhdfs.

dstore-dbap avatar dstore-dbap commented on August 22, 2024

My bad ;)

The example I gave was invalid, as you correctly pointed out.
Correct example:

webhdfs{
host => "sea2"
standby_host => "sea3"
codec => line { format => "custom format: %{message}"}
}

Sorry for this mistake!

Take care,
Björn

from logstash-output-webhdfs.

dstore-dbap avatar dstore-dbap commented on August 22, 2024

Hello langke93 !

Could you please let me know if this new configuration does work for you?
If so, this issue could be closed.

Take care and have a nice weekend,
Björn

from logstash-output-webhdfs.

langke93 avatar langke93 commented on August 22, 2024

thanks,is ok

from logstash-output-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.