-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The field timestamp doesn't exist #9
Comments
It looks like the index mappings are missing. There's no It seems that the usage example from the main page is a bit too simple. I'll update the documentation to try to prevent these kind of issues. UPDATE: Since 2.11.0,
In the meantime, I'll start work on a workaround for this. |
In my case something I can notice is that Kibana won't recognize the field
My very basic configuration in log4j2.xml is the following:
And I'm testing it with the following very basic Java code (I don't really know almost anything about coding in Java):
Temporary Solution Something I'd love is if by default the library would send this field as a Saying that, I tried to change my log4j2 configuration so it will load the template file in the appender itself, which looks very very similar to the example provided here:
But the only thing I get back is:
Again, maybe I'm doing something bad (my knowledge of Java is pretty bad), so it'll be really nice if you could point me in the right direction for this one. In any case I'd appreciate any sort of feedback. Cheers! |
Your mappings are correct, but there are two issues in these stacktraces:
|
Cheers @rfoltyns , works fine now! |
…pgraded * layout implements ItemSourceLayout * layout allows to output customisations via FasterXML Jackson mixins * LogEventJacksonJsonMixIn (modified log4j-core:LogEventJsonMixIn) was added to prevent #9 (visit javadoc for full list of changes) * this layout is now used by default
* IndexTemplate should be added to prevent #9
@ZulfuqarAliyev @kajahno Log4j2 version compatibility issues were addressed in release 1.3.0. Could you retest, please? |
Fixed in 1.3.0 |
Hi. I try to use your appender. But when I creat index in Kibana there is not filter by timestamp and my index doesn't have the field "timestamp". Could you please help me. Thanks in advance
The text was updated successfully, but these errors were encountered: