-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
No properties from Enricher on update from 7.2.0 to 8.0.0 #371
Comments
Hi there and welcome to this repository! A maintainer will be with you shortly, but first and foremost I would like to thank you for taking the time to report this issue. Quality is of the highest priority for us, and we would never release anything with known defects. We aim to do our best but unfortunately you are here because you encountered something we didn't expect. Lets see if we can figure out what went wrong and provide a remedy for it. |
Example can be reduced by using var logconfig =
new LoggerConfiguration()
.ReadFrom.Configuration(configuration)
.Enrich.WithMachineName(); reports the machine name with Serilog.Sinks.Http 8.0.0-beta.10, but no longer with 8.0.0-beta.11 |
The problem is a result of #235
With ArrayBatchFormatter in the log of LogStash we found: [2024-04-08T16:01:55,601][WARN ][logstash.filters.split ][main][b8a778ff14b56223f94b0b8ce8aab229e9c4b53f09861f36597f22b88497dfb5] Only String and Array types are splittable.
|
Hi @milbrandt. Will start looking into this issue. |
I'd like your feedback. How should I phrase this breaking change in the change log and in the wiki, making sure that a reader understands the affect of the change? |
As our installation of Kibana 8.11.1 from Nov. 2023 is even newer that Serilog.Sinks.Http v8, Kibana is common log server, and the not-enriched parts were arriving, I didn't were aware of the relevance of this note. As Elastic Stack is already mentioned in the Introduction of the Readme, IMHO already there in the Readme it should mentioned, that data from Serilog Enrichers are only available with custom batch formatters. In the change log of #178 and also in the wiki I would like a hint, that Enricher data are no longer available on Kibana with the new default |
Perhaps I need to update Serilog and the Elastic Stack because on Elastic Stack v7.17.0 Serilog enrichers still do their job, they are represented as any other property on the log event. Are you telling me that v8 of the stack has changed the way properties are read and parsed by Elastic? |
As I'm not in Elastic Stack development nor did I configure the installation and configuration of our Kibana server, I can't tell you if there was any change in the stack. As a hint I can only reference to the exception reported by LogStash. The only thing I know for sure, the data from the During my investigations on this issue I tried other enrichers, like Serilog.Enrichers.Environment using |
I think this has to do with the configuration of your Logstash instance. I'm guessing that you've configured it to split the log events from the I've updated the example Serilog and the Elastic Stack to use a recent version of the Elastic stack, and everything works as expected. I'm sorry for any inconvenience this major update caused you. |
Describe the bug
For a long time we have an Enricher set up to add several properties to the logs send to Kibana. Target framework either net6 or net 8.
Everything worked with Serilog.Sinks.Http 7.2.0. We updated only this single NuGet to 8.0.0 and added
"queueLimitBytes": null
to the appsettings for WriteTo of Http sink.Update: With some testing on old betas it could be cut back to the update from 8.0.0-beta.10 (still working) to 8.0.0-beta.11 (data no longer arriving)
Now, the out of the box properties still arrive at Kibana, but no longer the properties of the Enricher.
We saw, that the Enricher is still called for each event.
Expected behavior
To receive still the same added properties in 8.0.0 as with 7.2.0. Especially the testKey/testValue should be visible in Kibana.
Screenshots
The text was updated successfully, but these errors were encountered: