Giter VIP home page Giter VIP logo

Comments (8)

jmdopereiro avatar jmdopereiro commented on September 27, 2024 1

mappingType="index" in the <JestBufferedHttp> element of log4j2.xml fixes this.

from log4j2-elasticsearch.

rfoltyns avatar rfoltyns commented on September 27, 2024

@jmdopereiro You need to specify mappingType="index" to override the new default - _doc since 1.5.

from log4j2-elasticsearch.

jmdopereiro avatar jmdopereiro commented on September 27, 2024

The log4j2-elasticsearch-jest-springboot example is using 1.4.0.

from log4j2-elasticsearch.

jmdopereiro avatar jmdopereiro commented on September 27, 2024

Just changed the JestBufferedHttp mapping type to index and now I have documents in the index so I will close the ticket, thank a lot.

from log4j2-elasticsearch.

rfoltyns avatar rfoltyns commented on September 27, 2024

No, it goes into JestHttp or JestBufferedHttp or HCHttp depending on which module you use. See mappingType documentation for Jest and HC.

log4j2-elastivsearch-jest docs are still specifying index being the default. This is incorrect - it's _doc since this commit

from log4j2-elasticsearch.

rfoltyns avatar rfoltyns commented on September 27, 2024

If you're using JestBufferedHttp already, I'd highly recommend to switch to log4j2-elasticsearch-hc - it's a bit more optimized. Configuration is very similar and if you got your buffer pool config right, switching modules will require just a handful of minor changes.

from log4j2-elasticsearch.

rfoltyns avatar rfoltyns commented on September 27, 2024

The log4j2-elasticsearch-jest-springboot example is using 1.4.0.

Yeah, it lags behind a bit. I'll update it soon.

from log4j2-elasticsearch.

jmdopereiro avatar jmdopereiro commented on September 27, 2024

Thank you for your advices, for the moment I'm just trying to find the easiest way to start sending logs to ES from my spring applications (some are on spring-boot)

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.