Why log are not saving in Elasticsearch using Elastic.NLog.Targets lib

image|690x341

Hi,
I am working in Asp net core 6 and i want to save the logs in elastics so for that i am using Elastic.NLog.Targets
packeges ... But my logs are not getting save in elasticsearch. i run the Elasticsearch on my local machine . please if any one know about this thing like how can i save the logs in elasticsearch using this Elastic NLog Targets lib in asp net core 6 or 8. please share that code here or in comment section . we will thankful to you.