# .net agent log integration

**URL:** <https://discuss.elastic.co/t/net-agent-log-integration/305812>\
**Category:** APM\
**Tags:** docker, dotnet, server\
**Created:** [May 27, 2022, 3:30pm UTC](https://discuss.elastic.co/t/net-agent-log-integration/305812 "2022-05-27T15:30:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarabu\_ps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sarabu_ps/32/103486_2.png) [@sarabu\_ps](https://discuss.elastic.co/u/sarabu_ps)\
**Post date:** [May 27, 2022, 3:30pm UTC](https://discuss.elastic.co/t/net-agent-log-integration/305812/1 "2022-05-27T15:30:52Z")

</div>

[apm-agent-dotnet/log-correlation.asciidoc at main · elastic/apm-agent-dotnet · GitHub](https://github.com/elastic/apm-agent-dotnet/blob/main/docs/log-correlation.asciidoc).

The above link explains the steps to send logs to elastic apm, could you provide details how to send secret token for elastic cloud authorization?

**Elasticsearch version** : 8.1

**APM Server version** : 8.1

**APM Agent language and version** : .Net Core 3.1, agent version 1.4.1

---

<div class="post-metadata">

**Author:** ![GregKalapos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregkalapos/32/37205_2.png) [@GregKalapos](https://discuss.elastic.co/u/GregKalapos)\
**Post date:** [May 31, 2022, 9:36am UTC](https://discuss.elastic.co/t/net-agent-log-integration/305812/2 "2022-05-31T09:36:20Z")

</div>

Hi @sarabu_ps,

[here is](https://www.elastic.co/guide/en/apm/agent/dotnet/current/config-reporter.html#config-secret-token) the documentation of that setting. It's the same as any other setting, so either just set the `ELASTIC_APM_SECRET_TOKEN` environment variable or use `ElasticApm:SecretToken` in your config files.

---

<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:** [June 21, 2022, 5:36am UTC](https://discuss.elastic.co/t/net-agent-log-integration/305812/3 "2022-06-21T05:36:37Z")

</div>

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