Giter VIP home page Giter VIP logo

Comments (3)

osiegmar avatar osiegmar commented on May 25, 2024

This library uses timestamps with millisecond precision.

I suspect a misconfiguration in your Graylog installation. As I don't see it in your screenshot – which field are you displaying? Is it the 'timestamp' field? Have you configured a pipeline rule which might cause this effect?

Could you try curl to debug this a bit further? You can find examples in the Graylog documentation about GELF.

from logback-gelf.

jeusdi avatar jeusdi commented on May 25, 2024

I posted the same question on graylog forums at this post.

They are telling that the problem is on elasticsearch...
Do you really think is that?

According to your questions:

  1. Yes, the field displayed is timestamp.
  2. The only pipeline rule I have is:
rule "uploaded size"
when
  starts_with(to_string($message.message), "Verificant si hi ha", true)
then
  let extract = grok("%{BASE10NUM:uploaded_size;long}", replace(to_string($message.message), "."), false);
  set_fields(extract);
end
  1. I've tested with: echo -n -e '{ "version": "1.1", "host": "example.org", "short_message": "A short message", "level": 5, "_some_info": "foo" }'"\0" | nc -w0 localhost 12201
    The problem remains:
    image

from logback-gelf.

osiegmar avatar osiegmar commented on May 25, 2024

I don’t think, this issue is related to elasticsearch and ES is definitely capable of storing timestamps with millisecond precision (see Date datatype).

As you can see in your own (latest) screenshot, the milliseconds are recorded. There are three timestamps displayed in the screenshot – two are missing the milliseconds and one is showing them. If you click on the UUID you will probably see even more fields with millisecond precision.

I tried to reproduce the problem and was able to reproduce it with Graylog 3.2.3. In Graylog 3.1.4 milliseconds are shown everywhere.

I hope I could help a little with this, but I close this ticket now as this is not a logback-gelf issue at all.

from logback-gelf.

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.