# Not able to send logs to elastic search via Nlog.config

**URL:** <https://discuss.elastic.co/t/not-able-to-send-logs-to-elastic-search-via-nlog-config/345702>\
**Category:** Elasticsearch\
**Created:** [October 25, 2023, 7:33am UTC](https://discuss.elastic.co/t/not-able-to-send-logs-to-elastic-search-via-nlog-config/345702 "2023-10-25T07:33:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prakshi91](https://avatars.discourse-cdn.com/v4/letter/p/c67d28/32.png) [@prakshi91](https://discuss.elastic.co/u/prakshi91)\
**Post date:** [October 25, 2023, 7:33am UTC](https://discuss.elastic.co/t/not-able-to-send-logs-to-elastic-search-via-nlog-config/345702/1 "2023-10-25T07:33:23Z")

</div>

Hi Everyone,

Our aim is to send logs to Elasticsearch and we have made changes to the NLog.config file as per the documentation - [Home · markmcdowell/NLog.Targets.ElasticSearch Wiki · GitHub](https://github.com/markmcdowell/NLog.Targets.ElasticSearch/wiki)

NLog File

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/a/ca9724998a5a52e64435be73618b3cefb4dcfa84.png)

However, we are getting the an error as  
**NLog.NLogConfigurationException: Failed to create Target of type: Elasticsearch ---\> System.ArgumentException: Target symbol-name is unknown: 'Elasticsearch' at NLog.Config.Factory`2.CreateInstance(String itemName)-**

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 25, 2023, 12:11pm UTC](https://discuss.elastic.co/t/not-able-to-send-logs-to-elastic-search-via-nlog-config/345702/2 "2023-10-25T12:11:24Z")

</div>

Hello and welcome,

> [@prakshi91](#):
>
> NLog.NLogConfigurationException: Failed to create Target of type: Elasticsearch ---\> System.ArgumentException: Target symbol-name is unknown: 'Elasticsearch' at NLog.Config.Factory`2.CreateInstance(String itemName)-

This does not seem to be an issue with Elasticsearch, but with the tool you are using which is not made by Elastic nor supported here, you need to contact the author of that tool on their github.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 22, 2023, 12:12pm UTC](https://discuss.elastic.co/t/not-able-to-send-logs-to-elastic-search-via-nlog-config/345702/3 "2023-11-22T12:12:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
