ASP.NET Core with Logging to ElasticSearch This example is based on damienbod's post with some modifications: Changed Layout.Render(logEvent) in ElasticSearchTarget::FormPayload to render all properties as JSON for the LogEventInfo