Giter VIP home page Giter VIP logo

Comments (8)

rfoltyns avatar rfoltyns commented on May 28, 2024

@sathomps I've stumbled upon this error once. Very long time ago. I never actually nailed down the issue. I just deleted the index and it worked on next run.
How did you get this error? Did you push non-buffered logs (<JestHttp>) to this index before? Do you have any scenario that I can follow to reproduce it?

from log4j2-elasticsearch.

sathomps avatar sathomps commented on May 28, 2024

I got this out of the box with the latest version of elasticsearch. As mentioned, I tried several different configs for this plugin, deleting all indexes in ES, still the same exception.

from log4j2-elasticsearch.

rfoltyns avatar rfoltyns commented on May 28, 2024

I've unzipped ES 7.1.1 and your config worked with my latest release (1.3.4). I can't get it to throw NotXContentException.
What's your exact setup? OS, Java version, project deps? Could you send me a minimal project that reproduces it?

from log4j2-elasticsearch.

sathomps avatar sathomps commented on May 28, 2024

I stripped the application down and found a way to reproduce the issue in one config.

If a <PatternLayout> is supplied within <Elasticsearch> ES will throw NotXContentException.

Going back to the config posted above, I was unable to create the exception with a new index.

from log4j2-elasticsearch.

rfoltyns avatar rfoltyns commented on May 28, 2024

@sathomps I don't know how to interpret this one:

If a is supplied within ES

What has to be supplied within ES?

from log4j2-elasticsearch.

sathomps avatar sathomps commented on May 28, 2024

Updated my comment - forgot to add ticks to start/close angle brackets.

from log4j2-elasticsearch.

rfoltyns avatar rfoltyns commented on May 28, 2024

Ok, now it makes sense - PatternLayout doesn't produce a valid JSON, resulting in this exception on ingestion in ES.
Since you don't get this error with the config posted above, can we consider this issue solved?

from log4j2-elasticsearch.

sathomps avatar sathomps commented on May 28, 2024

Yep this is good. Thanks for responding

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.