Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
84 views
in Technique[技术] by (71.8m points)

c# - How to send document to elasticsearch from asp.net core API

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.

question from:https://stackoverflow.com/questions/65845629/how-to-send-document-to-elasticsearch-from-asp-net-core-api

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...