Giter VIP home page Giter VIP logo

Comments (6)

rfoltyns avatar rfoltyns commented on May 29, 2024

Could you post your configuration, ES version and exact bulkprocessor module that you used? Otherwise I can only guess here and I see two possibilities:

  • TransportClient rejects the node you configured for some reason (maybe the cluster name you mentioned in above)
  • BulkProcessor uses ES TransportClient and it's based on TCP, so maybe your config points at HTTP port (9200 by default) instead of TCP (9300 by default)?

from log4j2-elasticsearch.

wierdoki avatar wierdoki commented on May 29, 2024

My es cluster version is 6.1.4, and the bulkprocessor I'm using is log4j2-elasticsearch6-bulkprocessor, and it's 9300.

from log4j2-elasticsearch.

rfoltyns avatar rfoltyns commented on May 29, 2024

Could you post the ES config and log4j2 config please? I'd like to reproduce this one.

However, it look like it might be a limitation within the TransportClient which would be out of scope of this project.

Would you consider switching to jest or hc module? Both are backwards-compatible with ES 6.x.

from log4j2-elasticsearch.

wierdoki avatar wierdoki commented on May 29, 2024

believe me, my config is quite ordinary and u can reproduce this by changing your es client cluster name.
And I think u can fix this by like allowing us to pass cluster.name to InsecureTransportClientProvider.createClient or SecureClientProvider.createClient. For example, InsecureTransportClientProvider only createClient by "return new PreBuiltTransportClient(Settings.Builder.EMPTY_SETTINGS, Collections.EMPTY_LIST); “ in es6-bulkprocessor-1.4.1 for now.

from log4j2-elasticsearch.

rfoltyns avatar rfoltyns commented on May 29, 2024

That makes sense now. I'll add support for it in 1.4.2.

from log4j2-elasticsearch.

rfoltyns avatar rfoltyns commented on May 29, 2024

1.4.2 is released. You can now define all client settings in all bulkprocessor modules with:

<ClientSettings>
    <ClientSetting name="setting.name" value="${sys/env/map/customLookup:value}" />
</ClientSettings>

Thank you for this feature request! 👍 I've completely missed it. If you have any other suggestions, feel free to open more issues or PRs

from log4j2-elasticsearch.

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.