Comments (3)
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.
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:
- Yes, the field displayed is
timestamp
. - 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
- 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:
from logback-gelf.
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)
- Ability to add custom fields to GelfMessage, computed from ILoggingEvent HOT 20
- Refactor JSON to byte array
- Improve test coverage
- Add the possibility to filter included MDC keys HOT 3
- Add a configurable socket timeout HOT 5
- Macbook GelfUdpAppender garbled HOT 2
- GZIP Compression with GelfUdpAppender HOT 1
- Update logback-classic to 1.2.8 HOT 3
- Logback-classic release 1.2.9
- tcp configuration error HOT 3
- Add ability to log thread ID in addition to thread name HOT 2
- Enable adding multiple static fields via environment variable and/or logback.properties HOT 2
- Mutual TLS fails, HOT 1
- Add another method for adding static field to GelfEncoder HOT 2
- GelfMessage should fail on host = "", shortmessage="" HOT 4
- Add ability to log formatted time HOT 1
- Add use of structured arguments HOT 1
- JSON Encoding Performance HOT 1
- Several minor improvements HOT 1
- Faster MessageIdSupplier with less object allocation, error-prone HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logback-gelf.