My scenario is, I have angular UI when any error occurs it will send the details to the .net Core API from there I need to post the details to elastic search. right now the integration between angular and .net core is done. but I am not sure how will I post the document/data to elastic search. Everywhere when I search, they have shown the serilog way where I have to register the logger through program.cs and have to consume it through DI. the problem with that approach is that we will not be able to set the index dynamically. I want to assign a set of properties like index, method and other to make it easier to look through. Is there a API post call would be fine with the payload or anything else I need to do?. I will highly appreciate if anyone point me to some samples or blogs.
1.4m articles
1.4m replys
5 comments
56.9k users