# Running Filebeat on Azure App Service annoying exception

**URL:** <https://discuss.elastic.co/t/running-filebeat-on-azure-app-service-annoying-exception/134409>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 4, 2018, 11:21am UTC](https://discuss.elastic.co/t/running-filebeat-on-azure-app-service-annoying-exception/134409 "2018-06-04T11:21:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Sealook](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexander_sealook/32/31889_2.png) [@Alexander\_Sealook](https://discuss.elastic.co/u/Alexander_Sealook)\
**Post date:** [June 4, 2018, 11:21am UTC](https://discuss.elastic.co/t/running-filebeat-on-azure-app-service-annoying-exception/134409/1 "2018-06-04T11:21:37Z")

</div>

Hey,  
I am running Filebeat as a webjob on Azure App Service and it's working fine, but I am annoyed with the exceptions it is constantly writing to the logs:  
`2018-06-04T11:15:16.433Z	ERROR	process/process.go:454	Error getting process details. pid=12796: error getting process arguments for pid=12796: ProcArgs failed for pid=12796: could not get Win32_Process WHERE ProcessId = 12796: Exception occurred. (Access is denied. )`

Can I do anything to fix/stop these errors?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [June 4, 2018, 7:29pm UTC](https://discuss.elastic.co/t/running-filebeat-on-azure-app-service-annoying-exception/134409/2 "2018-06-04T19:29:05Z")

</div>

Which version of Filebeat are you using?

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [June 4, 2018, 7:45pm UTC](https://discuss.elastic.co/t/running-filebeat-on-azure-app-service-annoying-exception/134409/3 "2018-06-04T19:45:34Z")

</div>

Could you try to set metrics logging to false? [https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html#\_literal\_logging\_metrics\_enabled\_literal](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html#_literal_logging_metrics_enabled_literal)

---

<div class="post-metadata">

**Author:** ![Alexander\_Sealook](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexander_sealook/32/31889_2.png) [@Alexander\_Sealook](https://discuss.elastic.co/u/Alexander_Sealook)\
**Post date:** [June 4, 2018, 8:02pm UTC](https://discuss.elastic.co/t/running-filebeat-on-azure-app-service-annoying-exception/134409/4 "2018-06-04T20:02:03Z")

</div>

I am running the latest version 6.2.4  
I will try that and update you tomorrow.

Thanks!

---

<div class="post-metadata">

**Author:** ![Alexander\_Sealook](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexander_sealook/32/31889_2.png) [@Alexander\_Sealook](https://discuss.elastic.co/u/Alexander_Sealook)\
**Post date:** [June 5, 2018, 8:43am UTC](https://discuss.elastic.co/t/running-filebeat-on-azure-app-service-annoying-exception/134409/5 "2018-06-05T08:43:46Z")

</div>

Using the setting you provided solved the issue.  
Seems that filebeat running as a webjob on Azure App Service is having some permission issues.

Thank you!

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [June 6, 2018, 11:54am UTC](https://discuss.elastic.co/t/running-filebeat-on-azure-app-service-annoying-exception/134409/6 "2018-06-06T11:54:23Z")

</div>

I'm glad this resolved it. I still think it's something we should not log on the error level or at least only once to inform the user. Would you mind opening a Github issue for that?

---

<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:** [July 4, 2018, 11:54am UTC](https://discuss.elastic.co/t/running-filebeat-on-azure-app-service-annoying-exception/134409/7 "2018-07-04T11:54:45Z")

</div>

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